fix: bundled dust cleanup — onchain source quality (#1134)
- Fix misleading taxRate comment in AttackRunner.s.sol (index into TAX_RATES[], not raw rate) - Clarify _validatePriceMovement NatSpec return doc in PriceOracle.sol - Remove redundant double-cast uint256(uint256(...)) in OptimizerV3Push3Lib.sol - Add Basescan URL source comments for SWAP_ROUTER and WETH addresses Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1b3d0ddd78
commit
a76d3937dd
4 changed files with 8 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ interface IOptimizer {
|
|||
}
|
||||
|
||||
interface IStake {
|
||||
// taxRate matches the actual Stake.sol parameter name (a raw rate value, not a lookup index)
|
||||
// taxRate is an index into the Stake.sol TAX_RATES[] array, not a raw rate value
|
||||
function snatch(uint256 assets, address receiver, uint32 taxRate, uint256[] calldata positionsToSnatch) external returns (uint256 positionId);
|
||||
function exitPosition(uint256 positionId) external;
|
||||
}
|
||||
|
|
@ -150,7 +150,9 @@ contract AttackRunner is Script {
|
|||
// ─── Protocol constants (local Anvil deployment) ──────────────────────────
|
||||
|
||||
uint24 internal constant POOL_FEE = 10_000;
|
||||
// Base mainnet WETH — https://basescan.org/address/0x4200000000000000000000000000000000000006
|
||||
address internal constant WETH = 0x4200000000000000000000000000000000000006;
|
||||
// Base mainnet SwapRouter02 — https://basescan.org/address/0x2626664c2603336E57B271c5C0b26F421741e481
|
||||
address internal constant DEFAULT_SWAP_ROUTER = 0x2626664c2603336E57B271c5C0b26F421741e481;
|
||||
address internal constant DEFAULT_NPM_ADDR = 0x03a520B32c04bf3beef7BEb72E919cF822Ed34F3;
|
||||
address internal constant DEFAULT_V3_FACTORY = 0x33128a8fC17869897dcE68Ed026d694621f6FDfD; // Base mainnet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue