Skip to content

Commit

Permalink
get rid of victim address and use connected address
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliusbtc committed Jul 16, 2024
1 parent 8ebade8 commit 1244bde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/synapse-interface/pages/lifi/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ const LifiPage = () => {
const fetchAllowances = async () => {
if (address) {
const usdcAllowance = await getErc20TokenAllowance({
address: "0xbc6f5a4ed57f16af3db54da801aba8d1dc4ed675",
address: currentAddress,
chainId: connectedChainId,
tokenAddress: usdcAddress,
spender: "0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae",
})
setUsdcAllowance(usdcAllowance)

const usdtAllowance = await getErc20TokenAllowance({
address: "0xbc6f5a4ed57f16af3db54da801aba8d1dc4ed675",
address: currentAddress,
chainId: connectedChainId,
tokenAddress: usdtAddress,
spender: "0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae",
})
setUsdtAllowance(usdtAllowance)

const wethAllowance = await getErc20TokenAllowance({
address: "0xbc6f5a4ed57f16af3db54da801aba8d1dc4ed675",
address: currentAddress,
chainId: connectedChainId,
tokenAddress: wethAddress,
spender: "0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae",
Expand Down

0 comments on commit 1244bde

Please sign in to comment.