Skip to content

Commit

Permalink
Revert "hotfix(liquidity): disable liquidity functionality (#1319)" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
happylolonly authored Oct 7, 2024
1 parent 393683b commit 4d8288d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 29 deletions.
1 change: 0 additions & 1 deletion src/containers/application/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ function App() {
),
[]
),
priority: true,
});

const { ipfsError } = useBackend();
Expand Down
17 changes: 2 additions & 15 deletions src/pages/teleport/Teleport.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Routes, Route } from 'react-router-dom';
// import Swap from './swap/swap';
import Swap from './swap/swap';
import Send from './send/send';
import Bridge from './bridge/bridge';
import TeleportMainScreen from './mainScreen/TeleportMainScreen';
Expand All @@ -13,20 +13,7 @@ function TeleportRouter() {
<Routes>
<Route path="/" element={<Layout />}>
<Route index element={<TeleportMainScreen />} />
<Route
path="swap"
element={
<div
style={{
textAlign: 'center',
zIndex: 10,
position: 'relative',
}}
>
swap temporary disabled due to upgrade issues
</div>
}
/>
<Route path="swap" element={<Swap />} />
<Route path="send" element={<Send />} />
<Route path="bridge" element={<Bridge />} />
<Route path="relayer" element={<Relayer />} />
Expand Down
15 changes: 3 additions & 12 deletions src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import MainPartal from './containers/portal/mainPortal';

import { routes } from './routes';
import WarpDashboardPools from './containers/warp/WarpDashboardPools';
import Warp from './containers/warp/Warp';
import Robot from './pages/robot/Robot';
import SigmaWrapper from './containers/sigma/SigmaWrapper';
import Keys from './pages/Keys/Keys';
Expand All @@ -56,6 +57,7 @@ import Brain from './pages/Brain/Brain';
import Settings from './pages/Settings/Settings';
import FreestyleIde from './pages/robot/Soul/RuneEditor/FreestyleIde/FreestyleIde';
import Map from './pages/Portal/Map/Map';
import { Networks } from './types/networks';
import GovernanceRoutes from './containers/governance/GovernanceRoutes';
import StudioWrapper from './features/studio/StudioWrapper';

Expand Down Expand Up @@ -192,18 +194,7 @@ function AppRouter() {
<Route path="/teleport/*" element={<Teleport />} />

<Route path="/warp" element={<WarpDashboardPools />} />
<Route
path="/warp/:tab"
element={
<div
style={{
textAlign: 'center',
}}
>
warp actions temporary disabled due to upgrade issues
</div>
}
/>
<Route path="/warp/:tab" element={<Warp />} />
<Route path="/genesis" element={<Movie />} />
<Route path="/citizenship" element={<PortalCitizenship />} />
<Route path="/gift" element={<PortalGift />} />
Expand Down
3 changes: 2 additions & 1 deletion src/services/soft.js/api/msgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Coin } from '@cosmjs/launchpad';
import { Uint53 } from '@cosmjs/math';
import { CyberClient } from '@cybercongress/cyber-js';
import { QueryLiquidityPoolResponse } from '@cybercongress/cyber-js/build/codec/tendermint/liquidity/v1beta1/query';
import { MsgSwapWithinBatch } from '@cybercongress/cyber-ts/cyber/liquidity/v1beta1/tx';
import BigNumber from 'bignumber.js';
import { QueryValidatorsResponse } from 'cosmjs-types/cosmos/staking/v1beta1/query';
import Long from 'long';
Expand Down Expand Up @@ -292,7 +293,7 @@ class Soft3MessageFactory {
);

return {
typeUrl: '/tendermint.liquidity.v1beta1.MsgSwapWithinBatch',
typeUrl: MsgSwapWithinBatch.typeUrl,
value: {
swapRequesterAddress: this.senderAddress,
poolId,
Expand Down

0 comments on commit 4d8288d

Please sign in to comment.