Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.44 KB

masset-to-basset.md

File metadata and controls

28 lines (18 loc) · 1.44 KB
description
The meta-asset token can be converted back to any of its baking assets.

MASSET TO BASSET CONVERSION

Conversion of DLLR into Basic Assets

Redeeming DLLR stable coin

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

NameTypeDescription
_bAssetaddressAddress of the Basic Asset to redeem.
.
_massetQuantityuint256Units of the masset to redeem
.
_recipientaddressAddress to credit with withdrawn Basic Assets
.
massetRedeemeduint256Relative number of mAsset units burned to pay for the Basic Assets.