Denali Marsh
fa97a7db0e
refactor to MsgClaimHardReward ( #879 )
2021-03-15 12:03:15 -06:00
Robert O'Leary
da5df4637b
Add KavaScan explorer to docs ( #874 )
2021-03-15 09:29:39 -06:00
Denali Marsh
21cf7685df
don't sync borrow on deposit - it's redundant ( #876 )
2021-03-15 09:29:13 -06:00
Denali Marsh
72bfee6523
Minor best practices edits in Hard module ( #877 )
...
* put err return inside conditional
* check error type instead of error msg string
2021-03-15 09:15:19 -06:00
Ruaridh
20b3fa53e3
Prevent panic-causing param values ( #875 )
...
* prevent cdp liquidation ratio being 0.0
* fix linter warning
* prevent hard conversin factor being < 1
* add liquidation tests for different keeper rewards
2021-03-15 08:44:23 -06:00
Kevin Davis
2611d48b77
fix: return nil instead of empty byte slice ( #878 )
2021-03-15 08:41:36 -06:00
Denali Marsh
12f5a67d6d
CDP Querier: update AugmentedCDP's FeesUpdated and InterestFactor ( #860 )
...
* update CDP's FeesUpdated and InterestFactor
* remove newline
2021-03-10 21:40:43 -07:00
dependabot[bot]
5a571f1384
build(deps): bump prismjs from 1.21.0 to 1.23.0 in /docs ( #858 )
...
Bumps [prismjs](https://github.com/PrismJS/prism ) from 1.21.0 to 1.23.0.
- [Release notes](https://github.com/PrismJS/prism/releases )
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md )
- [Commits](https://github.com/PrismJS/prism/compare/v1.21.0...v1.23.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-10 21:40:11 -07:00
dependabot[bot]
5db9bf96a5
build(deps): bump pug-code-gen from 2.0.2 to 2.0.3 in /docs ( #861 )
...
Bumps [pug-code-gen](https://github.com/pugjs/pug ) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/pugjs/pug/releases )
- [Commits](https://github.com/pugjs/pug/compare/pug-code-gen@2.0.2...pug@2.0.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-10 21:39:47 -07:00
dependabot[bot]
4fa97a3dad
build(deps): bump elliptic from 6.5.3 to 6.5.4 in /docs ( #872 )
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-10 21:39:21 -07:00
Ruaridh
7779c8ee4d
Fix hard/committee begin blocker order ( #867 )
...
* switch hard and committee begin blocker order
* udpate money market deprecation steps
* move committee begin blocker in front of cdp
Co-authored-by: karzak <kjydavis3@gmail.com>
2021-03-10 21:38:42 -07:00
Denali Marsh
8744d3210c
Genesis import/export fixes ( #871 )
...
* panic on export if prev accrual time not set
* on export if interest factor not set, set to 1.0
* fix prev accrual time in cdp export
* panic on export if prev accrual time not set
* export hard reward denom accumulation times
* init genesis starts usdx reward indexes at 0.0
* update incentive migration
* update incentive tests
2021-03-10 21:32:35 -07:00
Ruaridh
509d2edbca
fix bug that skipped minimum borrow check ( #870 )
...
add tests for non-borrower repayer address
2021-03-10 21:13:21 -07:00
Kevin Davis
e21a04ca57
fix: set previous block time correctly on block one ( #868 )
...
* fix: set previous block time correctly on block one
* fix failing tests
2021-03-10 10:56:23 -07:00
Kevin Davis
829aed5256
fix: decrement coins for supply/borrow properly ( #862 )
...
* fix: decrement coins for supply/borrow properly
* fix: decrement keeper liquidation reward coins from hard total supply (#865 )
* fix: use proper safe subtraction for withdraw/repay methods
* fix: decrement keeper liquidation rewards from total supply
* address review comments
2021-03-10 10:56:08 -07:00
Ruaridh
162602f390
Test users cannot borrow from reserves ( #869 )
...
* add ValidateBorrow test
* remove accidentally duplicated test
2021-03-09 12:11:13 -07:00
Kevin Davis
d561529502
Update kava-4 export height
2021-03-04 07:22:41 -07:00
Kevin Davis
076b18d412
Clarify removing halt time when restarting node
2021-03-04 07:09:14 -07:00
Kevin Davis
17b874a433
Add kava-5 build and genesis hashes
2021-03-04 06:41:56 -07:00
Kevin Davis
56ac04d217
Update migrate.md
2021-03-02 10:26:58 -07:00
Kevin Davis
309dfe3e49
Update migrate.md
2021-03-01 18:38:16 -07:00
Kevin Davis
203d7e0063
Fix delegator rewards initialization ( #859 )
...
* fix: sync delegator rewards if they exist before creating new delegation
* remove comments
2021-03-01 18:36:40 -07:00
Kevin Davis
998454a4bc
update changelog ( #856 )
2021-02-28 22:05:30 -07:00
Kevin Davis
5ff0e4eea4
fix: ensure time elapsed is not negative ( #855 )
2021-02-28 10:33:56 -07:00
Kevin Davis
9d60358fcd
Fix: Add missing stability committee permissions ( #854 )
...
* fix: remove old harvest permissions from committee
* add new hard param keys to allowed committee params
* add all cdp collateral types to committee permissions
2021-02-28 10:33:44 -07:00
Kevin Davis
26e88c6177
fix: check correct time elpased condition ( #853 )
2021-02-24 11:25:40 -07:00
Denali Marsh
0e718d3510
Update Swagger for kava-5 ( #852 )
...
* hard: posts, gets, object definitions
* formatting
* incentive params
* incentive claims and rewards
* incentive fromatting
* update CDP
* format CDP
* fix typo in cdp liquidate route registration
2021-02-23 14:02:08 -07:00
Kevin Davis
5352c2489d
fix: set indexes to zero ( #835 )
2021-02-23 12:41:30 -07:00
Denali Marsh
8a878b0d66
add liquidate msg to cdp spec ( #850 )
2021-02-23 12:41:17 -07:00
Ruaridh
3d0a9bc2f4
connect Migrate func to cmd, remove unused flags ( #851 )
2021-02-23 12:40:31 -07:00
Kevin Davis
e4daffcaf8
fix: enforce max number of liquidations in cdp begin blocker ( #849 )
...
* fix: enforce max number of liquidations in cdp begin blocker
* address review comments
2021-02-23 12:39:39 -07:00
Kevin Davis
3a3dd7970d
Fix typo
2021-02-23 11:25:23 -07:00
Kevin Davis
209c15dde9
Add placeholder block height to migration guide
2021-02-23 09:17:50 -07:00
Kevin Davis
1249c315fe
Update migrate.md
2021-02-22 18:45:49 -07:00
Kevin Davis
43d327db03
Update migrate.md
2021-02-22 18:43:33 -07:00
Kevin Davis
915d86bf35
kd-document-migration ( #847 )
...
* feat: add bep-3 migration
* remove comments
* address review comments
* update min/max block locks
* set open swaps to expired and adjust asset supply
* fix: handle open swaps
* feat: add migration doc
* fix typos
2021-02-22 18:39:54 -07:00
Kevin Davis
667ad87825
[R4R] kava 5 migration ( #848 )
...
* wip: kava-5 migration
* feat: kava 5 migration
* fix: don't repeat genesis time
2021-02-22 18:28:07 -07:00
Kevin Davis
3bf40b97f9
feat: pricefeed migrations ( #846 )
2021-02-22 14:53:00 -07:00
Kevin Davis
4753504a68
Add bep3 migration ( #819 )
...
* feat: add bep-3 migration
* remove comments
* address review comments
* update min/max block locks
* set open swaps to expired and adjust asset supply
* fix: handle open swaps
2021-02-22 14:47:28 -07:00
Kevin Davis
aa3cf66707
add validator vesting migrations ( #845 )
2021-02-22 14:15:10 -07:00
Kevin Davis
0865e40553
[R4R] incentive, hard migrations ( #783 )
...
* update v0_11 harvest genesis state
* wip: hard migration
* wip: incentive migration
* wip: incentive migration
* update incentive migration for multi-rewards
* address review comments
* sort slices for deterministic ordering
* update interest rate model and reserves
* fix: use correct conversion factor
* fix: remove auction size param
* remove ununsed module accounts
* update incentive claim multiplier for one month rewards
* address hard migration review comments
* add hard test
* migrate harvest mod account (#844 )
* migrate harvest mod account
* update hard account permissions
* update hard module account permissions
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
2021-02-22 14:08:23 -07:00
Denali Marsh
99fb79a1ae
update spec, add money market deprecation steps ( #841 )
2021-02-22 13:52:17 -07:00
Denali Marsh
1499a89ce5
Query Hard module reserves ( #843 )
...
* implement CLI reserves query
* implement REST reserves query
2021-02-22 13:48:52 -07:00
Denali Marsh
fe43c2bc41
Hard Audit: don't convert directly from sdk.Int to uint64 ( #842 )
...
* refactor away from sdk.Int's .Uint64() method
* refactor cdp module interest calc
2021-02-20 09:42:57 -07:00
Kevin Davis
5cd94047a4
fix: set interest accumulation time and exit when borrows are zero ( #840 )
2021-02-19 16:33:55 -07:00
Kevin Davis
1ab2e9965f
Add committee migrations ( #818 )
...
* fix: collateral param permission
* wip: kava-5 committee updates
* feat: add committee migrations
* rename functions so git recognizes diffs better
* rename
* remove auction_size param
* address review comments
* add check ltv index count to collateral param perms
* fix: update legacy migration
* use function to define collateral param in test
* use go 1.15 in circle
* address review comments
* fix: no nil values for collateral params
2021-02-19 14:05:42 -07:00
Denali Marsh
421f774ec1
sort unique denom list ( #836 )
2021-02-19 14:05:17 -07:00
Denali Marsh
0b6e47ff46
call hooks in export genesis ( #837 )
2021-02-19 13:49:36 -07:00
Denali Marsh
0a51a737cb
fix time elapsed calculation + test ( #838 )
2021-02-19 13:24:00 -07:00
Denali Marsh
6c88c01eb8
validate against money markets in store ( #839 )
2021-02-19 13:23:19 -07:00