Skip to content

Commit 0accf98

Browse files
authored
ft: update bal-v3 to ethCall from AddrDummy (#1247)
1 parent 3f68c1d commit 0accf98

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

pkg/liquidity-source/balancer/v3/eclp/pool_tracker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (t *PoolTracker) queryRPCData(ctx context.Context, p *entity.Pool, staticEx
123123
isPoolInRecoveryMode bool
124124
)
125125

126-
req := t.ethrpcClient.R().SetContext(ctx).SetOverrides(overrides)
126+
req := t.ethrpcClient.R().SetContext(ctx).SetOverrides(overrides).SetFrom(shared.AddrDummy)
127127

128128
poolAddress := p.Address
129129
paramsPool := []any{common.HexToAddress(poolAddress)}

pkg/liquidity-source/balancer/v3/quant-amm/pool_tracker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (t *PoolTracker) queryRPCData(ctx context.Context, p *entity.Pool, staticEx
142142
isVaultPaused bool
143143
)
144144

145-
req := t.ethrpcClient.R().SetContext(ctx).SetOverrides(overrides)
145+
req := t.ethrpcClient.R().SetContext(ctx).SetOverrides(overrides).SetFrom(shared.AddrDummy)
146146

147147
poolAddress := p.Address
148148
paramsPool := []any{common.HexToAddress(poolAddress)}

pkg/liquidity-source/balancer/v3/reclamm/pool_tracker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (t *PoolTracker) queryRPCData(ctx context.Context, p *entity.Pool, staticEx
131131
isPoolInRecoveryMode bool
132132
)
133133

134-
req := t.ethrpcClient.R().SetContext(ctx).SetOverrides(overrides)
134+
req := t.ethrpcClient.R().SetContext(ctx).SetOverrides(overrides).SetFrom(shared.AddrDummy)
135135

136136
poolAddress := p.Address
137137
paramsPool := []any{common.HexToAddress(poolAddress)}

pkg/liquidity-source/balancer/v3/shared/constant.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ var (
3131
"": common.HexToAddress("0xbA1333333333a1BA1108E8412f11850A5C319bA9"), // default
3232
"coinhane": common.HexToAddress("0xb61cb1E8EF4BB1b74bB858B8B60d82d79488F13D"),
3333
}
34+
35+
AddrDummy = common.HexToAddress("0x1371783000000000000000000000000001371760")
3436
)
3537

3638
const (

pkg/liquidity-source/balancer/v3/stable/pool_tracker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (t *PoolTracker) queryRPCData(ctx context.Context, p *entity.Pool, staticEx
130130
isPoolInRecoveryMode bool
131131
)
132132

133-
req := t.ethrpcClient.R().SetContext(ctx).SetOverrides(overrides)
133+
req := t.ethrpcClient.R().SetContext(ctx).SetOverrides(overrides).SetFrom(shared.AddrDummy)
134134

135135
poolAddress := p.Address
136136
paramsPool := []any{common.HexToAddress(poolAddress)}

pkg/liquidity-source/balancer/v3/weighted/pool_tracker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (t *PoolTracker) queryRPCData(ctx context.Context, p *entity.Pool, staticEx
123123
isPoolInRecoveryMode bool
124124
)
125125

126-
req := t.ethrpcClient.R().SetContext(ctx).SetOverrides(overrides)
126+
req := t.ethrpcClient.R().SetContext(ctx).SetOverrides(overrides).SetFrom(shared.AddrDummy)
127127

128128
poolAddress := p.Address
129129
paramsPool := []any{common.HexToAddress(poolAddress)}

0 commit comments

Comments
 (0)