1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-09-28 03:58:59 +02:00
This commit is contained in:
Matthias Kretschmann 2020-09-28 15:55:33 +00:00
parent ad714dc8c9
commit 3c44eac707
3 changed files with 4 additions and 13 deletions

View File

@ -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} />
</> </>
} }

View File

@ -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>

View File

@ -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>