NTokenUniswapV3
Implementation of the interest bearing token for the ParaSpace protocol
constructor
Constructor.
Parameters
pool
contract IPool
The address of the Pool contract
getXTokenType
return token type`of xToken
_decreaseLiquidity
A function that decreases the current liquidity.
Parameters
user
address
tokenId
uint256
The id of the erc721 token
liquidityDecrease
uint128
The amount of liquidity to remove of LP
amount0Min
uint256
The minimum amount to remove of token0
amount1Min
uint256
The minimum amount to remove of token1
receiveEthAsWeth
bool
If convert weth to ETH
Return Values
amount0
uint256
The amount received back in token0
amount1
uint256
The amount returned back in token1
decreaseUniswapV3Liquidity
Decreases liquidity for underlying Uniswap V3 NFT LP and validates that the user respects liquidation checks.
Parameters
user
address
The user address decreasing liquidity for
tokenId
uint256
The id of the erc721 token
liquidityDecrease
uint128
The amount of liquidity to remove of LP
amount0Min
uint256
The minimum amount to remove of token0
amount1Min
uint256
The minimum amount to remove of token1
receiveEthAsWeth
bool
If convert weth to ETH