Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contract limits #276

Merged

Conversation

loredanacirstea
Copy link
Contributor

@loredanacirstea loredanacirstea commented Sep 19, 2018

fixes #262

To be reviewed after #275

The combined deposit of one channel is limited to 0,15 ETH. So per person 0.075 ETH.
The total combined deposit of all channels across the whole network is limited to 250 ETH.
Only one token network will be used.

Removed tests and test contracts for the old contract limits.

// Bug bounty release deposit limit
uint256 public deposit_limit;
// Bug bounty release deposit limits
// The combined deposit of one channel is limited to 0,15 ETH.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: you are using a , for decimal separator here and a . in the line below. Choose one and stick to it.

@loredanacirstea loredanacirstea force-pushed the contract-limits branch 2 times, most recently from 6ec99bc to 3a5d9b7 Compare September 20, 2018 15:50
loredanacirstea added a commit to loredanacirstea/raiden-contracts that referenced this pull request Sep 20, 2018
Copy link
Contributor

@LefterisJP LefterisJP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The combined deposit of one channel is limited to 0,15 ETH. So per person 0.075 ETH.
The total combined deposit of all channels across the whole network is limited to 250 ETH.
There will be only one token network contract created.
loredanacirstea added a commit to loredanacirstea/raiden-contracts that referenced this pull request Sep 21, 2018
// This should never fail at this point. Added check for security, because we directly set
// the participant_state.deposit = total_deposit, while we transfer `added_deposit` tokens.
assert(participant_state.deposit + added_deposit == total_deposit);

// Bug Bounty release token network limit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bug bounty naming got reintroduced here through the rebase.

@loredanacirstea loredanacirstea merged commit aea3a7d into raiden-network:master Sep 21, 2018
@loredanacirstea loredanacirstea deleted the contract-limits branch September 21, 2018 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the global,per channel and token network contract limits for Red Eyes
2 participants