depositAndJoin()
This function is in the StandardRewards.sol contract.
Function depositAndJoin()
StandardRewards.sol
This function is used to deposit tokens into a liquidity pool and simultaneously join the rewards program.
The function accepts the ID of the rewards program and the number of tokens to deposit as arguments.
Function Arguments
Name
Type
Description
id
uint256
This is the ID of the rewards program.
tokenAmount
uint256
This is the number of tokens to deposit.
This function does not return anything.
Last updated