diff --git a/docker-compose.yml b/docker-compose.yml index e025c4a..849a494 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -131,6 +131,7 @@ services: environment: - CHOKIDAR_USEPOLLING=1 - GIT_BRANCH=${GIT_BRANCH:-} + - VITE_ENABLE_LOCAL_SWAP=true expose: - "5173" ports: diff --git a/web-app/src/components/LocalSwapWidget.vue b/web-app/src/components/LocalSwapWidget.vue new file mode 100644 index 0000000..716ec4d --- /dev/null +++ b/web-app/src/components/LocalSwapWidget.vue @@ -0,0 +1,329 @@ + + + + + + + diff --git a/web-app/src/config.ts b/web-app/src/config.ts index 5fb02dc..1b62651 100644 --- a/web-app/src/config.ts +++ b/web-app/src/config.ts @@ -122,3 +122,5 @@ export const chainsData = [ export function getChain(id: number) { return chainsData.find(obj => obj.id === id); } + +export const enableLocalSwap = env.VITE_ENABLE_LOCAL_SWAP === 'true'; diff --git a/web-app/src/views/GetKrkView.vue b/web-app/src/views/GetKrkView.vue index c73029f..b762f4c 100644 --- a/web-app/src/views/GetKrkView.vue +++ b/web-app/src/views/GetKrkView.vue @@ -8,7 +8,16 @@
Swap ETH for $KRK directly against the local Uniswap pool.
+Swap ETH for $KRK on Uniswap, then stake your position to earn rewards.
You're on a local chain. Use the Cheat Console to swap ETH for KRK directly.
-