Deposit Methods
Deposit methods of Papaya SDK for depositing tokens into the protocol
deposit()
deposit()async deposit(amount: bigint | number, isPermit2: boolean = false): Promise<ethers.TransactionResponse>// Format the amount correctly (10 USDT with 6 decimals)
const amount = formatInput('10', 6);
// Deposit
const tx = await papaya.deposit(amount);
await tx.wait();
console.log('Deposit successful');depositBySig()
depositBySig()depositFor()
depositFor()Last updated