mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-02-16 21:36:46 +00:00
use fundToken for approval
This commit is contained in:
parent
cad9a36e20
commit
a483e1cd45
@ -138,7 +138,7 @@ const SubmissionSection = ({ classes, projectData, projectId, profileData, start
|
||||
if (!activeStep) return enableEthereum()
|
||||
const { amount, fundToken } = values
|
||||
const { goalToken } = manifest
|
||||
const { chainReadibleFn } = getTokenByAddress(goalToken, currencies)
|
||||
const { chainReadibleFn } = getTokenByAddress(fundToken, currencies)
|
||||
const userAccount = account ? account : await enableEthereum()
|
||||
const weiAmount = chainReadibleFn(amount)
|
||||
if (activeStep === NOT_APPROVED) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user