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

add amount restrictions for mainnet and goerli ERC contracts #634

Merged
merged 3 commits into from
Apr 29, 2022

Conversation

Westlad
Copy link
Contributor

@Westlad Westlad commented Apr 29, 2022

This PR extends the test code that put restrictions on the amount that can be deposited or withdrawn.
image
It selects the contract addresses to put limits on via the environment variable ETH_NETWORK which is the same one used to select the truffle configuration for deployment, so it's transparent to the deployer. Value restrictions are created in the contract migration.

Test in the normal way, although obviously it's not possible to directly test mainnet and goerli values. However the symmetry between those and the ganache (ETH_NETWORK=blockchain1) case.

Copy link
Contributor

@druiz0992 druiz0992 left a comment

Choose a reason for hiding this comment

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

minor change request

@Westlad Westlad added the One more approval needed One reviewer has approved this PR but another is needed label Apr 29, 2022
@daveroga daveroga removed the One more approval needed One reviewer has approved this PR but another is needed label Apr 29, 2022
@Westlad Westlad merged commit e313139 into master Apr 29, 2022
@Westlad Westlad deleted the westlad/restrict-amounts branch April 29, 2022 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants