Mint
function mint(uint mintAmount) returns (uint)function mint() payableErc20 underlying = Erc20(0xToken...); // get a handle for the underlying asset contract
SErc20 sToken = SErc20(0x3FDA...); // get a handle for the corresponding sToken contract
underlying.approve(address(sToken), 100); // approve the transfer
assert(sToken.mint(100) == 0); // mint the sTokens and assert there is no errorLast updated
Was this helpful?