Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Releases: larry0x/steak

v2.0.0-rc0

03 Jun 23:57
6c0b1cf
Compare
Choose a tag to compare

Refactoring for Terra2 (phoenix-1)

v1.0.0

08 May 11:16
f5ae38d
Compare
Choose a tag to compare

Changes from v1.0.0-rc3

  • Removed legacy and migration code

v1.0.0-rc3

03 May 17:50
2abd7c4
Compare
Choose a tag to compare
v1.0.0-rc3 Pre-release
Pre-release

Bug fixes

  • Add a "reconciliation" mechanism based on Stader's implementation. When an unbonding batch finishes unbonding, the amount received by the Hub contract may be smaller than the initially unbonded amount. This can be due to either integer rounding issue, or the validator(s) being slashed during the unbonding period. Reconciliation means, once unbonding is finished, check the received amount and the expected amount, and reduce the expected amount if the actual amount is smaller. Before a batch is reconciled, it will be ignored during the withdraw_unbonded call.

v1.0.0-rc2

01 May 18:22
a89cde7
Compare
Choose a tag to compare
v1.0.0-rc2 Pre-release
Pre-release

Bug fixes

  • Fix a bug in register_received_coins where if there are multiple coin-receiving events, only the first one is parsed.

Improvements

  • Optimize the gas cost for staking and harvesting: Instead of delegating the deposited Luna evenly to all validators, now only delegate to the validator with the smallest amount of delegation from Steak Hub. Gas cost for mainnet (15 whitelisted validators) is reduced from ~$2 to $0.6.
  • To account for possible imbalance cause by the previous change, introduce a new execute command rebalance which performs a number of redelegations to achieve balance across validators.
  • Refactor types in hub/src/types.rs and helper functions in hub/src/math.rs. Previously, the Delegation type can mean either delegation, undelegation, or redelegation, which could be confusing. Also, compute_delegations is in fact used in the calculation of redelegations instead of delegations. In this update, Delegation are split into 3 types, {D,Und,Red}elegation, and helper functions are renamed to accurately reflect their roles in the contract.

v1.0.0-rc1

28 Apr 21:31
200cb33
Compare
Choose a tag to compare
v1.0.0-rc1 Pre-release
Pre-release

Changlog

  • Add an owner account to the Hub contract, and {Transfer,Accept}Ownership execute commands for transferring ownership
  • Add owner-only execute commands {Add,Remove}Validator to allow adjustments of the validator whitelist
  • Merge types::Delegate and types::Undelegate to simplify logics

v1.0.0-rc0

10 Apr 01:20
Compare
Choose a tag to compare
v1.0.0-rc0 Pre-release
Pre-release

Release candidate