Skip to content

Commit

Permalink
Merge pull request #98 from balancer/fix-omni-lock-updates
Browse files Browse the repository at this point in the history
fix omni lock updates
  • Loading branch information
mendesfabio authored Apr 1, 2024
2 parents 455babc + 581e250 commit b5df36f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
29 changes: 16 additions & 13 deletions networks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ goerli:
mainnet:
network: mainnet
supportTraces: true
graft:
base: QmbfxmF1pMSQPRtk4y4GC6Y946fNy7bjraJEp6aYpojTDt
block: 17331264
EventEmitter:
address: "0x1ACfEEA57d2ac674d7E65964f155AB9348A6C290"
startBlock: 16419620
Expand Down Expand Up @@ -111,9 +114,9 @@ sepolia:
startBlock: 3421600
polygon:
network: matic
# graft:
# block: 42610000
# base: QmTMYUbqpYZEYAzBTbMLmNgb13UyzdvyuKbfWMKJFzPWWB
graft:
block: 43103222
base: QmXBbUTPQPMUM57xT5GnxMKuR4UAmZwk3Gk6GTYiR5q2qW
EventEmitter:
address: "0xcdcECFa416EE3022030E707dC3EA13a8997D74c8"
startBlock: 38152461
Expand All @@ -131,9 +134,9 @@ polygon:
startBlock: 36020863
arbitrum:
network: arbitrum-one
# graft:
# block: 80501659
# base: QmcKEX764wP6e62ywbZd28b1VFx5iq7jYzs8c3SM53PJce
graft:
block: 94050211
base: QmWRWxeDNcMTRsU35hF6aHKKXf9VsEDcaTzdcJnYS9gKLY
EventEmitter:
address: "0x8f32D631093B5418d0546f77442c5fa66187E59D"
startBlock: 53475240
Expand All @@ -151,9 +154,9 @@ arbitrum:
startBlock: 40916259
optimism:
network: optimism
# graft:
# base: QmQVriEjvBtusHjLv88neMNPCwPzvHRsRhvFyQxbcZMepH
# block: 99765962
graft:
base: Qme4tckejtJmmRDM6gVDre99wVUY6FeckSrtswkA2GDeTZ
block: 101185055
EventEmitter:
address: "0x082990116f256E078572a1b69772115d2cF6b0a2"
startBlock: 99124541
Expand All @@ -171,9 +174,9 @@ optimism:
startBlock: 41872979
gnosis:
network: gnosis
# graft:
# block: 29344802
# base: QmbF9ybzefDh29hdERkY9VxwMrvA15U5sgVcnPJxDpEwbC
graft:
block: 28110199
base: QmXpWX5esNz1JHHmmn4whNc6pHHZ8VPPmvVWnuxNLSmQYE
EventEmitter:
address: "0xd8bf95b44772213905a8a74881862347acbabc48"
startBlock: 26892431
Expand Down Expand Up @@ -233,4 +236,4 @@ base:
startBlock: 1205742
omniVotingEscrowChild:
address: "0xE241C6e48CA045C7f631600a0f1403b2bFea05ad"
startBlock: 2417884
startBlock: 2417884
2 changes: 1 addition & 1 deletion src/voting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ export function handleUserBalToChain(event: UserBalToChain): void {
if (omniLock == null) {
omniLock = new OmniVotingEscrowLock(id);
omniLock.localUser = userAddress.toHexString();
omniLock.remoteUser = event.params.remoteUser;
omniLock.votingEscrowID = '0xc128a9954e6c874ea3d62ce62b468ba073093f25';
omniLock.dstChainId = event.params.dstChainId;
}

omniLock.bias = scaleDownBPT(event.params.userPoint.bias);
omniLock.slope = scaleDownBPT(event.params.userPoint.slope);
omniLock.timestamp = event.params.userPoint.ts.toI32();
omniLock.remoteUser = event.params.remoteUser;

omniLock.save();
}

0 comments on commit b5df36f

Please sign in to comment.