NTokenUniswapV3

Implementation of the interest bearing token for the ParaSpace protocol

constructor

constructor(contract IPool pool) public

Constructor.

Parameters

getXTokenType

function getXTokenType() external pure returns (enum XTokenType)

return token type`of xToken

_decreaseLiquidity

function _decreaseLiquidity(address user, uint256 tokenId, uint128 liquidityDecrease, uint256 amount0Min, uint256 amount1Min, bool receiveEthAsWeth) internal returns (uint256 amount0, uint256 amount1)

A function that decreases the current liquidity.

Parameters

Return Values

decreaseUniswapV3Liquidity

function decreaseUniswapV3Liquidity(address user, uint256 tokenId, uint128 liquidityDecrease, uint256 amount0Min, uint256 amount1Min, bool receiveEthAsWeth) external

Decreases liquidity for underlying Uniswap V3 NFT LP and validates that the user respects liquidation checks.

Parameters

_safeTransferETH

function _safeTransferETH(address to, uint256 value) internal

receive

receive() external payable