Skip to content

Commit

Permalink
fix: convertToAssets takes bigInt
Browse files Browse the repository at this point in the history
  • Loading branch information
5lliot committed Nov 23, 2023
1 parent e34ebab commit 0ec5bbd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/Gearbox-protocol/third-eye
go 1.19

require (
github.com/Gearbox-protocol/sdk-go v0.0.0-20231109110714-1def05d75cca
github.com/Gearbox-protocol/sdk-go v0.0.0-20231109211429-be5a4f2bd63b
github.com/ethereum/go-ethereum v1.10.17
github.com/go-playground/validator/v10 v10.4.1
github.com/google/go-cmp v0.5.8
Expand Down Expand Up @@ -73,4 +73,4 @@ require (

replace github.com/btcsuite/btcd => github.com/btcsuite/btcd v0.22.1

replace github.com/Gearbox-protocol/sdk-go v0.0.0-20231109110714-1def05d75cca => ../sdk-go
// replace github.com/Gearbox-protocol/sdk-go v0.0.0-20231109110714-1def05d75cca => ../sdk-go
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
github.com/Gearbox-protocol/sdk-go v0.0.0-20231109104945-69fc333c86df h1:0suf0zPtGPlICATjEhn78HnfwDc2Rm198vT+MnkhYso=
github.com/Gearbox-protocol/sdk-go v0.0.0-20231109104945-69fc333c86df/go.mod h1:GniLx/DU7tCT+QSlKt9REqUaF748X8rbDNR4vAd1m+Y=
github.com/Gearbox-protocol/sdk-go v0.0.0-20231109110714-1def05d75cca h1:3N0GiO6DxrSIfS4iGrVvGcJmdOk5nLouZmqXQZ+S4wI=
github.com/Gearbox-protocol/sdk-go v0.0.0-20231109110714-1def05d75cca/go.mod h1:GniLx/DU7tCT+QSlKt9REqUaF748X8rbDNR4vAd1m+Y=
github.com/Gearbox-protocol/sdk-go v0.0.0-20231109211429-be5a4f2bd63b h1:G1K119DycLhdxBnZlJ7yCXuaaBY8fiWgl5IM9ZQSfFc=
github.com/Gearbox-protocol/sdk-go v0.0.0-20231109211429-be5a4f2bd63b/go.mod h1:GniLx/DU7tCT+QSlKt9REqUaF748X8rbDNR4vAd1m+Y=
github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc=
github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
Expand Down
2 changes: 1 addition & 1 deletion repository/handlers/treasury/calls.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func dieselCalls(poolForDieselRate []*schemas.UTokenAndPool) (calls []multicall.
var data []byte
// for 300
if pool.Version.MoreThanEq(core.NewVersion(300)) {
value, err := poolv3ABI.Pack("convertToAssets")
value, err := poolv3ABI.Pack("convertToAssets", core.RAY)
log.CheckFatal(err)
data = value
} else { // for v1, v2
Expand Down

0 comments on commit 0ec5bbd

Please sign in to comment.