Skip to content

Commit ed6f5a6

Browse files
authored
Merge pull request #168 from clober-dex/feat/payable-add-liquidity
Feat/payable add liquidity
2 parents c9372d2 + 272b9ad commit ed6f5a6

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clober/v2-sdk",
3-
"version": "0.0.109",
3+
"version": "0.0.110",
44
"description": "🛠 An SDK for building applications on top of Clober V2",
55
"files": [
66
"dist"

src/call.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,12 +1115,6 @@ export const addLiquidity = async ({
11151115
lpCurrency: Currency6909Flow
11161116
}
11171117
}> => {
1118-
if (
1119-
isAddressEqual(token0, zeroAddress) ||
1120-
isAddressEqual(token1, zeroAddress)
1121-
) {
1122-
throw new Error('ETH is not supported for adding liquidity')
1123-
}
11241118
const publicClient = createPublicClient({
11251119
chain: CHAIN_MAP[chainId],
11261120
transport: options?.rpcUrl ? http(options.rpcUrl) : http(),

0 commit comments

Comments
 (0)