description |
---|
The meta-asset token can be converted back to any of its baking assets. |
Conversion of DLLR into Basic Assets
The user can directly redeem their "DLLR" assets into any of the basic assets available in the balance of the Masset treasury.
The user can address the execution of redeemTo
to the MassetManager
contract. The DLLR.burn
internal operation can only be executed by the Massetmanager
contract, and then the safeTransfer
openzeppeling tool function will be executed to send the basic asset i favor of the user.
function redeemTo(
address _bAsset,
uint256 _massetQuantity,
address _recipient
) external nonReentrant returns (uint256 massetRedeemed)
Arguments
Name | Type | Description |
---|---|---|
_bAsset | address | Address of the Basic Asset to redeem. . |
_massetQuantity | uint256 | Units of the masset to redeem . |
_recipient | address | Address to credit with withdrawn Basic Assets . |
massetRedeemed | uint256 | Relative number of mAsset units burned to pay for the Basic Assets. |