Skip to content

Commit

Permalink
add comment for deca bp
Browse files Browse the repository at this point in the history
  • Loading branch information
0xodia committed Jul 24, 2023
1 parent 877eb14 commit 4cb568c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions solend-sdk/src/state/reserve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ 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,
protocolTakeRate: reserve.protocolTakeRate,
addedBorrowWeightBPS: reserve.addedBorrowWeightBPS,
Expand Down

0 comments on commit 4cb568c

Please sign in to comment.