diff --git a/src/components/organisms/AssetActions/Pool/index.tsx b/src/components/organisms/AssetActions/Pool/index.tsx index 4c9586260..bfdbc38c8 100644 --- a/src/components/organisms/AssetActions/Pool/index.tsx +++ b/src/components/organisms/AssetActions/Pool/index.tsx @@ -96,9 +96,10 @@ export default function Pool({ ddo }: { ddo: DDO }): ReactElement { setUserBalance(userBalance) - // Get liquidity provider fee + // Get swap fee + // swapFee is tricky: to get 0.1% you need to convert from 0.001 const swapFee = await ocean.pool.getSwapFee(price.address) - setSwapFee(swapFee) + setSwapFee(`${Number(swapFee) * 100}`) } catch (error) { console.error(error.message) } finally { diff --git a/src/components/pages/Publish/index.tsx b/src/components/pages/Publish/index.tsx index e19d8550b..6dfaae3cd 100644 --- a/src/components/pages/Publish/index.tsx +++ b/src/components/pages/Publish/index.tsx @@ -44,7 +44,8 @@ export default function PublishPage({ const ddo = await publish( (metadata as unknown) as Metadata, - { ...price, swapFee: `${price.swapFee}` }, + // swapFee is tricky: to get 0.1% you need to send 0.001 as value + { ...price, swapFee: `${price.swapFee / 100}` }, serviceType, price.datatoken )