Skip to content

Commit ec66ae4

Browse files
committed
fix: pool for somnia
1 parent ab9fa00 commit ec66ae4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

models/pool/pool_v3/state_snapshot_and_gateway_fix.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ func (mdl *Poolv3) OnBlockChange(inputBlock int64) (call multicall.Multicall2Cal
3636
if mdl.DiscoveredAt == inputBlock { //ONESNAPPOOL: only one pool stat at the discoveredAt
3737
return multicall.Multicall2Call{}, nil
3838
}
39+
if inputBlock == 184539322 && core.GetBaseChainId(mdl.Client) == 5031 && mdl.Address == "0x6f652fbCfC2107ef9C99456311B5650cd52D6419" {
40+
inputBlock = 184539321 // can't get for pool
41+
}
3942
return mdl.getCallAndProcessFn(inputBlock)
4043
}
4144

services/trace_service/tenderly_fetcher.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ func (ep InternalFetcher) check() {
164164
log.Info("Endpoints that support parity trace_transaction: ", endpointsSupportTrace)
165165
}
166166
}
167+
168+
// {"method":"debug_traceTransaction","params":["%s", {"tracer": "callTracer"}], "id":1,"jsonrpc":"2.0"} for quicknode, like monad, etherlink and somnia
169+
// {"id":1,"jsonrpc":"2.0","params":["%s"],"method":"trace_transaction"} on alchemy, rpcs
170+
// tenderly for others
167171
func (ep InternalFetcher) GetTxTrace(txHash string, canLoadLogsFromRPC bool) *TenderlyTrace {
168172
var trace *TenderlyTrace
169173
if ep.useTenderlyTrace {

0 commit comments

Comments
 (0)