File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
models/wrappers/cm_wrapper Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/Gearbox-protocol/third-eye
33go 1.20
44
55require (
6- github.com/Gearbox-protocol/sdk-go v0.0.0-20250202041008-5cd987002fd9
6+ github.com/Gearbox-protocol/sdk-go v0.0.0-20250206105656-76adcae4b482
77 github.com/ethereum/go-ethereum v1.13.14
88 github.com/go-playground/validator/v10 v10.4.1
99 github.com/google/go-cmp v0.5.9
@@ -82,6 +82,6 @@ require (
8282
8383replace github.com/btcsuite/btcd => github.com/btcsuite/btcd v0.22.1
8484
85- replace github.com/Gearbox-protocol/sdk-go v0.0.0-20241126153159-4d2505d49944 => ../sdk-go
85+ replace github.com/Gearbox-protocol/sdk-go v0.0.0-20250202041008-5cd987002fd9 => ../sdk-go
8686
8787replace github.com/ethereum/go-ethereum v1.13.14 => github.com/OffchainLabs/go-ethereum v1.13.4-0.20240313010929-e5d8587e7227
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ contrib.go.opencensus.io/exporter/ocagent v0.6.0/go.mod h1:zmKjrJcdo0aYcVS7bmEeS
55github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ =
66github.com/BurntSushi/toml v0.3.1 /go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU =
77github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ =
8- github.com/Gearbox-protocol/sdk-go v0.0.0-20250202041008-5cd987002fd9 h1:nPRo/oxbzDsrzDUeq0XGETd+a0WepVGGmvq5o1ne0cc =
9- github.com/Gearbox-protocol/sdk-go v0.0.0-20250202041008-5cd987002fd9 /go.mod h1:jRBSOG94bpGc5ci8EWIPUVXZdaGEaekMNmhajbmWFVU =
8+ github.com/Gearbox-protocol/sdk-go v0.0.0-20250206105656-76adcae4b482 h1:24uVEuVEK1dzOcLhz8onUSg4csvGQpcQ8sEmqdhPRHY =
9+ github.com/Gearbox-protocol/sdk-go v0.0.0-20250206105656-76adcae4b482 /go.mod h1:jRBSOG94bpGc5ci8EWIPUVXZdaGEaekMNmhajbmWFVU =
1010github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow =
1111github.com/Microsoft/go-winio v0.6.1 /go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM =
1212github.com/OffchainLabs/go-ethereum v1.13.4-0.20240313010929-e5d8587e7227 h1:+/3TrD+q+BP36jGj2Bycdmrc/joKLNbc5ImePQzKRLM =
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ func NewCMWrapper(client core.ClientI) *CMWrapper {
2828
2929func (s CMWrapper ) OnLogs (txLogs []types.Log ) {
3030 ind := 0
31- var lastBlockNum int64 = 0
31+ var lastBlockNum int64 = s . GetLastSync ()
3232 for ind < len (txLogs ) {
3333 txLog := txLogs [ind ]
3434 // check block change
@@ -86,7 +86,7 @@ func (s CMWrapper) onBlockChange(lastBlockNum, newBlockNum int64) {
8686 }
8787 // update for direct token transfer
8888 for _ , adapter := range adapters {
89- if adapter .GetLastSync () >= lastBlockNum {
89+ if adapter .GetLastSync () >= newBlockNum {
9090 continue
9191 }
9292 cm := credit_manager .GetCMForWrapper (adapter )
You can’t perform that action at this time.
0 commit comments