mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
method changes
This commit is contained in:
parent
d7fed2deb5
commit
89f4bf5aea
@ -57,13 +57,13 @@ export default function Remove({
|
|||||||
(Number(amountPercent) / Number(poolTokens)) * 100
|
(Number(amountPercent) / Number(poolTokens)) * 100
|
||||||
setAmountPoolShares(`${amountPoolShares}`)
|
setAmountPoolShares(`${amountPoolShares}`)
|
||||||
|
|
||||||
const amountOcean = await ocean.pool.getPoolSharesForRemoveOcean(
|
const amountOcean = await ocean.pool.getOceanRemovedforPoolShares(
|
||||||
poolAddress,
|
poolAddress,
|
||||||
`${amountPoolShares}`
|
`${amountPoolShares}`
|
||||||
)
|
)
|
||||||
setAmountOcean(amountOcean)
|
setAmountOcean(amountOcean)
|
||||||
|
|
||||||
const amountDatatoken = await ocean.pool.getPoolSharesForRemoveDT(
|
const amountDatatoken = await ocean.pool.getDTRemovedforPoolShares(
|
||||||
poolAddress,
|
poolAddress,
|
||||||
`${amountPoolShares}`
|
`${amountPoolShares}`
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user