Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 930 Bytes

depositaaref.md

File metadata and controls

26 lines (17 loc) · 930 Bytes
description
Developers > Yield Tranches > Methods > depositAARef

depositAARef

This method transfers token from the user to the contract and mint AA (Senior) 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

function depositAARef(
    uint256 _amount
    address _referral
) external returns (uint256)

Parameters

ParameterDescription
_amountAmount of token to deposit
_referralReferral address

Return values

ValueDescription
_valAA tranche tokens minted