Basset to Masset Conversion
Basic assets that are validated in the Basket Manager storage, and are aggregated to be converted 1:1 into the meta-asste token, the Sovryn Dollar or "DLLR".

Minting DLLR stable coin
In order to perform the minting of DLLR assets, the user must own a balance of valid assets: so far, whether Dolar-on-Chain or "DOC" or Zero-Dollar or "ZUSD".
The user must first execute the proper approve
function to the ERC20 contract of the basic asset.
After such transaction the user can address the execution of mintTo
to the MassetManager
contract. The mintTo
function implies the internal execution of safeTransferFrom
openzeppeling tool to bring the basic asset to the treasury of MassetManager
and then the execution of DLLR.mint
in favor of the user.
function mintTo(
address _bAsset,
uint256 _bAssetQuantity,
address _recipient
) external nonReentrant returns (uint256 massetMinted)
Arguments
_bAsset
address
Address of the Basic Asset .
_bAssetQuantity
uint256
Quantity in Basic - Asset units
_recipient
address
Receipient of the newly minted mAsset tokens
massetMinted
uint256
Number of newly minted mAssets
Last updated