Interactions
setMintFee
Updates the mint fee on pool.
function setMintFee(uint256 newFee) external;
Parameters
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.
function setRedeemFee(uint256 newFee) external;
Parameters
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.
function setOffPegFeeMultiplier(uint256 newMultiplier) external;
Parameters
newMultiplier
uint256
The new off peg fee multiplier value
Access: Only GOVERNOR_ROLE
setExchangeRateFeeFactor
Updates the exchange rate fee factor of pool.
function setExchangeRateFeeFactor(uint256 newFeeFactor) external;
Parameters
newFeeFactor
uint256
The new exchange rate fee factor value
Access: Only GOVERNOR_ROLE
setBufferPercent
Updates the buffer percent
function setBufferPercent(uint256 newBuffer) external;
Parameters
newBuffer
uint256
The new buffer percent value
Access: Only GOVERNOR_ROLE
setTokenSymbol
Updates the token symbol
function setTokenSymbol(string calldata newSymbol) external;
Parameters
newSymbol
string
The new token symbol
Access: Only GOVERNOR_ROLE
setDecayPeriod
Updates the decay period
function setDecayPeriod(uint256 newDecayPeriod) external;
Parameters
newDecayPeriod
uint256
The new decay period value
Access: Only GOVERNOR_ROLE
setRateChangeSkipPeriod
Updates the rate change skip period of pool.
function setRateChangeSkipPeriod(uint256 newSkipPeriod) external;
Parameters
newSkipPeriod
uint256
The new rate change skip period value
Access: Only GOVERNOR_ROLE
updateFeeErrorMargin
Updates the fee error margin of pool.
function updateFeeErrorMargin(uint256 newMargin) external;
Parameters
newMargin
uint256
The new fee error margin value
Access: Only GOVERNOR_ROLE
updateYieldErrorMargin
Updates yield error margin of pool.
function updateYieldErrorMargin(uint256 newMargin) external;
Parameters
newMargin
uint256
The new yield error margin value
Access: Only GOVERNOR_ROLE
distributeLoss
Distribute losses by rebasing negatively
function distributeLoss() external;
Access: Only GOVERNOR_ROLE
setTreasury
Set treasury address for accumulated fees.
function setTreasury(address newTreasury) external;
Parameters
newTreasury
address
The new treasury address
Access: Only GOVERNOR_ROLE
withdrawAdminFee
Send newly-minted SPA tokens to Treasury
function withdrawAdminFee(uint256 amount) external;
Parameters
amount
uint256
Amount of tokens to withdraw (18-decimals)
Access: Only GOVERNOR_ROLE
rampA
Allows to gradually ramp the A coefficient within allowed bounds
function rampA(uint256 newA, uint256 endTime) external;
Parameters
newA
uint256
The target A value
endTime
uint256
Timestamp when ramping should complete
Access: Only CURATOR_ROLE
setMinRampTime
Allows to set MinRampTime
function setMinRampTime(uint256 newMinRampTime) external;
Parameters
newMinRampTime
uint256
The new minimum ramp time value
Access: Only GOVERNOR_ROLE
setSwapFee
Allows governor to set the swap fee within allowed bounds
function setSwapFee(uint256 newFee) external;
Parameters
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
function cancelRamp() external;
Access: Only GUARDIAN_ROLE
View Functions
getRegistry
Returns the ParameterRegistry address used for bounds checking.
function getRegistry() external view returns (IParameterRegistry);
Returns
<none>
IParameterRegistry
The parameter registry address
getRampAController
Returns the RampAController address being managed.
function getRampAController() external view returns (IRampAController);
Returns
<none>
IRampAController
The RampAController address
getSpa
Returns the SelfPeggingAsset address being managed.
function getSpa() external view returns (SelfPeggingAsset);
Returns
<none>
SelfPeggingAsset
The SelfPeggingAsset address
getSpaToken
Returns the SPAToken address being managed.
function getSpaToken() external view returns (SPAToken);
Returns
<none>
SPAToken
The SPAToken address
Last updated