IRigoblockV3PoolState
Overview
License: Apache 2.0
interface IRigoblockV3PoolStateAuthor: Gabriele Rigo - gab@rigoblock.com
Structs info
ReturnedPool
struct ReturnedPool {
string name;
string symbol;
uint8 decimals;
address owner;
address baseToken;
}Returned pool initialization parameters.
Symbol is stored as bytes8 but returned as string to facilitating client view.
Parameters:
name
string
String of the pool name (max 32 characters).
symbol
string
String of the pool symbol (from 3 to 5 characters).
decimals
uint8
Uint8 decimals.
owner
address
Address of the pool operator.
baseToken
address
Address of the base token of the pool (0 for base currency).
PoolParams
Pool variables.
Parameters:
minPeriod
uint48
Minimum holding period in seconds.
spread
uint16
Value of spread in basis points (from 0 to +-10%).
transactionFee
uint16
Value of transaction fee in basis points (from 0 to 1%).
feeCollector
address
Address of the fee receiver.
kycProvider
address
Address of the kyc provider.
PoolTokens
Pool tokens.
Parameters:
unitaryValue
uint256
A token's unitary value in base token.
totalSupply
uint256
Number of total issued pool tokens.
UserAccount
Pool holder account.
Parameters:
userBalance
uint208
Number of tokens held by user.
activation
uint48
Time when tokens become active.
Functions info
getPool (0x026b1d5f)
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:
[0]
struct IRigoblockV3PoolState.ReturnedPool
ReturnedPool struct.
getPoolParams (0x42377107)
Returns the struct compaining pool parameters.
Return values:
[0]
struct IRigoblockV3PoolState.PoolParams
PoolParams struct.
getPoolTokens (0x89c06568)
Returns the struct containing pool tokens info.
Return values:
[0]
struct IRigoblockV3PoolState.PoolTokens
PoolTokens struct.
getPoolStorage (0x95f71b16)
Returns the aggregate pool generic storage.
Return values:
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 (0xfb47e016)
Returns a pool holder's account struct.
Return values:
[0]
struct IRigoblockV3PoolState.UserAccount
UserAccount struct.
name (0x06fdde03)
Returns a string of the pool name.
Name maximum length 31 bytes.
Return values:
[0]
string
String of the name.
owner (0x8da5cb5b)
Returns the address of the owner.
Return values:
[0]
address
Address of the owner.
symbol (0x95d89b41)
Returns a string of the pool symbol.
Return values:
[0]
string
String of the symbol.
totalSupply (0x18160ddd)
Returns the total amount of issued tokens for this pool.
Return values:
[0]
uint256
Number of total issued tokens.
Last updated