liquid-sdk 1.7.4 → 1.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/skills/bid-in-auction.md +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `liquid-sdk` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.7.5] - 2026-06-09
|
|
6
|
+
|
|
7
|
+
### Security
|
|
8
|
+
- `bidInAuction` now approves WETH to `SniperUtilV2` for **exactly `amountIn`** (previously `amountIn * 10n`). Each bid's `transferFrom` consumes the full allowance, so **no standing WETH allowance survives** — removing the "drain via standing approval" surface that hit a sibling Clanker fork in 2026-05. Complements the protocol-level `paymentPerGasUnit == 0` mitigation already live on the auction contract. (#18)
|
|
9
|
+
- **Action for existing users:** if you bid through an older SDK that approved a multiplier, **revoke your residual WETH allowance to `SniperUtilV2` (`0x2B6cd5Be183c388Dd0074d53c52317df1414cd9f`)**.
|
|
10
|
+
- **Trade-off:** prior versions pre-approved 10× so 9 subsequent bids skipped the approve. Bots relying on that should either `WETH.approve(SNIPER_UTIL_V2, amountIn)` ahead of the auction window or start `bidInAuction` ~1 block earlier so the approve confirms in time.
|
|
11
|
+
|
|
5
12
|
## [1.7.4] - 2026-04-23
|
|
6
13
|
|
|
7
14
|
### Added
|
package/dist/index.js
CHANGED
|
@@ -1867,7 +1867,7 @@ var LiquidSDK = class {
|
|
|
1867
1867
|
address: weth,
|
|
1868
1868
|
abi: ERC20Abi,
|
|
1869
1869
|
functionName: "approve",
|
|
1870
|
-
args: [ADDRESSES.SNIPER_UTIL_V2, params.amountIn
|
|
1870
|
+
args: [ADDRESSES.SNIPER_UTIL_V2, params.amountIn],
|
|
1871
1871
|
chain: import_chains2.base,
|
|
1872
1872
|
account
|
|
1873
1873
|
});
|