Skip to content

Commit 276d0b3

Browse files
committed
fix: etherlink error
1 parent 65fa193 commit 276d0b3

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

models/aggregated_block_feed/curve_price_feed/model.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ func (adapter *CurvePriceFeed) ProcessResult(blockNum int64, results []multicall
5555
value, err := core.GetAbi("YearnPriceFeed").Unpack("latestRoundData", multicallresult)
5656
log.CheckFatal(err)
5757
price := *abi.ConvertType(value[1], new(*big.Int)).(**big.Int)
58-
log.Info(price)
5958
return &schemas.PriceFeed{
6059
RoundId: 0,
6160
PriceBI: (*core.BigInt)(price),

models/aggregated_block_feed/redstone_price_feed/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ func GetRedStoneResult(data []byte, block int64, rpc string) []byte {
3030
// Execute the command and capture its standard output.
3131
output, err := cmd.Output()
3232
if err != nil {
33+
log.Info(strings.Join(cmdstr, " "))
3334
log.Fatalf("Error executing command: %v", err)
3435
}
3536

@@ -49,7 +50,6 @@ func GetRedStoneResult(data []byte, block int64, rpc string) []byte {
4950
// Extract hex string from the last line (remove "0x" prefix if present)
5051
spls := strings.Split(strings.TrimSpace(lastLine), "0x")
5152
// Convert hex string to bytes
52-
log.Info(spls[1])
5353
bytes, err := hex.DecodeString(spls[1])
5454
if err != nil {
5555
log.Errorf("Error decoding hex string: %v", err)

repository/handlers/treasury/price.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (repo TreasuryRepo) GetRedStonemgr() redstone.RedStoneMgrI {
112112
func (repo TreasuryRepo) GetRedStonePrice(blockNum int64, oracle schemas.PriceOracleT, token string) *big.Int {
113113
if adapter := repo.IsRedStoneAdapter(blockNum, oracle, token); adapter != nil {
114114
call, isQueryable := adapter.GetCalls(blockNum)
115-
log.Info(adapter.GetPFType(), isQueryable)
115+
// log.Info(adapter.GetPFType(), isQueryable)
116116
if !isQueryable {
117117
return nil
118118
}

0 commit comments

Comments
 (0)