Skip to content

Commit

Permalink
Merge pull request #522 from balancer/dev
Browse files Browse the repository at this point in the history
promote do prod
  • Loading branch information
mendesfabio authored Oct 11, 2023
2 parents b268798 + cac3a39 commit e8d4d41
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 14 deletions.
4 changes: 4 additions & 0 deletions assets/polygon-zkevm.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"address": "0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9",
"symbol": "WETH"
},
{
"address": "0x5D8cfF95D7A57c0BF50B30b43c7CC0D52825D4a9",
"symbol": "wstETH"
},
{
"address": "0x16C9a4D841E88E52b51936106010F27085a529EC",
"symbol": "bb-o-USDC"
Expand Down
16 changes: 16 additions & 0 deletions assets/polygon.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@
{
"address": "0xE111178A87A3BFf0c8d18DECBa5798827539Ae99",
"symbol": "EURS"
},
{
"address": "0xE6A537a407488807F0bbeb0038B79004f19DDDFb",
"symbol": "BRLA"
},
{
"address": "0xC8bB8eDa94931cA2F20EF43eA7dBD58E68400400",
"symbol": "VNXAU"
}
],
"fxAggregators": [
Expand All @@ -77,6 +85,14 @@
{
"address": "0x310990E8091b5cF083fA55F500F140CFBb959016",
"symbol": "EURS-USD"
},
{
"address": "0x6DBd1be1a83005d26b582D61937b406300B05A8F",
"symbol": "BRL-USD"
},
{
"address": "0x704179beB09282EaEf98CA8aaa443C1E273eBBc2",
"symbol": "XAU-USD"
}
]
}
27 changes: 15 additions & 12 deletions networks.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
mainnet:
network: mainnet
graft:
# GyroE V2
block: 17672894
# WeightedV3 start block to fix rate providers
block: 16520627
# always make sure the base subgraph has not been pruned
# it should be possible to run time travel queries on it going back to the vault's startBlock
base: QmYA3WuYqS74BYkKbfE4oWrv12YU4RC9FnYaPWF5YMavaj
base: QmesRNivF7vFYoh29b1cusrD9X5Zq3mfeFzcpx2m8WV7cV
EventEmitter:
address: "0x1ACfEEA57d2ac674d7E65964f155AB9348A6C290"
startBlock: 16419620
Expand Down Expand Up @@ -221,16 +221,16 @@ goerli:
polygon:
network: matic
graft:
# Aug 27
block: 46810000
# Sep 22
block: 47850000
# this will be the base of the unpruned deployment, so make sure it has not been pruned
# it should be possible to run time travel queries on it going back to the vault's startBlock
base: QmdotN5vu9VXZZvHNJqugkJ2ZCHFQmx8eLe3UbDvNUxzHJ
base: QmazgY16yHabe6LVVBzXyRAis2izSXzeBwcXg7aDGPKrLt
graft_pruned:
# Aug 27
block: 46810000
# Sep 22
block: 47850000
# this will be the base of the pruned deployment, so it is ok if it is a pruned subgraph
base: QmdotN5vu9VXZZvHNJqugkJ2ZCHFQmx8eLe3UbDvNUxzHJ
base: QmazgY16yHabe6LVVBzXyRAis2izSXzeBwcXg7aDGPKrLt
EventEmitter:
address: "0xcdcECFa416EE3022030E707dC3EA13a8997D74c8"
startBlock: 38152461
Expand Down Expand Up @@ -345,11 +345,11 @@ polygon:
arbitrum:
network: arbitrum-one
graft:
# Aug 27
block: 125400000
# Sep 22
block: 133500000
# always make sure the base subgraph has not been pruned
# it should be possible to run time travel queries on it going back to the vault's startBlock
base: QmSRfL652VGbQ1MnfFgGQdsxuLwdNebKoiLYn4Ph49XsWU
base: QmQ8Na4uwXNUNdKKAdGPUhP1qxoYxHQCoagZuKJ2zZ3qWW
EventEmitter:
address: "0x8f32D631093B5418d0546f77442c5fa66187E59D"
startBlock: 53475240
Expand Down Expand Up @@ -437,6 +437,9 @@ arbitrum:
ProtocolIdRegistry:
address: "0x5cF4928a3205728bd12830E1840F7DB85c62a4B9"
startBlock: 65101370
GyroEV2PoolFactory:
address: "0xdCA5f1F0d7994A32BC511e7dbA0259946653Eaf6"
startBlock: 124858976
bnb:
network: bsc
Vault:
Expand Down
4 changes: 2 additions & 2 deletions src/mappings/poolFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ function createWeightedLikePool(event: PoolCreated, poolType: string, poolTypeVe
// Load pool with initial weights
updatePoolWeights(poolId.toHexString());

// Create PriceRateProvider entities for WeightedPoolV2
if (poolType == PoolType.Weighted && poolTypeVersion == 2) {
// Create PriceRateProvider entities for WeightedPoolV2+
if (poolType == PoolType.Weighted && poolTypeVersion >= 2) {
setPriceRateProviders(poolId.toHex(), poolAddress, tokens);
}

Expand Down

0 comments on commit e8d4d41

Please sign in to comment.