mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
configurable market fee values
This commit is contained in:
parent
6271f46918
commit
93f9432032
@ -1,4 +1,6 @@
|
||||
# Network, possible values: development, pacific, rinkeby, mainnet
|
||||
GATSBY_NETWORK="rinkeby"
|
||||
|
||||
#GATSBY_INFURA_PROJECT_ID="xxx"
|
||||
#GATSBY_INFURA_PROJECT_ID="xxx"
|
||||
#GATSBY_MARKET_FEE_ADDRESS="0xxx"
|
||||
#GATSBY_MARKET_FEE_AMOUNT="xxx"
|
@ -15,7 +15,9 @@ const appConfig = {
|
||||
verbose: 3
|
||||
},
|
||||
network,
|
||||
infuraProjectId: process.env.GATSBY_INFURA_PROJECT_ID || 'xxx'
|
||||
infuraProjectId: process.env.GATSBY_INFURA_PROJECT_ID || 'xxx',
|
||||
marketFeeAddress: process.env.GATSBY_MARKET_FEE_ADDRESS || '0xxxx',
|
||||
marketFeeAmount: process.env.GATSBY_MARKET_FEE_AMOUNT || '0.03' // in %
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
@ -11,12 +11,14 @@ import { initialValues, validationSchema } from '../../../models/FormPublish'
|
||||
import { transformPublishFormToMetadata } from './utils'
|
||||
import Preview from './Preview'
|
||||
import { MetadataPublishForm } from '../../../@types/MetaData'
|
||||
import { useSiteMetadata } from '../../../hooks/useSiteMetadata'
|
||||
|
||||
export default function PublishPage({
|
||||
content
|
||||
}: {
|
||||
content: { form: FormContent }
|
||||
}): ReactElement {
|
||||
const { marketFeeAmount } = useSiteMetadata()
|
||||
const { accountId, ocean } = useOcean()
|
||||
const { publish, publishError } = usePublish()
|
||||
const navigate = useNavigate()
|
||||
@ -59,7 +61,7 @@ export default function PublishPage({
|
||||
ddo.dataToken,
|
||||
tokensToMint.toString(),
|
||||
'9',
|
||||
'0.03'
|
||||
marketFeeAmount
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -16,6 +16,8 @@ const query = graphql`
|
||||
appConfig {
|
||||
infuraProjectId
|
||||
network
|
||||
marketFeeAddress
|
||||
marketFeeAmount
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user