The First Modular AI Chain
Go to file
Ruaridh 6f193c7f2a
Refactor incentive accumulators to be the same (#970)
* add test for validate multi reward periods

* tidy up: combine files

* don't accumulate global indexes containing zeros
Previously if the time since last block was 0,
indexes were added containing 0s.
Now leave them out. Missing is assumed to be 0.

* move state independent test to types folder

* clarify reward source concept to "source shares"
- rename variables and update doc comments
- extract method from swap accumulation

* tidy up and expand swap accumulation unit tests

* rename swap test file to match others

* update swap pool id format in tests

* refactor borrow accumulation, use new accumulator

* refactor supply accumulation, use new accumulator

* refactor delegator accumulation, use accumulator

* refactor usdx accumulation, use new accumulator

* fix types const

* remove unsed methods

* more usdx minting param validation.
Protect against the rewards per second denom changing.
It should always be "ukava".

* add safety check in InitGenesis
It prevents huge accumulations on the first block by limiting all
previous accumulation times to be within one year of genesis

* add todo for adding swp token distirbution info
2021-07-22 13:53:18 +01:00
.circleci remove broken link check (#932) 2021-06-17 11:00:02 -06:00
.github/.workflows update workflow 2020-04-30 11:03:49 -04:00
app feat: backport swap sims for deposit, withdraw (#965) 2021-07-15 10:35:24 -05: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 build(deps): bump color-string from 1.5.3 to 1.5.5 in /docs (#957) 2021-07-13 13:48:07 +01:00
migrate Swap Genesis State (#960) 2021-07-15 09:42:30 -05: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 Swap module scaffolding and params (#922) 2021-06-08 08:19:12 -07:00
x Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
.dockerignore update dockerfile file for speed (#614) 2020-09-01 11:35:37 -04:00
.gitignore Updated documentation to reflect current version (#901) 2021-05-03 09:44:33 -06:00
CHANGELOG.md update changelog (#856) 2021-02-28 22:05:30 -07: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 Token holder governance (#917) 2021-06-07 18:08:03 +02: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 Updated documentation to reflect current version (#901) 2021-05-03 09:44:33 -06: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

The current recommended version of the software for mainnet is v0.14.1. 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.14.1
make install

Upgrade

The scheduled mainnet upgrade to kava-7 took place on April 8th, 2021 at 15:00 UTC. The current version of Kava for kava-7 is v0.14.1.

The canonical genesis file can be found here

The canonical genesis file hash is

jq -S -c -M '' genesis.json | shasum -a 256
9dbff5a0fb1a7aa20247f73e974bfd4a11090252768869ef8ccb23a515a01c51  -

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.