derion-io / create-comp

MIT License
0 stars 0 forks source link

Create Pool UI #2

Open Zergity opened 11 months ago

Zergity commented 11 months ago

Use logic from here: https://github.com/derivable-labs/derivable-core/blob/dev/scripts/deployPool.js

Zergity commented 8 months ago

(1) add 2 input topics, defaults value is: baseSymbol.slice(1) and baseSymbol.slice(-1)

Zergity commented 8 months ago

(2) show this line like this:

( ) XPET / WETH ( ) = 0.0012 <-> Uniswap V3 (0.3% fee)

See the script for price fetch

Image

Zergity commented 8 months ago

(3) index that have no pool before should not show the leverage map

Zergity commented 8 months ago

(4) remove this button

Image

Zergity commented 8 months ago

(5) only load the data on valid Pair input change (DONE) (6) add a spinner for loading time

Zergity commented 7 months ago

(8) Lever bars data does not reset after changing pair address STEPS:

  1. load BNB/USDT, see that the bar show there's a 8x pool (expected)
  2. change the pair to BTCB/USDT, see that the bar still shows the 8x pool, UNEXPECTED.

Image

Zergity commented 7 months ago

(10) Univ2 support

Zergity commented 7 months ago

(11) Confirm button load too slow, there should be no api or rpc call after the button is press.

Zergity commented 7 months ago

(12) 7.5x is after 8x (unexpected)

Image

Zergity commented 7 months ago

(15) missing USD estimation of input token (in Pool box, and in Input suffix)

Image

Zergity commented 7 months ago

(16) map the tokens symbol in whitelist (as they did in Trade)

token 0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8 in pair 0xC31E54c7a869B9FcBEcc14363CF510d1c41fa443 should be displayed as USDC.e

0xaf88d065e77c8cC2239327C5EDb3A432268e5831 = USDC

Zergity commented 6 months ago

(17) failed to create the second pool, after the first pool success

Reloading the page resolves the issue.

Zergity commented 6 months ago

(18) wrong pools displayed

STEPS:

  1. there's 1 pool BTC/ETH: 0x15b37A5e24Fe4B0a769ABBD449159eBce053a72f
  2. input BTC/USDC pair: 0xac70bD92F89e6739B3a08Db9B6081a923912f73D EXPECT: BTC/ETH pools are not shown in the level map ACTUAL: BTC/ETH 8x is shown

Image