$0 USD

MARCH 2021

GLOBAL

KAVA LABS

DESCRIPTION OF EVENTS

"Kava Labs was founded in 2017 and based in San Francisco, California." "Kava Labs, Inc., the parent company behind Kava, was co-founded by Brian Kerr, Ruaridh O'Donnell and Scott Stuart."

 

"Kava is the most trusted DeFi platform by financial institutions. Securely access a robust suite of DeFi products and services in one safe and seamless integration."

 

"Kava brings together everything that's required to do frictionless decentralized finance. Many companies have already integrated with Kava's DeFi platform to allow their users to lend, invest, and earn with crypto." "Securely access a robust suite of decentralized financial services in one safe and seamless integration."

 

"Built on the Cosmos blockchain, Kava makes use of a collateralized debt position (CDP) system to ensure stablecoin loans are always sufficiently collateralized. If a borrower fails to maintain their collateral above a required threshold, the Kava liquidator module will seize collateral from failing CDPs and send it to the auction module for sale."

 

"In addition to Kava's USDX stablecoin, the Kava blockchain also includes the native KAVA token. This is a utility token used for voting on governance proposals and also functions as a reserve currency for when the system is undercollateralized."

 

"The Kava 5 launch was rolled back after a bug was discovered by the Kava core developer team shortly after launch." "Events took place from March 5th — March 6th, 2021." "Kava-5 chain launche[d] when a 2/3 majority of staking power [came] online." "While conducting QA tests on the newly launched chain, Kava engineers observe[d] unexpected values in some users HARD claim objects." "After reviewing available options, and confirming all user funds are safe, the decision is made to use the safety committee to shutdown the chain."

 

"As part of the developer team’s internal audit of HARD protocol, this PR was introduced to fix a bug in the accounting logic of HARD protocol liquidations. During the code review, it was pointed out that safe subtraction should be used to avoid negative coin amounts, which cause a panic in the cosmos-sdk sdk.Coins object."

 

"Quite obviously, this subtraction of coin sets results in the disjoint elements of borrowedCoins being completely dropped from the calculation. This miscalculation of total borrowed and supplied coins then had the downstream effect of producing inaccurate reward calculations for HARD Protocol claim objects which was caught immediately after Kava 5 launch."

 

"Because Kava has a unique liquidity incentive architecture, it’s worth breaking down what exactly a “HARD claim” is and what it represents. In HARD protocol, users earn claims on HARD tokens proportional to the amount of liquidity they provide. The claim object represents the balance of HARD tokens the user would be entitled to if they claimed with the longest vesting period (1 year). At any time, a user can claim their HARD token balance using a MsgClaimReward transaction. When claiming, the user declares how long the HARD tokens will be vesting, either 1 month or 1 year, and the tokens are transferred from the hard module account to the user’s vesting account. Because all Hard claims are vesting, users cannot immediately transfer tokens from MsgClaimRewards ."

 

"No inflationary HARD tokens were created or could have been created as a result of the bug. Users were accumulating anomalously claims on the hard module account balance. Because the hard module account balance is fixed, it would have been impossible to pay these claims out."

 

"Users who did successfully claimed anomalous HARD token balances could not have spent them. By design, time-locked rewards prevent scenarios where a bug in reward calculations can immediately be withdrawn."

 

"The safety committee worked as intended. The goal of the safety committee is to give Kava an ‘escape hatch’ for high severity and/or actively exploited bugs that potentially put user funds or the security of the chain at risk. Pretty much the only time this is useful is right after upgrades, or immediately after an exploit is observed. Most importantly, while it provides a method to pause the chain, it does not provide a method to it to bring it back online — that is up to the validators and done in coordination with all Kava governance participants. Kava Labs and the greater Kava governance will always be transparent in its decision making process, and are always open to feedback about how to be better stewards of the platform."

 

"All addresses that attempted (successfully or unsuccessfully) to claim HARD rewards on kava-5 will be distributed a 250 HARD bug bounty."

 

We will "budget [additional] time for reviewing audit fixes which [come] up going forward, both by budgeting more time upfront, but also by incorporating an audit completion check into the process where we decide if the allotted time was insufficient and should be extended." "Going forward, we will have a ‘rollback’ playbook for each launch that we will communicate so that launch members have a routine to follow in the case of launch rollbacks."

 

"While this launch was ultimately unsuccessful, there are many improvements to the product development and release cycle that we have made that I am extremely proud of and extremely excited to keep improving."

Kava Labs is a set of multiple DeFi protocols that work together. The protocol launched an update (Kava 5) which had an error. A fixed version of the protocol was relaunched within 24 hours and no funds were lost.

Sources And Further Reading

 For questions or enquiries, email info@quadrigainitiative.com.

Get Social

  • email
  • reddit
  • telegram
  • Twitter

© 2021 Quadriga Initiative. Your use of this site/service accepts the Terms of Use and Privacy Policy. This site is not associated with Ernst & Young, Miller Thompson, or the Official Committee of Affected Users. Hosted in Canada by HosterBox.