Additional Concepts

distributeRewards

These functions can be used to distribute rewards to the liquidity providers of a TOKEN⇄TOKEN pool, in the form of either one or both of the constituent tokens of the pair.
1
function distributeRewards(
2
address tokenA,
3
address tokenB,
4
uint amountA,
5
uint amountB,
6
uint deadline
7
)
Copied!
The distributeRewards function accepts these parameters:
Type
Parameter
Description
tokenA
address
The contract address of one of the tokens you wish to provide.
tokenB
address
The contract address of the other token.
amountA
uint
The amount of tokenA desired to provide.
amountB
uint
The amount of tokenB desired to provide.
deadline
uint
The Unix-time deadline for which the transaction must be confirmed before.

distributeRewardsETH

This function can be used to distribute rewards to the liquidity providers of a TOKEN⇄ETH or BNB pool, in the form of either one or both of the constituent tokens of the pair.
1
function distributeRewardsETH(
2
address token,
3
uint amountToken,
4
uint deadline
5
)
Copied!
The distributeRewardsETH function accepts these parameters:
Type
Parameter
Description
token
address
The contract address of the one token you wish to provide.
amountToken
uint
The amount of token to be sent to the pool.
deadline
uint
The Unix-time deadline for which the transaction must be confirmed before.
Last modified 6mo ago
Export as PDF
Copy link