Skip to content

Commit

Permalink
improve: change recipient address (#882)
Browse files Browse the repository at this point in the history
* improve: change recipient address

* improve: defer to simulated recipient address
  • Loading branch information
james-a-morris authored Oct 26, 2023
1 parent 6864270 commit ba21a7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions api/_constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,6 @@ export const DEFI_LLAMA_POOL_LOOKUP: Record<string, string> = {
"0x36Be1E97eA98AB43b4dEBf92742517266F5731a3":
"8f7b5b8c-09db-45e3-8938-f30115d34672",
};

export const DEFAULT_SIMULATED_RECIPIENT_ADDRESS =
"0xBb23Cd0210F878Ea4CcA50e9dC307fb0Ed65Cf6B";
4 changes: 2 additions & 2 deletions api/limits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { VercelResponse } from "@vercel/node";
import { ethers } from "ethers";
import {
BLOCK_TAG_LAG,
DEFAULT_SIMULATED_RECIPIENT_ADDRESS,
disabledL1Tokens,
TOKEN_SYMBOLS_MAP,
} from "./_constants";
Expand All @@ -30,7 +31,6 @@ import {
HUB_POOL_CHAIN_ID,
ENABLED_ROUTES,
} from "./_utils";
import { constants } from "@across-protocol/sdk-v2";

const LimitsQueryParamsSchema = object({
token: validAddress(),
Expand Down Expand Up @@ -150,7 +150,7 @@ const handler = async (
ethers.BigNumber.from("10").pow(18),
computedOriginChainId,
Number(destinationChainId),
constants.ZERO_ADDRESS,
DEFAULT_SIMULATED_RECIPIENT_ADDRESS,
tokenPriceNative
),
hubPool.callStatic.multicall(multicallInput, { blockTag: BLOCK_TAG_LAG }),
Expand Down

2 comments on commit ba21a7b

@vercel
Copy link

@vercel vercel bot commented on ba21a7b Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

goerli-frontend-v2 – ./

goerli-frontend-v2.vercel.app
goerli-frontend-v2-git-master-uma.vercel.app
goerli-frontend-v2-uma.vercel.app

@vercel
Copy link

@vercel vercel bot commented on ba21a7b Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.