The First Modular AI Chain
Go to file
Denali Marsh 83a5f51c11
Hard: automatic liquidation by LTV index (#743)
* hotfix

* update params, keys

* liquidation by keeper

* refactor GetPendingBorrowBalance

* fix app build

* elegant handling of denom arrays

* auction deposit in lots

* add error msg

* update tests with new params

* happy path liquidation test

* update liquidator macc name

* refactor reward % to money market params

* refactor tests for updated params

* compile: harvest liquidator module account

* add liquidate msg

* liquidation approach

* update liquidations

* return remaining deposit coins to original borrowr

* check keeper reward before sending

* introduce ValuationMap

* convert Ints <> Decs

* implement double-loop

* ModuleAccountName

* sort keys for deterministic auctions

* test: correct auctions created

* test: preset keeper coins

* ensure deterministic iteration

* test cases

* update repay test

* auction fixes, tests

* LTV index

* user actions sync interest and update ltv index

* tests: all deposits must have money markets

* reorder borrow logic

* ltv index liquidation logic

* test specific items in ltv index

* index liquidation tests

* update repay to spendable coins

* revisions

* remove address sort method

* merge master test package
2020-12-18 02:12:48 +01:00
.circleci Automate docker build and upload (#703) 2020-10-30 18:38:30 +01:00
.github/.workflows update workflow 2020-04-30 11:03:49 -04:00
app Hard: liquidation by keeper (#731) 2020-12-15 18:38:14 +01:00
cli_test Update to sdk v0.39.x (#625) 2020-09-16 15:16:14 -04:00
cmd merge release v0.12.1 updates (#724) 2020-12-02 10:37:11 -07:00
contrib fix: use correct committee params (#640) 2020-08-30 10:47:07 -04:00
docs update binance/staking -> binance/earn (#688) 2020-10-13 10:51:58 -04:00
migrate Harvest basic borrow functionality (#702) 2020-10-30 10:59:47 +01:00
networks/local Use OS specific build directories (#600) 2020-06-24 14:21:01 -04:00
rest_test Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
simulations Simulation fixes (#527) 2020-09-01 11:33:12 -04:00
swagger-ui swagger: fix bep3 supply query typo (#694) 2020-10-16 12:27:47 -04:00
x Hard: automatic liquidation by LTV index (#743) 2020-12-18 02:12:48 +01:00
.dockerignore update dockerfile file for speed (#614) 2020-09-01 11:35:37 -04:00
.gitignore Added config for docs (#530) 2020-05-28 18:11:30 -04:00
CHANGELOG.md Update to sdk v0.39.x (#625) 2020-09-16 15:16:14 -04:00
docker-compose.yml Use OS specific build directories (#600) 2020-06-24 14:21:01 -04:00
Dockerfile update dockerfile file for speed (#614) 2020-09-01 11:35:37 -04:00
go.mod merge release v0.12.1 updates (#724) 2020-12-02 10:37:11 -07:00
go.sum merge release v0.12.1 updates (#724) 2020-12-02 10:37:11 -07:00
golangci.yml address comments from review 2020-04-30 17:10:53 -04:00
kava-logo.svg Update README to new logo (#410) 2020-03-31 11:20:31 -04:00
LICENSE.md [R4R] Basic docs tidying (#534) 2020-05-29 15:53:57 -07:00
Makefile Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
README.md Update README.md 2020-12-07 17:53:52 -07:00

DeFi for Crypto.

version CircleCI Go Report Card API Reference GitHub Twitter Follow Discord Chat

Reference implementation of Kava, a blockchain for cross-chain DeFi. Built using the cosmos-sdk.

Mainnet

Note, the current recommended version of the software for mainnet is v0.11.0. The master branch of this repository often contains considerable development work since the last mainnet release and is not runnable on mainnet.

Installation

git checkout v0.12.1
make install

Upgrade

The scheduled mainnet upgrade to kava-4 took place on October 15th, 2020 at 14:00 UTC. The current version of Kava for kava-4 is v0.12.1.

The canonical genesis file can be found here

The canonical genesis file hash is

jq -S -c -M '' genesis.json | shasum -a 256
# 760cd37ab07d136e5cbb8795244683f0725f63f5c69ccf61626fe735f1ed9793

Testnet

For further information on joining the testnet, head over to the testnet repo.

Docs

Kava protocol and client documentation can be found in the Kava docs.

If you have technical questions or concerns, ask a developer or community member in the Kava discord.

License

Copyright © Kava Labs, Inc. All rights reserved.

Licensed under the Apache v2 License.