Comment on page
🦅
Pool Manager
The Return Pool Manager is the aggregation layer of all existing pools. It is where the majority of user interactions occur. Minting of Return NFT’s and SBT’s, and staking/unstaking Return NFT’s into Return Pools, and adding/removing funds are done via the manager contract.
function buyNFT(uint amount, address stakedToken, address offsetToken)
Parameter | Data Type | Description |
---|---|---|
amount | uint256 | The amount of stakedToken the user wishes to stake in the pool |
stakedToken | address | Address of the ERC-20 token to be deposited |
offsetToken | address | Address of the ERC-20 tokenized carbon credit to be purchased with yield |
Called when a user stakes into a new pool
function fundNFT(uint nftID, uint amount)
Parameter | Data Type | Description |
---|---|---|
nftID | uint256 | The token id of the staked NFT |
amount | uint256 | The amount of tokens to add to the existing stake |
Called to add funds to an existing staked NFT
function withdrawFunds(uint nftID, uint amount)
Parameter | Data Type | Description |
---|---|---|
nftID | uint256 | The token id of the staked NFT |
amount | uint256 | The amount of tokens to withdraw from the stake |
Called to withdraw some or all staked tokens from an NFT
function historicalOffset(uint nftID, uint amount)
Parameter | Data Type | Description |
---|---|---|
nftID | uint256 | The token id of the staked NFT |
amount | uint256 | The amount of stakedToken to swap for offsetToken in a specific pool |
Called to offset set amount for a specific NFT staked in a pool
Last modified 1yr ago