Skip to content

Commit

Permalink
examples/improve simpleQuote
Browse files Browse the repository at this point in the history
  • Loading branch information
Velenir committed Dec 11, 2024
1 parent 386f1a6 commit e4fbd72
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/examples/simpleQuote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ async function allQuote() {
const DeltaContract = await simpleSDK.delta.getDeltaContract();

// or sign a Permit1 or Permit2 TransferFrom for DeltaContract
await simpleSDK.delta.approveTokenForDelta(amount, DAI_TOKEN);
const approveTxHash = await simpleSDK.delta.approveTokenForDelta(
amount,
DAI_TOKEN
);

const slippagePercent = 0.5;
const destAmountAfterSlippage = BigInt(
Expand Down

0 comments on commit e4fbd72

Please sign in to comment.