This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
Releases: larry0x/steak
Releases · larry0x/steak
v2.0.0-rc0
Refactoring for Terra2 (phoenix-1)
v1.0.0
v1.0.0-rc3
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
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 inhub/src/math.rs
. Previously, theDelegation
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
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
andtypes::Undelegate
to simplify logics
v1.0.0-rc0
Release candidate