diff --git a/package.json b/package.json index ef9e90e..5780331 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "axios": "^0.24.0", "axios-hooks": "^4.0.0", "craco-less": "^1.20.0", - "dexy-sdk-ts": "0.2.3", + "dexy-sdk-ts": "0.2.4", "ergo-lib-wasm-browser": "^0.23.0", "eslint-plugin-react-hooks": "^4.2.0", "lodash": "^4.17.21", diff --git a/src/App.tsx b/src/App.tsx index 336a8fe..1546b1e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,8 +1,11 @@ import { + Box, Col, ContextModalProvider, Flex, Row, + Space, + Typography, useDevice, } from '@ergolabs/ui-kit'; import { DateTime, Interval } from 'luxon'; @@ -57,45 +60,58 @@ export const App: FC = () => { <> {applicationReady && ( - - - -
- - - - - + + + - - - - - - - - - - - - - - - - - - - - - + Check how it works ↗️ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + )} diff --git a/src/applicationConfig.ts b/src/applicationConfig.ts index 68c1912..1815bbb 100644 --- a/src/applicationConfig.ts +++ b/src/applicationConfig.ts @@ -13,6 +13,8 @@ export interface ApplicationConfig { readonly spectrumUrl: string; readonly dexybankUrl: string; readonly dexyOraclePool: string; + readonly dexyTradeLink: string; + readonly dexyProvideLiquidity: string; } export const applicationConfig: ApplicationConfig = { @@ -31,4 +33,8 @@ export const applicationConfig: ApplicationConfig = { dexybankUrl: 'https://api-testnet.dexygold.com/api', dexyOraclePool: 'https://explorer.ergoplatform.com/en/oracle-pool-state/xauerg', + dexyTradeLink: + 'https://dexy.interface-ggd.pages.dev/ergo/swap?base=0000000000000000000000000000000000000000000000000000000000000000"e=0d69a552b30df9be519099ec07682039b0610267aaee48d2a1d3dad398287ef5&initialPoolId=0fa04f3851b18085f160d90bc3dba1c63f2fdc73f884c9fd94395dbfc9c293b6', + dexyProvideLiquidity: + 'https://dexy.interface-ggd.pages.dev/ergo/liquidity/0fa04f3851b18085f160d90bc3dba1c63f2fdc73f884c9fd94395dbfc9c293b6', }; diff --git a/src/components/BankInfo/BankInfo.tsx b/src/components/BankInfo/BankInfo.tsx index d5e8ca4..c01fefc 100644 --- a/src/components/BankInfo/BankInfo.tsx +++ b/src/components/BankInfo/BankInfo.tsx @@ -51,6 +51,8 @@ const BankInfo = () => {
Liquidity pool price diff --git a/src/components/CirculationSupply/CirculationSupply.tsx b/src/components/CirculationSupply/CirculationSupply.tsx index 98782b6..1675237 100644 --- a/src/components/CirculationSupply/CirculationSupply.tsx +++ b/src/components/CirculationSupply/CirculationSupply.tsx @@ -143,7 +143,7 @@ export const CirculationSupply: React.FC = () => { - Circulation Supply + Circulating Supply {!s && {tabs}} diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index fb478f5..f6f92a6 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -1,4 +1,4 @@ -import { Flex } from '@ergolabs/ui-kit'; +import { Flex, Typography } from '@ergolabs/ui-kit'; import React, { FC } from 'react'; import styled from 'styled-components'; diff --git a/src/components/TradeInfo/TradeInfo.tsx b/src/components/TradeInfo/TradeInfo.tsx index 3e8e1b6..66e5155 100644 --- a/src/components/TradeInfo/TradeInfo.tsx +++ b/src/components/TradeInfo/TradeInfo.tsx @@ -1,6 +1,7 @@ import { Box, Flex, Typography, useDevice } from '@ergolabs/ui-kit'; import React from 'react'; +import { applicationConfig } from '../../applicationConfig'; import { ReactComponent as OpenIcon } from '../../assets/OpeninNew.svg'; const TradeInfo = () => { @@ -11,6 +12,8 @@ const TradeInfo = () => { Trade DexyGold @@ -22,6 +25,8 @@ const TradeInfo = () => { Provide Liquidity diff --git a/yarn.lock b/yarn.lock index 9c9b81e..e184aa0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4865,10 +4865,10 @@ detect-port-alt@^1.1.6: address "^1.0.1" debug "^2.6.0" -dexy-sdk-ts@0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/dexy-sdk-ts/-/dexy-sdk-ts-0.2.3.tgz#abbf4a0563413dcbce1349cdd02b70a24f3f8b8d" - integrity sha512-Fvcziq/7O/++YWx+zAuYrtTcLZ/6iB2TKO4SjG9lHX5r0JXBo/EI/fngfFsq1TWDIbbxma5tbT7c3HJCuOaChA== +dexy-sdk-ts@0.2.4: + version "0.2.4" + resolved "https://registry.yarnpkg.com/dexy-sdk-ts/-/dexy-sdk-ts-0.2.4.tgz#7eedc35b90e86ab19242fa36257384135dc7b85b" + integrity sha512-9M8XL3SOGfERPNq8T+lgEicvnfmHlr3Vg9EPPrxwV0mGTS6/odpAl3NzKUzBQdP2TwVN7IvOfTqrtdTnmr9sng== dependencies: "@ergolabs/ergo-sdk" "^0.5.6" ergo-lib-wasm-browser "^0.23.0"