Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
5lliot committed Nov 23, 2023
1 parent 56537b4 commit feed750
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
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-20230906091105-c182238cd0fc => ../sdk-go
// replace github.com/Gearbox-protocol/sdk-go v0.0.0-20231005111423-28c6d972ddab => ../sdk-go
1 change: 1 addition & 0 deletions jsonnet/close_credit_account/blocks.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
sessionId: '#Account_1_3_3',
totalValue: 9500,
totalValueBI: '9500000000',
quotaFees: '0',
},
],
timestamp: 604800,
Expand Down
1 change: 1 addition & 0 deletions jsonnet/close_credit_account_v2/blocks.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
sessionId: '#Account_1_4_0',
totalValue: 9000,
totalValueBI: '9000000000',
quotaFees: '0',
},
],
timestamp: 691200,
Expand Down
1 change: 1 addition & 0 deletions jsonnet/liquidate_credit_account/blocks.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
sessionId: '#Account_1_3_3',
totalValue: 5750,
totalValueBI: '5750000000',
quotaFees: '0',
},
],
priceFeeds: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
sessionId: '#Account_1_4_0',
totalValue: 7000,
totalValueBI: '7000000000',
quotaFees: '0',
},
],
timestamp: 432000,
Expand Down
2 changes: 1 addition & 1 deletion models/credit_manager/cm_common/credit_session_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (mdl *CommonCMAdapter) closeSession(blockNum int64, session *schemas.Credit
// quota fees
css.QuotaFees = func() *core.BigInt {
if !data.Version.Eq(3) {
return (*core.BigInt)(new(big.Int))
return new(core.BigInt)
}
interestFees := new(big.Int).Quo(
new(big.Int).Mul(
Expand Down

0 comments on commit feed750

Please sign in to comment.