Skip to content

Commit

Permalink
Merge pull request ubiquity#710 from molecula451/reactive-drop
Browse files Browse the repository at this point in the history
Update UI - fix some bugs
  • Loading branch information
0x4007 authored Jul 11, 2023
2 parents e0b0bad + 1a13405 commit 14d6f8b
Show file tree
Hide file tree
Showing 32 changed files with 317 additions and 1,339 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# infura key created at infura.io
INFURA_ID=XXXXXX
NEXT_PUBLIC_JSON_RPC_URL=XXXXXX
NEXT_PUBLIC_WALLET_CONNECT_ID=XXXXXX
NEXT_PUBLIC_DEBUG=
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Yarn Install
run: yarn install --mode=skip-build && yarn allow-scripts

- name: Setup Forge
run: yarn workspace @ubiquity/contracts forge:install

Expand Down
5 changes: 4 additions & 1 deletion packages/contracts/scripts/anvil/anvil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ let optimalRPC;

const envPath = path.join(__dirname, "/../../.env");
if (!fs.existsSync(envPath)) {
throw new Error("Env file not found");
const envExamplePath = path.join(__dirname, "/../../.env.example");
fs.copyFileSync(envExamplePath, envPath);
console.log(".env file created from .env.example");
console.log("check .env for changes when in need");
}

const env = loadEnv(envPath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ import path from "path";

const envPath = path.join(__dirname, "../../../.env");
if (!fs.existsSync(envPath)) {
throw new Error("Env file not found");
const envExamplePath = path.join(__dirname, "../../../.env.example");
fs.copyFileSync(envExamplePath, envPath);
console.log(".env file created from .env.example");
console.log("check .env for changes when in need");
}

const env = loadEnv(envPath);

const curveWhale = env.curveWhale as string;
Expand Down
9 changes: 5 additions & 4 deletions packages/contracts/scripts/shared/libs/curve.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// cspell: disable
// Utility functions for curve lp pool

import { BigNumber, constants, utils } from "ethers";
import { BigNumber, constants } from "ethers";
import { ethers } from "ethers";

export const N_COINS = 2;
export const A_PRECISION = 100;
export const PRECISION = utils.parseEther("1");
export const FEE_DENOMINATOR = utils.parseUnits("1", 10);
export const RATE_MULTIPLIER = utils.parseEther("1");
export const PRECISION = ethers.parseEther("1");
export const FEE_DENOMINATOR = ethers.parseUnits("1", 10);
export const RATE_MULTIPLIER = ethers.parseEther("1");

const get_D = (_xp: BigNumber[], _amp: BigNumber): BigNumber => {
let S = constants.Zero;
Expand Down
3 changes: 2 additions & 1 deletion packages/dapp/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# infura key created at infura.io
NEXT_PUBLIC_JSON_RPC_URL=XXXXXX
NEXT_PUBLIC_WALLET_CONNECT_ID=XXXXXX
NEXT_PUBLIC_WALLET_CONNECT_ID=XXXXXX
NEXT_PUBLIC_DEBUG=
157 changes: 0 additions & 157 deletions packages/dapp/components/bonds/_app.tsx

This file was deleted.

63 changes: 0 additions & 63 deletions packages/dapp/components/bonds/allowance-manager.tsx

This file was deleted.

88 changes: 0 additions & 88 deletions packages/dapp/components/bonds/bonding-pool.tsx

This file was deleted.

Loading

2 comments on commit 14d6f8b

@ubiquibot-rndquu
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ubiquibot-rndquu
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.