depositBBRef
Developers > Yield Tranches > Methods > depositBBRef
This method transfers
token
from the user to the contract and mint BB (Junior) tranche tokens for the user. It gives also the possibility to add a referral address. msg.sender
should approve this contract first to spend _amount
of token
function depositBBRef(
uint256 _amount
address _referral
) external returns (uint256)
Parameter | Description |
---|---|
_amount | Amount of token to deposit |
_referral | Referral address |
Value | Description |
---|---|
_val | BB tranche tokens minted |
Last modified 5mo ago