EntryUnwrappingModule

Functions

 function enter(uint128 sid, uint256 tokenId)
  • Allows purchasing CDT tokens using SID and TokenId.

  • Transfers NFT token from user to ProtocolSynthChef contract.

  • Initiates deposit to the corresponding farm.

function exit(uint128 sid, address recipient, uint256 synthAmount) external
  • Sells Synth token, returns liquidity from the farm, creates and transfers NFT token to the recipient with requested liquidity in it.

function exitWithUnwrapping(uint128 sid, address recipient, uint256 synthAmount) external
  • Sells Synth token, unwraps NFT token and returns to the recipient underlying token(Liquidators usage only).

Last updated