-
Couldn't load subscription status.
- Fork 185
feat(tests): Add Mainnet "big-state" related tests (XEN-related attack scenarios) #2101
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
base: main
Are you sure you want to change the base?
Conversation
3cf20b7 to
48039af
Compare
ea1822f to
6a45a43
Compare
8acd12b to
965908d
Compare
increase usdt spam in claimrank
39461f6 to
09125a6
Compare
|
Hey, just an FYI. We are about to finalize "The Weld" - moving EEST to EELS. It's best to keep this PR up here in EEST for now. We will then ask you to reopen the PR but in EELS somepoint next week. Hope that okay! More context: https://steel.ethereum.foundation/blog/blog_posts/2025-09-11_weld-announcement/ |
|
Hey! If you want to open this PR in EELS we are ready when you are. Thanks |

🗒️ Description
This PR adds tests to test the very big in state XEN contract in various situations. To actually test this, ensure that your state backend reflects the big mainnet size, i.e. run this on top of a mainnet fork. This test uses address stubs as described in #2073
For this test, you need to provide:
--address-stubs '{"XEN_CONTRACT": "0x06450dEe7FD2Fb8E39061434BAbCFC05599a6Fb8", "MATH_CONTRACT": "0x4bBA9B6B49f3dFA6615f079E9d66B0AA68B04A4d"}'to use the mainnet contracts for this.The initial test
claimRank(1)and thenclaimMintReward(). This is the first draft of this test, and we will expand this with more situations, such asclaimRank(1)and thenclaimMintReward()plusclaimRank(1)again, or variants withclaimMintRewardAndShare(uint256,uint256)orclaimMintRewardAndStake(uint256,uint256).NOTE: the test sets the timestamp automatically by moving it forward
3600*24seconds.Will be merge ready once this is tested so we know if this works and if test cases are added.
TODOs:
🔗 Related Issues or PRs
N/A.
✅ Checklist
toxchecks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:uvx --with=tox-uv tox -e lint,typecheck,spellcheck,markdownlinttype(scope):.mkdocs servelocally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.@ported_frommarker.