ISmartPoolActions
Overview
License: Apache 2.0-or-later
interface ISmartPoolActionsAuthor: Gabriele Rigo - gab@rigoblock.com
Functions info
mint (0x156e29f6)
function mint(
address recipient,
uint256 amountIn,
uint256 amountOutMin
) external payable returns (uint256 recipientAmount)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.
mintWithToken (0xf7b94b33)
Allows a user to mint pool tokens on behalf of an address using a desired token.
The token must be vault-owned, i.e. in the active token list, after operator action.
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 (0xb390c0ab)
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.
burnForToken (0x78b3dea4)
Allows a pool holder to burn pool tokens and receive a token other than base token.
The method is a fallback for when the vault does not hold enough base token, reverts otherwise.
Parameters:
amountIn
uint256
Number of tokens to burn.
amountOutMin
uint256
Minimum amount to be received, prevents pool operator frontrunning.
tokenOut
address
The token to be received in exchange for pool tokens.
Return values:
netRevenue
uint256
Net amount of burnt pool tokens.
updateUnitaryValue (0xe7d8724e)
Allows anyone to store an up-to-date pool price.
Return values:
navParams
struct NetAssetsValue
Tuple of unitary value, net total value, net total liabilities.
setOperator (0x558a7297)
Sets or removes an operator for the caller.
Parameters:
operator
address
The address of the operator.
approved
bool
The approval status.
Return values:
[0]
bool
bool True, always.
Last updated