You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it can be seen from above audit results, funds can be locked in the contract due slashed or kicked validators, validator versions and validator config. To deal with frozen funds in any unexpected situation, we need to update the withdraw_funds to withdraw the whole contract balance.
Implementation
Add following parameters to the execute_withdraw_fund function.
denom: Option
recipient: Option
If denom is None, contract's all balance will be gained using AllBalanceResponse and withdraw all balances.
If recipient is None, info.sender will be used as the withdraw address
Acceptance Criteria
withdraw_funds that returns the contract's balance
unit tests
integration test
The text was updated successfully, but these errors were encountered:
Description
Funds can be locked at the contract due to various reasons.
Possible cases are
cosmos-sdk
version on targeted chains sherlock-audit/2024-05-andromeda-ado-judging#53As it can be seen from above audit results, funds can be locked in the contract due slashed or kicked validators, validator versions and validator config. To deal with frozen funds in any unexpected situation, we need to update the
withdraw_funds
to withdraw the whole contract balance.Implementation
Add following parameters to the
execute_withdraw_fund
function.If
denom
isNone
, contract's all balance will be gained usingAllBalanceResponse
and withdraw all balances.If
recipient
is None,info.sender
will be used as the withdraw addressAcceptance Criteria
withdraw_funds
that returns the contract's balanceThe text was updated successfully, but these errors were encountered: