Helper
The Helper smart contract is a contract that helps deposit LP with single token, even if you do not bring two tokens.
Code
Github Link: (Will be updated after official launch)
Address
Events, Read-Only Functions, and State-Changing Functions
State-Changing Functions
estimateLP
Method to estimate the expected amounts, depositing with single token.
Parameters
lp
: Address of LP tokentoken
: Token address to be depositedamount
: Amount of token not to be swappedswap
: Amount of token to swapvalidPool
: Whether it is a pool with KSP rewards
Returns
estLP
: Expected number of LP token to be mintedrealInput
: Actual number of input amountestTarget
: Amount of tokens to be receivedthrough swap
estimateSwapAmount
Method to change the mining weight per liquidity pair
Parameters
lp
: Address of LPtoken
: Token address to be depositedamount
: Amount of token to be deposited
Returns
maxLP
: Expected number of LP token to be mintedmaxSwap
: Expected amount of token to swaptargetAmount
: Amount of tokens to be received through swap
Last updated