angles-downITagomiPool

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

struct PoolIndexDataarrow-up-right

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

struct MemberDataarrow-up-right

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

Tagomi_POOL_INVALID_TIMEarrow-up-right

Tagomi_POOL_NO_POOL_MEMBERSarrow-up-right

Tagomi_POOL_NO_ZERO_ADDRESSarrow-up-right

Tagomi_POOL_NOT_POOL_ADMIN_OR_GDAarrow-up-right

Tagomi_POOL_NOT_GDAarrow-up-right

Tagomi_POOL_TRANSFER_UNITS_NOT_ALLOWEDarrow-up-right

Event MemberUnitsUpdatedarrow-up-right

Parametersarrow-up-right

Name
Type
Description

token

contract ITagomiToken

member

address

oldUnits

uint128

newUnits

uint128

Event DistributionClaimedarrow-up-right

Parametersarrow-up-right

Name
Type
Description

token

contract ITagomiToken

member

address

claimedAmount

int256

totalClaimed

int256

Fn transferabilityForUnitsOwnerarrow-up-right

A boolean indicating whether pool members can transfer their units

Fn distributionFromAnyAddressarrow-up-right

A boolean indicating whether addresses other than the pool admin can distribute via the pool

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 superTokenarrow-up-right

The SuperToken for the pool

Fn getTotalUnitsarrow-up-right

The total units of the pool

Fn getTotalConnectedUnitsarrow-up-right

The total number of units of connected members

Fn getTotalDisconnectedUnitsarrow-up-right

The total number of units of disconnected members

Parametersarrow-up-right

Name
Type
Description

memberAddress

address

The address of the member

The total number of units for memberAddress

Fn getTotalFlowRatearrow-up-right

The total flow rate of the pool

Fn getTotalConnectedFlowRatearrow-up-right

The flow rate of the connected members

Fn getTotalDisconnectedFlowRatearrow-up-right

The flow rate of the disconnected members

Fn getDisconnectedBalancearrow-up-right

Parametersarrow-up-right

Name
Type
Description

time

uint32

The time to query

The balance of all the disconnected members at time

Fn getMemberFlowRatearrow-up-right

Parametersarrow-up-right

Name
Type
Description

memberAddress

address

The address of the member

The flow rate a member is receiving from the pool

Fn getClaimablearrow-up-right

Parametersarrow-up-right

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 getClaimableNowarrow-up-right

Parametersarrow-up-right

Name
Type
Description

memberAddr

address

The address of the member

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

Fn updateMemberUnitsarrow-up-right

Parametersarrow-up-right

Name
Type
Description

memberAddr

address

The address of the member

newUnits

uint128

The new units for the member

Sets memberAddr ownedUnits to newUnits

Parametersarrow-up-right

Name
Type
Description

memberAddr

address

The address of the member

Claims the claimable balance for memberAddr at block.timestamp

Claims the claimable balance for msg.sender at block.timestamp

Fn increaseAllowancearrow-up-right

Parametersarrow-up-right

Name
Type
Description

spender

address

The address of the spender

addedValue

uint256

The amount to increase the allowance by

Return Valuesarrow-up-right

Name
Type
Description

[0]

bool

true if successful

Increases the allowance of spender by addedValue

Fn decreaseAllowancearrow-up-right

Parametersarrow-up-right

Name
Type
Description

spender

address

The address of the spender

subtractedValue

uint256

The amount to decrease the allowance by

Return Valuesarrow-up-right

Name
Type
Description

[0]

bool

true if successful

Decreases the allowance of spender by subtractedValue

Last updated

Was this helpful?