1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00

add cleanup

This commit is contained in:
Matthias Kretschmann 2020-08-26 10:43:17 +02:00
parent 77d305ae2e
commit ef8814b622
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 0 additions and 5 deletions

View File

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

View File

@ -96,7 +96,6 @@ export default function Pool({ ddo }: { ddo: DDO }): ReactElement {
) : showAdd ? (
<Add
setShowAdd={setShowAdd}
dtSymbol={dtSymbol}
poolAddress={poolAddress}
totalPoolTokens={totalPoolTokens}
totalBalance={totalBalance}