Interactions

setMintFee

Updates the mint fee on pool.

function setMintFee(uint256 newFee) external;

Parameters

Name
Type
Description

newFee

uint256

The new mint fee value. Uses 10 decimal precision (denominator = 10^10). Examples: 1e6 = 0.01%, 1e7 = 0.1%, 1e8 = 1%

Access: Only GOVERNOR_ROLE

pause

Pause mint/swap/redeem actions

function pause() external;

Access: Only GUARDIAN_ROLE

unpause

Unpause mint/swap/redeem actions

function unpause() external;

Access: Only PROTOCOL_OWNER_ROLE

setRedeemFee

Updates the redeem fee on pool.

Parameters

Name
Type
Description

newFee

uint256

The new redeem fee value. Uses 10 decimal precision (denominator = 10^10). Examples: 1e6 = 0.01%, 1e7 = 0.1%, 1e8 = 1%

Access: Only GOVERNOR_ROLE

setOffPegFeeMultiplier

Updates the off peg fee multiplier of pool.

Parameters

Name
Type
Description

newMultiplier

uint256

The new off peg fee multiplier value

Access: Only GOVERNOR_ROLE

setExchangeRateFeeFactor

Updates the exchange rate fee factor of pool.

Parameters

Name
Type
Description

newFeeFactor

uint256

The new exchange rate fee factor value

Access: Only GOVERNOR_ROLE

setBufferPercent

Updates the buffer percent

Parameters

Name
Type
Description

newBuffer

uint256

The new buffer percent value

Access: Only GOVERNOR_ROLE

setTokenSymbol

Updates the token symbol

Parameters

Name
Type
Description

newSymbol

string

The new token symbol

Access: Only GOVERNOR_ROLE

setDecayPeriod

Updates the decay period

Parameters

Name
Type
Description

newDecayPeriod

uint256

The new decay period value

Access: Only GOVERNOR_ROLE

setRateChangeSkipPeriod

Updates the rate change skip period of pool.

Parameters

Name
Type
Description

newSkipPeriod

uint256

The new rate change skip period value

Access: Only GOVERNOR_ROLE

updateFeeErrorMargin

Updates the fee error margin of pool.

Parameters

Name
Type
Description

newMargin

uint256

The new fee error margin value

Access: Only GOVERNOR_ROLE

updateYieldErrorMargin

Updates yield error margin of pool.

Parameters

Name
Type
Description

newMargin

uint256

The new yield error margin value

Access: Only GOVERNOR_ROLE

distributeLoss

Distribute losses by rebasing negatively

Access: Only GOVERNOR_ROLE

setTreasury

Set treasury address for accumulated fees.

Parameters

Name
Type
Description

newTreasury

address

The new treasury address

Access: Only GOVERNOR_ROLE

withdrawAdminFee

Send newly-minted SPA tokens to Treasury

Parameters

Name
Type
Description

amount

uint256

Amount of tokens to withdraw (18-decimals)

Access: Only GOVERNOR_ROLE

rampA

Allows to gradually ramp the A coefficient within allowed bounds

Parameters

Name
Type
Description

newA

uint256

The target A value

endTime

uint256

Timestamp when ramping should complete

Access: Only CURATOR_ROLE

setMinRampTime

Allows to set MinRampTime

Parameters

Name
Type
Description

newMinRampTime

uint256

The new minimum ramp time value

Access: Only GOVERNOR_ROLE

setSwapFee

Allows governor to set the swap fee within allowed bounds

Parameters

Name
Type
Description

newFee

uint256

The new swap fee value. Uses 10 decimal precision (denominator = 10^10). Examples: 1e6 = 0.01%, 1e7 = 0.1%, 1e8 = 1%

Access: Only GOVERNOR_ROLE

cancelRamp

Allows guardians to cancel an ongoing A ramp in emergencies

Access: Only GUARDIAN_ROLE

View Functions

getRegistry

Returns the ParameterRegistry address used for bounds checking.

Returns

Name
Type
Description

<none>

IParameterRegistry

The parameter registry address

getRampAController

Returns the RampAController address being managed.

Returns

Name
Type
Description

<none>

IRampAController

The RampAController address

getSpa

Returns the SelfPeggingAsset address being managed.

Returns

Name
Type
Description

<none>

SelfPeggingAsset

The SelfPeggingAsset address

getSpaToken

Returns the SPAToken address being managed.

Returns

Name
Type
Description

<none>

SPAToken

The SPAToken address

Last updated