mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
condition or advanced flow
This commit is contained in:
parent
9cd441c483
commit
982170cedb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user