KyberNetwork / smart-contracts

Main smart contracts for Kyber Network, including the main platform contract, reserve contracts etc.
https://kyber.network
MIT License
378 stars 341 forks source link

Simplify withdrawal logics to allow staker withdraw #872

Closed manhlx3006 closed 4 years ago

manhlx3006 commented 4 years ago

Current with withdraw function has complex logics updating data in Staking and Dao contract We want to allow staker withdraws their stake even if something is wrong with DAO or updating data in Staking, only need to check if staker's latest stake >= withdrawal amount