0g-chain/x/harvest/keeper
Denali Marsh 49d62dd076
Harvest: interest rate logic (#720)
* initial feature scaffolding

* implement interest keeper logic

* basic AccrueInterest

* accrue interest on borrow

* update borrow index formula

* update sample reserve factor

* move AccrueInterest to begin blocker

* refactor interest rate updates for accrue interest

* use interest rate model from store

* refactor begin blocker state machine

* add reserve factor to interest model params

* update comment

* store money market instead of interest rate models

* update test suite

* use BorrowedCoins store key

* update public functions and alias

* unit tests, keeper test scaffolding

* demo panic

* address revisions

* add 'normal no jump' test case

* spy = 1 + borrow rate

* update comment

* APYToSPY unit test

* per user borrow index list

* interest keeper test

* test: interest applied on successive borrows

* varied snapshot times

* test: multiple, varied snapshots

* address revisions

* add pending interest before validating new borrow

* update makefile

* address revisions

* fix test
2020-12-03 22:50:35 +01:00
..
borrow_test.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
borrow.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
claim_test.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
claim.go Harvest: refactor deposit type to claim type (#716) 2020-11-12 17:43:28 +01:00
deposit_test.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
deposit.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
interest_test.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
interest.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
keeper_test.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
keeper.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
params.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
querier.go Harvest: refactor deposit type to claim type (#716) 2020-11-12 17:43:28 +01:00
rewards_test.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
rewards.go Harvest: refactor deposit type to claim type (#716) 2020-11-12 17:43:28 +01:00
timelock_test.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
timelock.go rename hvt (#661) 2020-09-25 11:07:20 -04:00