actions
MixinActions
nonReentrant
Functions with this modifer cannot be reentered. The mutex will be locked before function execution and unlocked after.
mint
Allows a user to mint pool tokens on behalf of an address.
Parameters
recipient
address
Address receiving the tokens.
amountIn
uint256
Amount of base tokens.
amountOutMin
uint256
Minimum amount to be received, prevents pool operator frontrunning.
Return Values
recipientAmount
uint256
Number of tokens minted to recipient.
burn
Allows a pool holder to burn pool tokens.
Parameters
amountIn
uint256
Number of tokens to burn.
amountOutMin
uint256
Minimum amount to be received, prevents pool operator frontrunning.
Return Values
netRevenue
uint256
Net amount of burnt pool tokens.
decimals
Returns token decimals.
Return Values
[0]
uint8
Uint8 number of decimals.
_getFeeCollector
_getMinPeriod
_getSpread
_getUnitaryValue
_allocateMintTokens
Allocates tokens to recipient. Fee tokens are locked too.
Each new mint on same recipient sets new activation on all owned tokens.
Parameters
recipient
address
Address of the recipient.
mintedAmount
uint256
Value of issued tokens.
Return Values
recipientAmount
uint256
Number of new tokens issued to recipient.
_allocateBurnTokens
Destroys tokens of holder.
Fee is paid in pool tokens.
Parameters
amountIn
uint256
Value of tokens to be burnt.
Return Values
burntAmount
uint256
Number of net burnt tokens.
_assertBiggerThanMinimum
_safeTransfer
_safeTransferFrom
Last updated