feat(puddleswap): add StakingRewards descriptor on Monad testnet (chainId 10143) - #3003
Open
portdeveloper wants to merge 4 commits into
Open
portdeveloper wants to merge 4 commits into
portdeveloper wants to merge 4 commits into
Conversation
…inId 10143) Stake, withdraw, claim and exit for the USDC/WMON LP staking pool at 0xe23B3825F950637256e8DE1BF39743E8f29D97F1 (source verified on Sourcify, full match). Amounts are denominated in the LP token, which is the contract's immutable stakingToken (constructor argument recorded in the deploy broadcast and readable via stakingToken()). Operator and role management functions are intentionally not described.
Contributor
Clear Signing TestsTested
✅ pass · ❌ fail · |
Per the registry's clear signing recommendations on ethereum#3003. Sentences embed the rendered amount where there is one; the test file carries the expected sentences.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an ERC-7730 calldata descriptor for PuddleSwap's
StakingRewardscontract on Monad testnet (chain 10143), with a v2 test file covering every described function.Contract:
0xe23B3825F950637256e8DE1BF39743E8f29D97F1, source verified on Sourcify (full match). PuddleSwap is a Uniswap V2 fork on Monad testnet; this contract is the USDC/WMON LP staking pool.Described functions (user flows):
stake(uint256),withdraw(uint256),getReward(),exit(). Amounts are denominated in the LP token0x1FBC7b6B54726D735fF1B47Df75535B4B9021902, which is the contract's immutablestakingToken(constructor argument in the deploy broadcast; readable viastakingToken()).Intentionally not described:
notifyRewardAmount,setRewardsDuration,recoverERC20,grantRole,revokeRole,renounceRole— operator and role-management functions, not user-signed flows. These account for the linter's "missing display format" warnings.Checks run locally before opening:
erc7730 formatanderc7730 lint(1.0.10; the linter fetched the reference ABI from Sourcify and validated the field paths), both JSON schemas, index build, and the four test cases through the Sourcify (@ethereum-sourcify/clear-signing@0.2.2) and Rust (llbartekll/clear-signing@0.1.0) implementations at the revisions this repository's CI pins — all cases pass.Submitted by the PuddleSwap author. The descriptor and test file were produced with clear-signing-helper; intents and the token denomination were chosen by hand and are recorded with their sources in the tool's provenance output.