Skip to content

Commit

Permalink
Add surplus for paraswap
Browse files Browse the repository at this point in the history
  • Loading branch information
PolEpie committed Nov 16, 2023
1 parent 39de68d commit a762800
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Empty file added Icon
Empty file.
6 changes: 5 additions & 1 deletion src/utils/swap/paraswap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ interface BuildTxBody {
slippage: number;
userAddress: Address;
receiver?: Address;
deadline?: number;
deadline?: number;
takeSurplus?: boolean;
partnerAddress?: Address;
}

const API_URL = 'https://apiv5.paraswap.io';
Expand Down Expand Up @@ -109,6 +111,8 @@ export const buildSwapForParaSwap: Swapper['buildSwap'] = async ({
slippage,
userAddress,
deadline: deadline,
takeSurplus: true,
partnerAddress: '0x678AB5F14B978916267b4C9E1f546600e55904e3',
};

try {
Expand Down

0 comments on commit a762800

Please sign in to comment.