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
This issue keeps track of adding a deposit limit to the UserDeposit. Until some concrete number is decided (https://github.com/raiden-network/team/issues/333), we can set up an arbitrary number (something like 12345678 looks temporary.)
The text was updated successfully, but these errors were encountered:
I have to choose how to keep track of the total balance of UserDeposit.
Options
Token balance of the contract when token.balanceOf(address(this)) is too big, new deposits are declined.
A storage variable a new storage variable whole_balance will be increased and decreased in deposit() and withdraw functions. When whole_balance is too big, new deposits are declined.
Comparison
Token balance of the contract can be manipulated by an attacker. An attacker can always send some amount of tokens to the contract, and stop all deposits.
This issue keeps track of adding a deposit limit to the UserDeposit. Until some concrete number is decided (https://github.com/raiden-network/team/issues/333), we can set up an arbitrary number (something like 12345678 looks temporary.)
The text was updated successfully, but these errors were encountered: