Update uniswap v2 lockstake clipper callee#45
Merged
SidestreamColdMelon merged 14 commits intomasterfrom Dec 1, 2025
Merged
Conversation
…takeCalleeOldV1 tests
|
TLDR: Good to deploy!
$ forge test --skip UniswapV3 Oasis PSM Curve UniswapV2Lp UniswapV2Callee OneInch Simulation --match-contract=UniswapV2LockstakeCallee
[⠊] Compiling...
No files changed, compilation skipped
Ran 8 tests for src/test/UniswapV2LockstakeCallee.t.sol:UniswapV2LockstakeCalleeTest
[PASS] testCalleeTake_NoDelegate_NoStaking_SkyDai() (gas: 3447469)
[PASS] testCalleeTake_NoDelegate_NoStaking_SkyUsds() (gas: 3435353)
[PASS] testCalleeTake_NoDelegate_WithStaking_SkyDai() (gas: 3487142)
[PASS] testCalleeTake_NoDelegate_WithStaking_SkyUsds() (gas: 3475002)
[PASS] testCalleeTake_WithDelegate_NoStaking_SkyDai() (gas: 3483474)
[PASS] testCalleeTake_WithDelegate_NoStaking_SkyUsds() (gas: 3471379)
[PASS] testCalleeTake_WithDelegate_WithStaking_SkyDai() (gas: 3523062)
[PASS] testCalleeTake_WithDelegate_WithStaking_SkyUsds() (gas: 3510987)
Suite result: ok. 8 passed; 0 failed; 0 skipped; finished in 38.18s (22.44s CPU time)
Ran 1 test suite in 38.20s (38.18s CPU time): 8 tests passed, 0 failed, 0 skipped (8 total tests) |
|
Good to deploy! Uniswap V2 Lockstake Clipper Callee Review
forge test --skip UniswapV3 Oasis PSM Curve UniswapV2Lp UniswapV2Callee OneInch Simulation --match-contract=UniswapV2LockstakeCallee
[⠊] Compiling...
No files changed, compilation skipped
Ran 8 tests for src/test/UniswapV2LockstakeCallee.t.sol:UniswapV2LockstakeCalleeTest
[PASS] testCalleeTake_NoDelegate_NoStaking_SkyDai() (gas: 3447469)
[PASS] testCalleeTake_NoDelegate_NoStaking_SkyUsds() (gas: 3435353)
[PASS] testCalleeTake_NoDelegate_WithStaking_SkyDai() (gas: 3487142)
[PASS] testCalleeTake_NoDelegate_WithStaking_SkyUsds() (gas: 3475002)
[PASS] testCalleeTake_WithDelegate_NoStaking_SkyDai() (gas: 3483474)
[PASS] testCalleeTake_WithDelegate_NoStaking_SkyUsds() (gas: 3471379)
[PASS] testCalleeTake_WithDelegate_WithStaking_SkyDai() (gas: 3523062)
[PASS] testCalleeTake_WithDelegate_WithStaking_SkyUsds() (gas: 3510987)
Suite result: ok. 8 passed; 0 failed; 0 skipped; finished in 11.01s (19.93s CPU time)
Ran 1 test suite in 11.01s (11.01s CPU time): 8 tests passed, 0 failed, 0 skipped (8 total tests) |
DaeunYoon
approved these changes
Oct 8, 2025
Contributor
DaeunYoon
left a comment
There was a problem hiding this comment.
Deployed contract lgtm
Verify callee deployment
- Address: 0x4dc81719909f72cadb3a5c63891fe2b5421cf36f
- PR: #45
- ✅ Source code is verified on etherscan
- ✅ Compilation optimizations, solidity version match deployment settings defined in the source code repo
- ✅ GNU AGPLv3 license
- ✅ All constructors are checked
- uniRouter02_: 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D matches uniswap official document
- daiJoin_: 0x9759A6Ac90977b93B58547b4A71c78317f391A28 matches
MCD_JOIN_DAIon chainlog - usdsJoin_: 0x3C0f895007CA717Aa01c8693e59DF1e8C3777FEB matches
USDS_JOINon chainlog - sky_: 0x56072C95FAA701256059aa122697B133aDEd9279 matches
SKYon chainlog
- ✅ Contract doesn't have
access control - ✅ Source code matches corresponding github source code (e.g. diffcheck via vscode code --diff etherscan.sol github.sol)
- ✅ Contract was deployed by previously known address
SidestreamColdMelon
approved these changes
Dec 1, 2025
SidestreamColdMelon
left a comment
There was a problem hiding this comment.
- ✅ Source code matches the code approved above
- ✅ Compilation optimizations match config
- ✅ Constructors match expected values
uniRouter02_being0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D(as in the uniswap v2 docs)daiJoin_being0x9759A6Ac90977b93B58547b4A71c78317f391A28(MCD_JOIN_DAIfrom chainlog)usdsJoin_being0x3C0f895007CA717Aa01c8693e59DF1e8C3777FEB(USDS_JOINfrom chainlog)sky_being0x56072C95FAA701256059aa122697B133aDEd9279(SKYfrom chainlog)
- ✅ Licence is correct
- ✅
addresses.jsonis updated
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.
This PR adjusts the
UniswapV2LockstakeCalleecontract to support the updatedLockstakeEngine.MKRsupport was removed from the callee in favour of supporting SKY only.Notes:
CI is expected to fail due to the tests for other callees being fragile / depending on the market
forge test --skip UniswapV3 Oasis PSM Curve UniswapV2Lp UniswapV2Callee OneInch Simulation --match-contract=UniswapV2LockstakeCalleeCurrent version of the callee supports any UniV2 paths that start from SKY and end with DAI or USDS (in other words, SKY/USDS pool is supported, and potentially others).