Implementation of the NToken for the ParaSpace protocol
_apeCoinStaking
contract ApeCoinStaking _apeCoinStaking
APE_STAKING_DATA_STORAGE_POSITION
bytes32 APE_STAKING_DATA_STORAGE_POSITION
constructor
constructor(contract IPool pool, address apeCoinStaking) internal
Constructor.
Parameters
The address of the Pool contract
initialize
function initialize(contract IPool initializingPool, address underlyingAsset, contract IRewardController incentivesController, string nTokenName, string nTokenSymbol, bytes params) public virtual
getBAKC
function getBAKC() public view returns (contract IERC721)
getApeStaking
function getApeStaking() external view returns (contract ApeCoinStaking)
transferOnLiquidation
function transferOnLiquidation(address from, address to, uint256 tokenId) external
Overrides the transferOnLiquidation from NToken to withdraw all staked and pending rewards before transfer the asset on liquidation
burn
function burn(address from, address receiverOfUnderlying, uint256[] tokenIds) external virtual returns (uint64, uint64)
Overrides the burn from NToken to withdraw all staked and pending rewards before burning the NToken on liquidation/withdraw
POOL_ID
function POOL_ID() internal pure virtual returns (uint256)
initializeStakingData
function initializeStakingData() internal
setUnstakeApeIncentive
function setUnstakeApeIncentive(uint256 incentive) external
apeStakingDataStorage
function apeStakingDataStorage() internal pure returns (struct ApeStakingLogic.APEStakingParameter rgs)
unstakePositionAndRepay
function unstakePositionAndRepay(uint256 tokenId, address incentiveReceiver) external
getUserApeStakingAmount
function getUserApeStakingAmount(address user) external view returns (uint256)