Properties Optional _contract_contract?: LeveragedPool
Defined in src/entities/pool.ts:75 Optional _keeper_keeper?: PoolKeeper
Defined in src/entities/pool.ts:76 address address: string
Defined in src/entities/pool.ts:70 chain Id chain Id: undefined | number
Defined in src/entities/pool.ts:73 committer Defined in src/entities/pool.ts:84 connect connect: ( provider: Provider | Signer ) => void = ...
Defined in src/entities/pool.ts:649 Type declaration ( provider: Provider | Signer ) : void Parameters provider: Provider | Signer Returns void fee fee: BigNumber
Defined in src/entities/pool.ts:82 fetch Last Price fetch Last Price: ( ) => Promise < BigNumber > = ...
Defined in src/entities/pool.ts:429 Type declaration Returns Promise < BigNumber > fetch Last Price Timestamp fetch Last Price Timestamp: ( ) => Promise < BigNumber > = ...
Defined in src/entities/pool.ts:445 Type declaration Returns Promise < BigNumber > fetch Oracle Price fetch Oracle Price: ( ) => Promise < BigNumber > = ...
Defined in src/entities/pool.ts:413 Type declaration Returns Promise < BigNumber > fetch Pool Balances fetch Pool Balances: ( ) => Promise < { longBalance: BigNumber ; shortBalance: BigNumber } > = ...
Defined in src/entities/pool.ts:381 Type declaration ( ) : Promise < { longBalance: BigNumber ; shortBalance: BigNumber } > Returns Promise < { longBalance: BigNumber ; shortBalance: BigNumber } > the fetched long and short balances
front Running Interval front Running Interval: BigNumber
Defined in src/entities/pool.ts:80 get Annual Fee get Annual Fee: ( ) => BigNumber = ...
Defined in src/entities/pool.ts:664 get Expected Pool State get
Expected
Pool
State
: ( atEndOf
: "frontRunningInterval" | "updateInterval" , forceRefreshInputs
?: boolean ) => Promise < PoolStatePreview > = ... Defined in src/entities/pool.ts:581 Type declaration ( atEndOf: "frontRunningInterval" | "updateInterval" , forceRefreshInputs?: boolean ) : Promise < PoolStatePreview > Parameters atEndOf: "frontRunningInterval" | "updateInterval" Optional forceRefreshInputs: boolean
get Fee And Leverage get
Fee
And
Leverage
: ( poolInfo
: IPool , chainId
: number , name
: string , provider
: Provider , contract
: LeveragedPool ) => Promise < [ string | BigNumber , number | BigNumber ] > = ... Defined in src/entities/pool.ts:297 Type declaration ( poolInfo: IPool , chainId: number , name: string , provider: Provider , contract: LeveragedPool ) : Promise < [ string | BigNumber , number | BigNumber ] > Parameters chainId: number name: string provider: Provider contract: LeveragedPool Returns Promise < [ string | BigNumber , number | BigNumber ] > the fee and leverage amounts
get Long Token Price get Long Token Price: ( ) => BigNumber = ...
Defined in src/entities/pool.ts:288 Type declaration Returns BigNumber the long token price in quote token units (eg USD)
get Next Long Token Price get Next Long Token Price: ( ) => BigNumber = ...
Defined in src/entities/pool.ts:347 Type declaration Returns BigNumber the long token price in quote token units (eg USD)
get Next Short Token Price get Next Short Token Price: ( ) => BigNumber = ...
Defined in src/entities/pool.ts:361 Type declaration Returns BigNumber the long token price in quote token units (eg USD)
get Next Value Transfer get Next Value Transfer: ( ) => { longValueTransfer: BigNumber ; shortValueTransfer: BigNumber } = ...
Defined in src/entities/pool.ts:274 Type declaration ( ) : { longValueTransfer: BigNumber ; shortValueTransfer: BigNumber } Returns { longValueTransfer: BigNumber ; shortValueTransfer: BigNumber } and object containing short and long value transfer.
The values will be a negation of eachother but this way reads better than
returning a winning side as well as a value
long Value Transfer: BigNumber short Value Transfer: BigNumber get Pending Commits In Front Running Interval Defined in src/entities/pool.ts:462 Type declaration promise resolving to an array of TotalPoolCommitmentsBN
s
get Pending Commits In Update Interval Defined in src/entities/pool.ts:498 Type declaration promise resolving to a TotalPoolCommitmentsBN
object
get Pool State Preview get
Pool
State
Preview
: ( atEndOf
: "frontRunningInterval" | "updateInterval" , forceRefreshInputs
?: boolean ) => Promise < PoolStatePreview > = ... Defined in src/entities/pool.ts:520 Type declaration ( atEndOf: "frontRunningInterval" | "updateInterval" , forceRefreshInputs?: boolean ) : Promise < PoolStatePreview > Parameters atEndOf: "frontRunningInterval" | "updateInterval" Optional forceRefreshInputs: boolean
get Short Token Price get Short Token Price: ( ) => BigNumber = ...
Defined in src/entities/pool.ts:338 Type declaration Returns BigNumber the long token price in quote token units (eg USD)
get Skew get Skew: ( ) => BigNumber = ...
Defined in src/entities/pool.ts:375 Private initinit
: ( poolInfo
: IPool ) => Promise < void > = ... Defined in src/entities/pool.ts:164 Type declaration ( poolInfo: IPool ) : Promise < void > Parameters Returns Promise < void > keeper keeper: string
Defined in src/entities/pool.ts:83 last Price last Price: BigNumber
Defined in src/entities/pool.ts:91 last Update last Update: BigNumber
Defined in src/entities/pool.ts:90 leverage leverage: number
Defined in src/entities/pool.ts:81 long Balance long Balance: BigNumber
Defined in src/entities/pool.ts:93 long Token Defined in src/entities/pool.ts:88 multicall Provider multicall Provider: undefined | Signer | MulticallProvider
Defined in src/entities/pool.ts:72 name name: string
Defined in src/entities/pool.ts:78 oracle Defined in src/entities/pool.ts:86 oracle Price oracle Price: BigNumber
Defined in src/entities/pool.ts:94 oracle Price Transformer Defined in src/entities/pool.ts:95 pool State Helper Defined in src/entities/pool.ts:85 provider provider: undefined | Provider | Signer
Defined in src/entities/pool.ts:71 set Last Price set Last Price: ( price: BigNumber ) => void = ...
Defined in src/entities/pool.ts:699 set Last Price Timestamp set Last Price Timestamp: ( timestamp: BigNumber ) => void = ...
Defined in src/entities/pool.ts:706 Type declaration ( timestamp: BigNumber ) : void set Long Balance set Long Balance: ( longBalance: BigNumber ) => void = ...
Defined in src/entities/pool.ts:675 Type declaration ( longBalance: BigNumber ) : void set Oracle Price set Oracle Price: ( price: BigNumber ) => void = ...
Defined in src/entities/pool.ts:691 set Short Balance set Short Balance: ( shortbalance: BigNumber ) => void = ...
Defined in src/entities/pool.ts:683 Type declaration ( shortbalance: BigNumber ) : void settlement Token Defined in src/entities/pool.ts:89 short Balance short Balance: BigNumber
Defined in src/entities/pool.ts:92 short Token Defined in src/entities/pool.ts:87 update Interval update Interval: BigNumber
Defined in src/entities/pool.ts:79 Static CreateCreate
: ( poolInfo
: IPool ) => Promise < Pool > = ... Defined in src/entities/pool.ts:139 Type declaration Parameters Returns Promise < Pool > a Promise containing an initialised Pool class ready to be used
Static Create DefaultCreate
Default
: ( ) => Pool = ... Defined in src/entities/pool.ts:148 Static Deploy PoolDeploy Pool: ( ) => void
Defined in src/entities/pool.ts:157
LeveragedPool class initiated with an an
address
and anrpcURL
. Stores relevant LeveragedPool information. It is optional for the user to provide additional pool information, reducing the number of RPC calls. This optional info is static information of the pool, such as names and addresses The constructor is private so must be instantiated withPool.Create