mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-16 02:04:54 +01:00
copy
This commit is contained in:
parent
ad714dc8c9
commit
3c44eac707
@ -20,7 +20,7 @@ export default function Fees({
|
|||||||
<Input
|
<Input
|
||||||
label={
|
label={
|
||||||
<>
|
<>
|
||||||
Liquidity Provider Fee
|
Swap Fee
|
||||||
<Tooltip content={tooltips.swapFee} />
|
<Tooltip content={tooltips.swapFee} />
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
@ -103,10 +103,7 @@ export default function Add({
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p>You will earn</p>
|
<p>You will earn</p>
|
||||||
<Token
|
<Token symbol="% swap fee" balance={swapFee} />
|
||||||
symbol="% of each pool transaction"
|
|
||||||
balance={swapFee}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -106,10 +106,7 @@ export default function Pool({ ddo }: { ddo: DDO }): ReactElement {
|
|||||||
setUserBalance(userBalance)
|
setUserBalance(userBalance)
|
||||||
|
|
||||||
// Get liquidity provider fee
|
// Get liquidity provider fee
|
||||||
const swapFee = await ocean.pool.getSwapFee(
|
const swapFee = await ocean.pool.getSwapFee(accountId, price.address)
|
||||||
accountId,
|
|
||||||
price.address
|
|
||||||
)
|
|
||||||
setSwapFee(swapFee)
|
setSwapFee(swapFee)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error.message)
|
console.error(error.message)
|
||||||
@ -177,10 +174,7 @@ export default function Pool({ ddo }: { ddo: DDO }): ReactElement {
|
|||||||
{debug === true && (
|
{debug === true && (
|
||||||
<Token symbol="BPT" balance={totalPoolTokens} />
|
<Token symbol="BPT" balance={totalPoolTokens} />
|
||||||
)}
|
)}
|
||||||
<Token
|
<Token symbol="% swap fee" balance={swapFee} />
|
||||||
symbol="% liquidity provider fee"
|
|
||||||
balance={swapFee}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user