Deposit & Withdraw
This section covers the core fund management functions for depositing and withdrawing tokens from the Papaya protocol.
deposit
function deposit(uint256 amount, bool isPermit2) externalParameters
Description
Example
// Deposit 1000 tokens using standard transfer
await papayaContract.deposit(ethers.utils.parseEther("1000"), false);
// Deposit using Permit2
await papayaContract.deposit(ethers.utils.parseEther("1000"), true);depositFor
Parameters
Description
Example
withdraw
Parameters
Description
Example
withdrawTo
Parameters
Description
Example
pay
Parameters
Description
Example
rescueFunds
Parameters
Description
Example
Related Events
Related Errors
Last updated