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
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Many issues of the code4rena engagement address "donation" attacks.
There may be more ways the v1 is vulnerable to this so it is worthwhile to develop account balance hub pattern that would only acknowledge "legitimate" balances and even sweep donated balances.
The base of the pattern would actually be quite simple:
"account balance hub" mapping token -> balance
use this mapping as "source of truth" for account balances for actions in the platform
update that mapping with every legitimate increase in balance
swept donations may go to or other account where it makes sense.
The text was updated successfully, but these errors were encountered:
Many issues of the code4rena engagement address "donation" attacks.
There may be more ways the v1 is vulnerable to this so it is worthwhile to develop account balance hub pattern that would only acknowledge "legitimate" balances and even sweep donated balances.
The base of the pattern would actually be quite simple:
The text was updated successfully, but these errors were encountered: