The First Modular AI Chain
Go to file
sesheffield 7f339d20ca
fix(insolvency) kava lend insolvency check bug implementation (#1982)
* add additional tests that attempt to borrow funds from the insolvent market(should fail), and attempt to borrow funds from the not insolvent market (it will fail, but shouldn't). The not insolvent market should continue to processs borrows

* remove unused code

* make tests less specific for string contains

* add new get total reserves for denoms functionality

* start utilizing GetTotalReservesForDenoms in ValidateBorrow

* update tests for Borrow to not fail when borrowing from an insolvent market

* use get total reseves in GetTotalReservesForDenoms for reusability

* refactor GetTotalReservesForDenoms to GetTotalReservesByCoinDenoms for more clarity

* change the structure for new and old tests and add more verbosity for other tests

* remove print

* remove unneeded code

* add paren

* adjust structure again after initial PR

* remove duplicate test case with invalid test name, and update to use error contains in places where it was validating if true for strings contains

* no need for keeper method
2024-07-30 13:08:48 -04:00
.github Replace opendb package from kava with generic opendb repo (#1959) 2024-07-11 09:23:31 -04:00
app Replace opendb package from kava with generic opendb repo (#1959) 2024-07-11 09:23:31 -04:00
build Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
ci/env bump deploy version for internal-testnet (#1952) 2024-06-24 11:33:37 -06:00
cli_test Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
client feat(x/precisebank): Add query service with TotalFractionalBalances (#1970) 2024-07-19 10:24:23 -07:00
cmd/kava Replace opendb package from kava with generic opendb repo (#1959) 2024-07-11 09:23:31 -04:00
contracts chore(deps-dev): bump follow-redirects in /contracts (#1850) 2024-04-08 16:59:09 -07:00
contrib chore: fix some typos (#1913) 2024-05-16 13:27:48 -07:00
docs feat: Add gRPC query for remainder and account fractional balance (#1971) 2024-07-25 13:36:36 -07:00
migrate formatting fixes (#1783) 2023-11-21 14:08:07 -05:00
networks/local Use OS specific build directories (#600) 2020-06-24 14:21:01 -04:00
proto feat: Add gRPC query for remainder and account fractional balance (#1971) 2024-07-25 13:36:36 -07:00
tests Replace opendb package from kava with generic opendb repo (#1959) 2024-07-11 09:23:31 -04:00
third_party/proto Replace opendb package from kava with generic opendb repo (#1959) 2024-07-11 09:23:31 -04:00
x fix(insolvency) kava lend insolvency check bug implementation (#1982) 2024-07-30 13:08:48 -04:00
.dockerignore ci: update CI workflows and pipelines (#1768) 2023-11-08 14:06:03 -08:00
.gitignore test(e2e): add tests for cosmos coin conversion (#1612) 2023-06-05 13:22:23 -07:00
.gitmodules Add IBC chain to E2E test suite (#1486) 2023-03-07 14:37:45 -08:00
.mockery.yaml feat(x/precisebank): Implement GetBalance (#1916) 2024-05-21 14:11:13 -07:00
.tool-versions test: add packet-forwarding middleware e2e test (#1883) 2024-04-19 12:35:13 -07:00
buf.work.yaml Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
CHANGELOG.md feat(cli): add iavlviewer command (#1922) 2024-05-28 11:00:28 -07:00
docker-compose.yml Fix fail local testnet docker-compose up 2021-11-04 12:06:11 +09:00
Dockerfile Bump cosmos-sdk to v0.47.10-kava.2 with iavl v1 support (#1846) 2024-03-22 09:40:18 -04:00
Dockerfile-rocksdb ci: extract separate rocksdb base image (#1898) 2024-05-02 10:36:49 -07:00
Dockerfile-rocksdb-base ci: extract separate rocksdb base image (#1898) 2024-05-02 10:36:49 -07:00
go.mod Upgrade opendb (#1972) 2024-07-19 15:44:34 -04:00
go.sum Upgrade opendb (#1972) 2024-07-19 15:44:34 -04:00
golangci.yml address comments from review 2020-04-30 17:10:53 -04:00
hard.svg add token logos (#1185) 2022-03-10 13:24:21 -07: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 Replace opendb package from kava with generic opendb repo (#1959) 2024-07-11 09:23:31 -04:00
prometheus.docker-compose.yml feat(x/cdp): update begin bloocker to run liquidations every X blocks based off params (#1818) 2024-02-02 13:21:11 -05:00
prometheus.yml feat(x/cdp): update begin bloocker to run liquidations every X blocks based off params (#1818) 2024-02-02 13:21:11 -05:00
README.md chore(docs): update security contact (#1921) 2024-05-24 09:38:36 -07:00
swp.svg add token logos (#1185) 2022-03-10 13:24:21 -07:00

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

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

Installation and Setup

For detailed instructions see the Kava docs.

git checkout v0.26.0
make install

End-to-end tests of Kava use a tool for generating networks with different configurations: kvtool. This is included as a git submodule at tests/e2e/kvtool. When first cloning the repository, if you intend to run the e2e integration tests, you must also clone the submodules:

git clone --recurse-submodules https://github.com/Kava-Labs/kava.git

Or, if you have already cloned the repo: git submodule update --init

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.

Security

If you find a security issue, please report it to security [at] kavalabs.io. Depending on the verification and severity, a bug bounty may be available.

License

Copyright © Kava Labs, Inc. All rights reserved.

Licensed under the Apache v2 License.