f7a73c9245
* update to borrow interest factor * add supply interest factor to accrue interest * supply interest factor keeper methods * fix potential bug with user borrow indexing * sync supply interest on deposit/withdraw * separate withdraw/deposit * relocate interest sync methods * update comment * simplify supply interest statement * check truncated int not zero * add .sub(storedAmount) back * add store key suppliedcoins * increment/decrement supplied coins * update withdraw with new accounting * update withdraw test * catch repay edge case * unit tests * TestSupplyInterest scaffolding * test notes * temp: interest test * example test * changes, test checks more state * fix: calculate supply interest directly * fix: catch divide by zero * add state checks back into interest test * add snapshot test cases * test owed supplied interest paid at correct ratio * test user supply syncs user's borrow interest * remove print statements and clean up * refactor indented logic * test supply/borrow multiple coins * update decoder test Co-authored-by: karzak <kjydavis3@gmail.com> |
||
---|---|---|
.circleci | ||
.github/.workflows | ||
app | ||
cli_test | ||
cmd | ||
contrib | ||
docs | ||
migrate | ||
networks/local | ||
rest_test | ||
simulations | ||
swagger-ui | ||
x | ||
.dockerignore | ||
.gitignore | ||
CHANGELOG.md | ||
docker-compose.yml | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
golangci.yml | ||
kava-logo.svg | ||
LICENSE.md | ||
Makefile | ||
README.md |
DeFi for Crypto.
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.