Skip to content

Commit

Permalink
reverse deca bps conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
0xodia committed Jul 24, 2023
1 parent e82d4db commit e1f44b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solend-sdk/src/state/reserve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ function decodeReserve(buffer: Buffer): Reserve {
depositLimit: reserve.depositLimit,
borrowLimit: reserve.borrowLimit,
feeReceiver: reserve.feeReceiver,
// value is stored on-chain as deca-bp (10 deca bp = 1bps)
protocolLiquidationFee: reserve.protocolLiquidationFee * 10,
// value is stored on-chain as deca bps (1 deca bp = 10 bps)
protocolLiquidationFee: reserve.protocolLiquidationFee / 10,
protocolTakeRate: reserve.protocolTakeRate,
addedBorrowWeightBPS: reserve.addedBorrowWeightBPS,
borrowWeight: new BigNumber(reserve.addedBorrowWeightBPS.toString())
Expand Down

0 comments on commit e1f44b3

Please sign in to comment.