state
MixinPoolState
balanceOf
Returns how many pool tokens a user holds.
Parameters
Name | Type | Description |
---|---|---|
who | address | Address of the target account. |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | Number of pool. |
getPoolStorage
Returns the aggregate pool generic storage.
Return Values
Name | Type | Description |
---|---|---|
poolInitParams | struct IRigoblockV3PoolState.ReturnedPool | The pool's initialization parameters. |
poolVariables | struct IRigoblockV3PoolState.PoolParams | The pool's variables. |
poolTokensInfo | struct IRigoblockV3PoolState.PoolTokens | The pool's tokens info. |
getUserAccount
owner
Returns the address of the owner.
Return Values
Name | Type | Description |
---|---|---|
[0] | address | Address of the owner. |
decimals
Decimals are initialized at proxy creation.
Return Values
Name | Type | Description |
---|---|---|
[0] | uint8 | Number of decimals. |
getPool
Returns the struct containing pool initialization parameters.
Symbol is stored as bytes8 but returned as string in the returned struct, unlocked is omitted as alwasy true.
Return Values
Name | Type | Description |
---|---|---|
[0] | struct IRigoblockV3PoolState.ReturnedPool | ReturnedPool struct. |
getPoolParams
Returns the struct compaining pool parameters.
Return Values
Name | Type | Description |
---|---|---|
[0] | struct IRigoblockV3PoolState.PoolParams | PoolParams struct. |
getPoolTokens
Returns the struct containing pool tokens info.
Return Values
Name | Type | Description |
---|---|---|
[0] | struct IRigoblockV3PoolState.PoolTokens | PoolTokens struct. |
name
Returns a string of the pool name.
Name maximum length 31 bytes.
Return Values
Name | Type | Description |
---|---|---|
[0] | string | String of the name. |
symbol
Returns a string of the pool symbol.
Return Values
Name | Type | Description |
---|---|---|
[0] | string | String of the symbol. |
totalSupply
_getFeeCollector
_getMinPeriod
_getSpread
_getUnitaryValue
Last updated