0g-chain/x/harvest
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
..
client Harvest: refactor deposit type to claim type (#716) 2020-11-12 17:43:28 +01:00
keeper Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
legacy/v0_12 Harvest: refactor deposit type to claim type (#716) 2020-11-12 17:43:28 +01:00
simulation Harvest: refactor deposit type to claim type (#716) 2020-11-12 17:43:28 +01:00
spec Harvest: refactor deposit type to claim type (#716) 2020-11-12 17:43:28 +01:00
types Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
abci.go Harvest: interest rate model params (#719) 2020-11-13 16:51:52 +01:00
alias.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
genesis.go rename hvt (#661) 2020-09-25 11:07:20 -04:00
handler.go Harvest: refactor deposit type to claim type (#716) 2020-11-12 17:43:28 +01:00
module.go Harvest basic borrow functionality (#702) 2020-10-30 10:59:47 +01:00