ITagomiPool

This is the technical reference related to the interface for any super token pool regardless of the distribution schemes.

struct PoolIndexData

struct PoolIndexData {
  uint128 totalUnits;
  uint32 wrappedSettledAt;
  int96 wrappedFlowRate;
  int256 wrappedSettledValue;
}

struct MemberData

struct MemberData {
  uint128 ownedUnits;
  uint32 syncedSettledAt;
  int96 syncedFlowRate;
  int256 syncedSettledValue;
  int256 settledValue;
  int256 claimedValue;
}

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

Name
Type
Description

token

contract ITagomiToken

member

address

oldUnits

uint128

newUnits

uint128

Event DistributionClaimed

Parameters

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

time

uint32

The time to query

The balance of all the disconnected members at time

Fn getMemberFlowRate

Parameters

Name
Type
Description

memberAddress

address

The address of the member

The flow rate a member is receiving from the pool

Fn getClaimable

Parameters

Name
Type
Description

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

Name
Type
Description

memberAddr

address

The address of the member

The claimable balance for memberAddr at block.timestamp in the pool

Fn updateMemberUnits

Parameters

Name
Type
Description

memberAddr

address

The address of the member

newUnits

uint128

The new units for the member

Sets memberAddr ownedUnits to newUnits

Fn claimAll

Parameters

Name
Type
Description

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

Name
Type
Description

spender

address

The address of the spender

addedValue

uint256

The amount to increase the allowance by

Return Values

Name
Type
Description

[0]

bool

true if successful

Increases the allowance of spender by addedValue

Fn decreaseAllowance

Parameters

Name
Type
Description

spender

address

The address of the spender

subtractedValue

uint256

The amount to decrease the allowance by

Return Values

Name
Type
Description

[0]

bool

true if successful

Decreases the allowance of spender by subtractedValue

Last updated

Was this helpful?