Skip to content

Commit

Permalink
chore: update sdk-go
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh-98 committed Apr 11, 2024
1 parent b3a0d80 commit 4d1eccf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion debts/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func (eng *DebtEngine) CalculateSessionDebt(blockNum int64, session *schemas.Cre
// log.Info(debt.CalHealthFactor, sessionSnapshot.HealthFactor, blockNum)
// log.Info(debt.CalTotalValueBI, sessionSnapshot.TotalValueBI, blockNum)
if eng.hasRedStoneToken(sessionSnapshot.Balances) {
if IsChangeMoreThanFraction(debt.CalTotalValueBI, sessionSnapshot.TotalValueBI, big.NewFloat(0.003)) { // .3% allowed
if IsChangeMoreThanFraction(debt.CalTotalValueBI, sessionSnapshot.TotalValueBI, big.NewFloat(0.009)) { // .9% allowed // TODO:FIX
notMatched = true
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion 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.20

require (
github.com/Gearbox-protocol/sdk-go v0.0.0-20240411002518-34dc8a2b834f
github.com/Gearbox-protocol/sdk-go v0.0.0-20240411014451-665b8516bb4f
github.com/ethereum/go-ethereum v1.13.14
github.com/go-playground/validator/v10 v10.4.1
github.com/google/go-cmp v0.5.9
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ contrib.go.opencensus.io/exporter/ocagent v0.6.0/go.mod h1:zmKjrJcdo0aYcVS7bmEeS
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ=
github.com/Gearbox-protocol/sdk-go v0.0.0-20240411002518-34dc8a2b834f h1:YkLxsuzlEJ+JT0/9O/oa0sLRtOg/tsh6+43lKd06+Ss=
github.com/Gearbox-protocol/sdk-go v0.0.0-20240411002518-34dc8a2b834f/go.mod h1:GqBi61WLtfKxqYFle+ePGkWAOf5lKtgQBTOjGJwkgn0=
github.com/Gearbox-protocol/sdk-go v0.0.0-20240411014451-665b8516bb4f h1:mE3An6PxBqRGnm7aF1wH7xo2PzqL2vzu8ixYWhIo5a8=
github.com/Gearbox-protocol/sdk-go v0.0.0-20240411014451-665b8516bb4f/go.mod h1:GqBi61WLtfKxqYFle+ePGkWAOf5lKtgQBTOjGJwkgn0=
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/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
Expand Down

0 comments on commit 4d1eccf

Please sign in to comment.