update liquidity panel
This commit is contained in:
parent
c318e363ba
commit
30b6c3dc46
|
@ -4,7 +4,7 @@ import { useEffect, useState } from 'react'
|
|||
import { Contract, CPMMContract } from 'common/contract'
|
||||
import { formatMoney } from 'common/util/format'
|
||||
import { useUser } from 'web/hooks/use-user'
|
||||
import { addLiquidity, withdrawLiquidity } from 'web/lib/firebase/api'
|
||||
import { addSubsidy, withdrawLiquidity } from 'web/lib/firebase/api'
|
||||
import { AmountInput } from 'web/components/amount-input'
|
||||
import { Row } from 'web/components/layout/row'
|
||||
import { useUserLiquidity } from 'web/hooks/use-liquidity'
|
||||
|
@ -99,7 +99,7 @@ function AddLiquidityPanel(props: { contract: CPMMContract }) {
|
|||
setIsLoading(true)
|
||||
setIsSuccess(false)
|
||||
|
||||
addLiquidity({ amount, contractId })
|
||||
addSubsidy({ amount, contractId })
|
||||
.then((_) => {
|
||||
setIsSuccess(true)
|
||||
setError(undefined)
|
||||
|
|
|
@ -42,8 +42,8 @@ export function changeUserInfo(params: any) {
|
|||
return call(getFunctionUrl('changeuserinfo'), 'POST', params)
|
||||
}
|
||||
|
||||
export function addLiquidity(params: any) {
|
||||
return call(getFunctionUrl('addliquidity'), 'POST', params)
|
||||
export function addSubsidy(params: any) {
|
||||
return call(getFunctionUrl('addsubsidy'), 'POST', params)
|
||||
}
|
||||
|
||||
export function addCommentBounty(params: any) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user