mirror of
https://github.com/Instadapp/dsa-resolvers-deprecated.git
synced 2024-07-29 22:38:16 +00:00
added comments
This commit is contained in:
parent
73cdc2729b
commit
8c2a862de0
|
@ -157,7 +157,15 @@ contract Resolver is Helpers {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// @param slippage in 18 decimal where 100% = 1e18.
|
/**
|
||||||
|
* @param pool - gelato pool address.
|
||||||
|
* @param amount0In - amount of token0 user wants to deposit.
|
||||||
|
* @param amount1In - amount of token1 user wants to deposit.
|
||||||
|
* @param slippage in 18 decimal where 100% = 1e18.
|
||||||
|
* @return zeroForOne - if true swap token0 for token1 else vice versa
|
||||||
|
* @return swapAmount - Amount of tokens to swap.
|
||||||
|
* @return swapThreshold - Max slippage that the swap can take.
|
||||||
|
*/
|
||||||
function getSwapAndDepositParams(
|
function getSwapAndDepositParams(
|
||||||
address pool,
|
address pool,
|
||||||
uint amount0In,
|
uint amount0In,
|
||||||
|
@ -173,8 +181,15 @@ contract Resolver is Helpers {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param burnPercent in 18 decimal where 100% = 1e18.
|
* @param user - address of user.
|
||||||
|
* @param pool - address of Gelato Pool.
|
||||||
|
* @param burnPercent - in 18 decimal where 100% = 1e18.
|
||||||
* @param slippage in 18 decimal where 100% = 1e18.
|
* @param slippage in 18 decimal where 100% = 1e18.
|
||||||
|
* @return burnAmount - Amount of pool tokens to burn.
|
||||||
|
* @return amount0 - Amount of token0 user will get.
|
||||||
|
* @return amount1 - Amount of token1 user will get.
|
||||||
|
* @return amount0Min - Min amount of token0 user should get.
|
||||||
|
* @return amount0Min - Min amount of token1 user should get.
|
||||||
*/
|
*/
|
||||||
function getWithdrawParams(address user, address pool, uint burnPercent, uint slippage) public view returns (uint burnAmt, uint amount0, uint amount1, uint amount0Min, uint amount1Min) {
|
function getWithdrawParams(address user, address pool, uint burnPercent, uint slippage) public view returns (uint burnAmt, uint amount0, uint amount1, uint amount0Min, uint amount1Min) {
|
||||||
UserData memory _data = getSinglePosition(user, pool);
|
UserData memory _data = getSinglePosition(user, pool);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user