ITagomiPool
This is the technical reference related to the interface for any super token pool regardless of the distribution schemes.
struct PoolIndexData
struct MemberData
Tagomi_POOL_INVALID_TIME
Tagomi_POOL_NO_POOL_MEMBERS
Tagomi_POOL_NO_ZERO_ADDRESS
Tagomi_POOL_NOT_POOL_ADMIN_OR_GDA
Tagomi_POOL_NOT_GDA
Tagomi_POOL_TRANSFER_UNITS_NOT_ALLOWED
Event MemberUnitsUpdated
Parameters
token
contract ITagomiToken
member
address
oldUnits
uint128
newUnits
uint128
Event DistributionClaimed
Parameters
token
contract ITagomiToken
member
address
claimedAmount
int256
totalClaimed
int256
Fn transferabilityForUnitsOwner
A boolean indicating whether pool members can transfer their units
Fn distributionFromAnyAddress
A boolean indicating whether addresses other than the pool admin can distribute via the pool
Fn admin
The admin is the creator of the pool and has permissions to update member units and is the recipient of the adjustment flow rate
The pool admin
Fn superToken
The SuperToken for the pool
Fn getTotalUnits
The total units of the pool
Fn getTotalConnectedUnits
The total number of units of connected members
Fn getTotalDisconnectedUnits
The total number of units of disconnected members
Fn getUnits
Parameters
memberAddress
address
The address of the member
The total number of units for memberAddress
Fn getTotalFlowRate
The total flow rate of the pool
Fn getTotalConnectedFlowRate
The flow rate of the connected members
Fn getTotalDisconnectedFlowRate
The flow rate of the disconnected members
Fn getDisconnectedBalance
Parameters
time
uint32
The time to query
The balance of all the disconnected members at time
Fn getMemberFlowRate
Parameters
memberAddress
address
The address of the member
The flow rate a member is receiving from the pool
Fn getClaimable
Parameters
memberAddr
address
The address of the member
time
uint32
The time to query
The claimable balance for memberAddr
at time
in the pool
Fn getClaimableNow
Parameters
memberAddr
address
The address of the member
The claimable balance for memberAddr
at block.timestamp
in the pool
Fn updateMemberUnits
Parameters
memberAddr
address
The address of the member
newUnits
uint128
The new units for the member
Sets memberAddr
ownedUnits to newUnits
Fn claimAll
Parameters
memberAddr
address
The address of the member
Claims the claimable balance for memberAddr
at block.timestamp
Fn claimAll
Claims the claimable balance for msg.sender
at block.timestamp
Fn increaseAllowance
Parameters
spender
address
The address of the spender
addedValue
uint256
The amount to increase the allowance by
Return Values
[0]
bool
true if successful
Increases the allowance of spender
by addedValue
Fn decreaseAllowance
Parameters
spender
address
The address of the spender
subtractedValue
uint256
The amount to decrease the allowance by
Return Values
[0]
bool
true if successful
Decreases the allowance of spender
by subtractedValue
Last updated