For the complete documentation index, see llms.txt. This page is also available as Markdown.

MixinOwnerActions

MixinOwnerActions

PoolCallerIsNotOwner

error PoolCallerIsNotOwner()

PoolFeeBiggerThanMax

error PoolFeeBiggerThanMax(uint16 maxFee)

PoolInputIsNotContract

error PoolInputIsNotContract()

OwnerActionInputIsSameAsCurrent

error OwnerActionInputIsSameAsCurrent()

PoolLockupPeriodInvalid

error PoolLockupPeriodInvalid(uint48 minimum, uint48 maximum)

PoolNullOwnerInput

error PoolNullOwnerInput()

PoolSpreadInvalid

onlyOwner

changeFeeCollector

Allows owner to decide where to receive the fee.

Parameters

Name
Type
Description

feeCollector

address

Address of the fee receiver.

changeMinPeriod

Allows pool owner to change the minimum holding period.

Minimum period is always at least 10 to prevent flash txs.

Parameters

Name
Type
Description

minPeriod

uint48

Time in seconds.

changeSpread

Allows pool owner to change the mint/burn spread.

Parameters

Name
Type
Description

newSpread

uint16

Number between 0 and 1000, in basis points.

purgeInactiveTokensAndApps

Allows the owner to remove all inactive token and applications.

This is the only endpoint that has access to removing a token from the active tokens tuple. Used to reduce cost of mint/burn as more tokens are traded, and allow lower gas for hft.

revokeAllDelegations

Revokes all selector delegations for a given address in a single call.

Useful when a delegated wallet is compromised.

Parameters

Name
Type
Description

delegated

address

Address whose full delegation is to be revoked.

revokeAllDelegationsForSelector

Revokes all address delegations for a given selector in a single call.

Useful when an adapter is being replaced by governance and stale delegates should be cleaned.

Parameters

Name
Type
Description

selector

bytes4

Selector whose full delegation list is to be cleared.

setAcceptableMintToken

Allows the owner to set acceptable mint tokens other than the base token.

Parameters

Name
Type
Description

token

address

Address of the target token.

isAccepted

bool

Boolean to indicate whether the token is to be added or removed from storage.

setKycProvider

Allows pool owner to set/update the user whitelist contract.

Kyc provider can be set to null, removing user whitelist requirement.

Parameters

Name
Type
Description

kycProvider

address

Address if the kyc provider.

setOwner

Allows pool owner to set a new owner address.

Method restricted to owner.

Parameters

Name
Type
Description

newOwner

address

Address of the new owner.

setTransactionFee

Allows pool owner to set the transaction fee.

Parameters

Name
Type
Description

transactionFee

uint16

Value of the transaction fee in basis points.

updateDelegation

Allows pool owner to batch grant or revoke delegated adapter write access.

Each entry independently adds or removes one (selector, address) pair. Emits DelegationUpdated only for entries that change storage (idempotent operations emit no event).

Parameters

Name
Type
Description

delegations

struct Delegation[]

Array of delegation operations to apply.

Last updated