1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-30 05:41:41 +02:00

condition or advanced flow

This commit is contained in:
mihaisc 2020-08-05 16:04:54 +03:00
parent 9cd441c483
commit 982170cedb

View File

@ -48,15 +48,19 @@ export default function PublishPage({
'',
''
)
switch (type) {
case 'advanced': {
// weight is hardcoded at 9 (90%) and publisher fee at 0.03(this was a random value set by me)
const pool = await ocean.pool.createDTPool(
accountId,
ddo.dataToken,
tokensToMint.toString(),
'9',
'0.03'
)
}
}
// create pool for the data token, this is the advanced flow , currently hardcoded
const pool = await ocean.pool.createDTPool(
accountId,
ddo.dataToken,
tokensToMint.toString(),
'9',
'0.03'
)
if (publishError) {
toast.error(publishError)
return null