Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arb weth lowercase #253

Merged
merged 3 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions config/arbitrum.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const WETH = "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1";
const WETH = "0x82af49447d8a07e3bd95bd0d56f35241523fbab1";

/**
* @type import('./config').NetworkConfig
Expand Down Expand Up @@ -26,6 +26,8 @@ module.exports = {
"0x912ce59144191c1204e64559fe8253a0e49e6548", // ARB
"0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f", // WBTC
"0xda10009cbd5d07dd0cecc66161fc93d7c9000da1", // DAI
"0xe80772eaf6e2e18b651f160bc9158b2a5cafca65", // USD+
"0xb1084db8d3c05cebd5fa9335df95ee4b8a0edc30", // USDT+
],
nonfungiblePositionManagerAddress: "0x46a15b0b27311cedf172ab29e4f4766fbe7f4364",
nonfungiblePositionManagerStartBlock: 101032520,
Expand All @@ -45,7 +47,7 @@ module.exports = {
"0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f", // WBTC
"0xda10009cbd5d07dd0cecc66161fc93d7c9000da1", // DAI
],
minETHLocked: 5,
minETHLocked: 0,
},
masterChefV3: {
masterChefAddress: "0x5e09acf80c0296740ec5d6f643005a4ef8daa694",
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/exchange-stableswap/arb/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "exchange-stableswap",
"name": "exchange-stableswap-arb",
"description": "PancakeSwap Subgraph",
"version": "1.0.0",
"repository": "[email protected]:pancakeswap/pancake-subgraph.git",
Expand Down
10 changes: 5 additions & 5 deletions subgraphs/exchange-v2/mappings/pricing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { Bundle, Pair, Token } from "../generated/schema";
import { ADDRESS_ZERO, factoryContract, ONE_BD, ZERO_BD } from "./utils";

// prettier-ignore
let WETH_ADDRESS = "0x5300000000000000000000000000000000000004";
let WETH_ADDRESS = "0x82af49447d8a07e3bd95bd0d56f35241523fbab1";
// prettier-ignore
let WETH_USDT_PAIR = "0x42290c85a8ee259904416aa2d4802eda7308339e";
let WETH_USDT_PAIR = "0xa59bd260f9707ea44551c510f714ccd482ec75d8";
// prettier-ignore
let WETH_USDC_PAIR = "0xe948be21a0e98f050dd48d8ab954e7b6e26eefa3";
let WETH_USDC_PAIR = "0x0000000000000000000000000000000000000000";

export function getETHPriceInUSD(): BigDecimal {
// fetch eth prices for each stablecoin
Expand All @@ -35,10 +35,10 @@ export function getETHPriceInUSD(): BigDecimal {

// token where amounts should contribute to tracked volume and liquidity
// prettier-ignore
let WHITELIST: string[] = "0x5300000000000000000000000000000000000004,0xf55bec9cafdbe8730f096aa55dad6d22d44099df,0xf55bec9cafdbe8730f096aa55dad6d22d44099df,0xedeabc3a1e7d21fe835ffa6f83a710c70bb1a051,0x3c1bca5a656e69edcd0d4e36bebb3fcdaca60cf1,0x53878b874283351d26d206fa512aece1bef6c0dd,0xf610a9dfb7c89644979b4a0f27063e9e7d7cda32,0xca77eb3fefe3725dc33bccb54edefc3d9f764f97".split(",");
let WHITELIST: string[] = "0x82af49447d8a07e3bd95bd0d56f35241523fbab1,0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9,0xaf88d065e77c8cc2239327c5edb3a432268e5831,0xff970a61a04b1ca14834a43f5de4533ebddb5cc8,0x912ce59144191c1204e64559fe8253a0e49e6548,0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f,0xda10009cbd5d07dd0cecc66161fc93d7c9000da1".split(",");

// minimum liquidity for price to get tracked
let MINIMUM_LIQUIDITY_THRESHOLD_ETH = BigDecimal.fromString("1");
let MINIMUM_LIQUIDITY_THRESHOLD_ETH = BigDecimal.fromString("0");

/**
* Search through graph to find derived BNB per token.
Expand Down
6 changes: 3 additions & 3 deletions subgraphs/exchange-v2/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ schema:
dataSources:
- kind: ethereum/contract
name: Factory
network: scroll
network: arbitrum-one
source:
address: "0x02a84c1b3bbd7401a5f7fa98a384ebc70bb5749e"
abi: Factory
startBlock: 3804
startBlock: 101022992
mapping:
kind: ethereum/events
apiVersion: 0.0.4
Expand All @@ -34,7 +34,7 @@ dataSources:
templates:
- kind: ethereum/contract
name: Pair
network: scroll
network: arbitrum-one
source:
abi: Pair
mapping:
Expand Down
10 changes: 5 additions & 5 deletions subgraphs/exchange-v3/template/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ features:
dataSources:
- kind: ethereum/contract
name: Factory
network: scroll
network: arbitrum-one
source:
address: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"
abi: Factory
startBlock: 6581
startBlock: 101028949
mapping:
kind: ethereum/events
apiVersion: 0.0.4
Expand All @@ -37,11 +37,11 @@ dataSources:
handler: handlePoolCreated
- kind: ethereum/contract
name: NonfungiblePositionManager
network: scroll
network: arbitrum-one
source:
address: "0x46a15b0b27311cedf172ab29e4f4766fbe7f4364"
abi: NonfungiblePositionManager
startBlock: 6977
startBlock: 101032520
mapping:
kind: ethereum/events
apiVersion: 0.0.4
Expand Down Expand Up @@ -71,7 +71,7 @@ dataSources:
templates:
- kind: ethereum/contract
name: Pool
network: scroll
network: arbitrum-one
source:
abi: Pool
mapping:
Expand Down
10 changes: 5 additions & 5 deletions subgraphs/exchange-v3/template/utils/pricing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ import { BigDecimal, BigInt } from "@graphprotocol/graph-ts";
import { exponentToBigDecimal, safeDiv } from "./index";

// prettier-ignore
const WETH_ADDRESS = "0x5300000000000000000000000000000000000004";
const WETH_ADDRESS = "0x82af49447d8a07e3bd95bd0d56f35241523fbab1";
// prettier-ignore
const USDC_WETH_03_POOL = "0xb4ea03fd982685c68279cfe6dd05dd26521c35dd";
const USDC_WETH_03_POOL = "0xd9e2a1a61b6e61b275cec326465d417e52c1b95c";

const STABLE_IS_TOKEN0 = "true" as string;
const STABLE_IS_TOKEN0 = "false" as string;

// token where amounts should contribute to tracked volume and liquidity
// usually tokens that many tokens are paired with s
// prettier-ignore
export let WHITELIST_TOKENS: string[] = "0x5300000000000000000000000000000000000004,0xf55bec9cafdbe8730f096aa55dad6d22d44099df,0xf55bec9cafdbe8730f096aa55dad6d22d44099df,0xedeabc3a1e7d21fe835ffa6f83a710c70bb1a051,0x3c1bca5a656e69edcd0d4e36bebb3fcdaca60cf1,0x53878b874283351d26d206fa512aece1bef6c0dd,0xf610a9dfb7c89644979b4a0f27063e9e7d7cda32,0xca77eb3fefe3725dc33bccb54edefc3d9f764f97".split(",");
export let WHITELIST_TOKENS: string[] = "0x82af49447d8a07e3bd95bd0d56f35241523fbab1,0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9,0xaf88d065e77c8cc2239327c5edb3a432268e5831,0xff970a61a04b1ca14834a43f5de4533ebddb5cc8,0x912ce59144191c1204e64559fe8253a0e49e6548,0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f,0xda10009cbd5d07dd0cecc66161fc93d7c9000da1,0xe80772eaf6e2e18b651f160bc9158b2a5cafca65,0xb1084db8d3c05cebd5fa9335df95ee4b8a0edc30".split(",");

// prettier-ignore
let STABLE_COINS: string[] = "0x06efdbff2a14a7c8e15944d1f4a48f9f95f663a4,0xf55bec9cafdbe8730f096aa55dad6d22d44099df,0xedeabc3a1e7d21fe835ffa6f83a710c70bb1a051,0xca77eb3fefe3725dc33bccb54edefc3d9f764f97".split(",");
let STABLE_COINS: string[] = "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9,0xaf88d065e77c8cc2239327c5edb3a432268e5831,0xff970a61a04b1ca14834a43f5de4533ebddb5cc8,0xda10009cbd5d07dd0cecc66161fc93d7c9000da1".split(",");

let MINIMUM_ETH_LOCKED = BigDecimal.fromString("0");

Expand Down
Loading