mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
add cleanup
This commit is contained in:
parent
77d305ae2e
commit
ef8814b622
@ -17,13 +17,11 @@ function calculatePercent(percent: number, num: number) {
|
||||
|
||||
export default function Add({
|
||||
setShowAdd,
|
||||
dtSymbol,
|
||||
poolAddress,
|
||||
totalPoolTokens,
|
||||
totalBalance
|
||||
}: {
|
||||
setShowAdd: (show: boolean) => void
|
||||
dtSymbol: string
|
||||
poolAddress: string
|
||||
totalPoolTokens: string
|
||||
totalBalance: Balance
|
||||
@ -31,7 +29,6 @@ export default function Add({
|
||||
const { ocean, accountId, balance } = useOcean()
|
||||
const [amount, setAmount] = useState<string>()
|
||||
const [isLoading, setIsLoading] = useState<boolean>()
|
||||
const [newDtAmount, setNewDtAmount] = useState<string>()
|
||||
|
||||
const newPoolTokens =
|
||||
totalBalance &&
|
||||
@ -85,7 +82,6 @@ export default function Add({
|
||||
|
||||
<div>
|
||||
<p>You will receive:</p>
|
||||
<Token symbol={dtSymbol} balance={newDtAmount} />
|
||||
<Token symbol="BPT" balance={newPoolTokens} />
|
||||
<Token symbol="% of pool" balance={newPoolShare} />
|
||||
</div>
|
||||
|
@ -96,7 +96,6 @@ export default function Pool({ ddo }: { ddo: DDO }): ReactElement {
|
||||
) : showAdd ? (
|
||||
<Add
|
||||
setShowAdd={setShowAdd}
|
||||
dtSymbol={dtSymbol}
|
||||
poolAddress={poolAddress}
|
||||
totalPoolTokens={totalPoolTokens}
|
||||
totalBalance={totalBalance}
|
||||
|
Loading…
Reference in New Issue
Block a user