调整ido
This commit is contained in:
parent
34934d8ba5
commit
78377c2d98
|
|
@ -26,24 +26,6 @@ const FCard = styled.div`
|
||||||
const ExchangeCard: React.FC<GetCardProps> = ({ price = 0, time = 0 }) => {
|
const ExchangeCard: React.FC<GetCardProps> = ({ price = 0, time = 0 }) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
// const account = useAccount()
|
|
||||||
// const lockTime = useLockTime()
|
|
||||||
// const [time, setTime] = useState(0)
|
|
||||||
// const userInfo = useUserInfo()
|
|
||||||
// const [price, setPrice] = useState(0)
|
|
||||||
// const init = async () => {
|
|
||||||
// const data = await lockTime()
|
|
||||||
// console.log(data)
|
|
||||||
// setTime(data)
|
|
||||||
// const info = await userInfo(account)
|
|
||||||
// console.log(info)
|
|
||||||
// setPrice(info)
|
|
||||||
// }
|
|
||||||
// useEffect(() => {
|
|
||||||
// if (account) {
|
|
||||||
// init()
|
|
||||||
// }
|
|
||||||
// }, [account])
|
|
||||||
const harvest = useHarvest()
|
const harvest = useHarvest()
|
||||||
const getPrice = async () => {
|
const getPrice = async () => {
|
||||||
const res = await harvest()
|
const res = await harvest()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue