Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats page #60

Closed
pi0neerpat opened this issue Aug 8, 2023 · 2 comments · Fixed by #64
Closed

Stats page #60

pi0neerpat opened this issue Aug 8, 2023 · 2 comments · Fixed by #64
Assignees

Comments

@pi0neerpat
Copy link
Member

pi0neerpat commented Aug 8, 2023

  • Update the stats page "analytics" boxes to new design.
  • Please create a plan detailing each box, where the data is coming from, and which pieces of data are currently missing.

image

pi0neerpat added a commit that referenced this issue Aug 8, 2023
* feat: added debt surplus and collateral auctions (#44)

* feat: add auction route

* chore: fix some texts and add temporary surplus image

* feat: add autions to navbar

* chore: add auction types

* feat: add auction components

* feat: add temporary useAuction hook

* chore: fix surplus icon

* feat: use hook for mocked values

* fix: error loading vaults with outdated sdk

* chore: add console.error

* feat: add call to sdk for events

* feat: add more auction files

* chore: remove example values and use sdk auction call

* feat: add approve token logic, temporary disabled

* feat: add more mocked values for auction state

* fix: logs and wallet error

* fix: helper function

* chore: remove temporary values from AuctionBlock

* chore: add new temporary value on auctionModel

* chore: better mocking on the auction hook

* chore: remove temporary commented code

* chore: remove temporary commented code

* chore: remove temporary commented code in AuctionsList

* chore: add space on AuctionBlock

* feat: search surplus and debt auctions separately

* feat: update sdk

* chore: use geb hook (#52)

* feat: implement auctions data  (#54)

* chore: use geb hook

* fix: approve logic

* feat: auctions config data fetch

* feat: accounting engine data

* feat: safeEngine data

* feat: implement surplus auction data

* feat: surplus bid functionality

* feat: debt auctions

* chore: fix buy and sell decimals on useAuction

* fix: start auction logic

* feat: update user hai and kite balances

* fix: approve logic and update list after bidding

* feat: get internal values

* fix: formatNumber function

* fix: bid in debt auctions

* fix: auctionPayments logic

* feat: batch coin protocol balance (#55)

* feat: batch coin protocol balance

* feat: save fetched values

---------

Co-authored-by: Ardy <ardy@defi.sucks>

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* feat: update sdk

* feat: settle auctions from the UI (#58)

* feat: use proxy when claim and fix debt error bug

* feat: settle auctions from the ui

* chore: log proxy address

* feat: update auctions after an action

* feat: fetch collateral auction data (#57)

* feat: fetch collateral auction data

* feat: implement collateral auctions section (#59)

* feat: update sdk + set empty list on change

* fix: undefined geb

* feat: auctions loading (#60)

* feat: auctions on state (#63)

* feat: auctions on state

* feat: switch statement

* feat: collateral auctions dropdown (#62)

* feat: auctions loading

* chore: temporary mocked auctions

* feat: collaterals dropdown

* feat: improve buy collateral modals

* feat: auctions on state

* feat: switch statement

* feat: update get collateral price contract

* fix: switch functions

* fix: contract variable names

* chore: update fetchCollateralAuctionData function

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: get collateral data implementation (#69)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: remove temporary any

* feat: initial amount

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: collateral auction max discount time

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>

* feat: collateral modals (#70)

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: approval logic

* feat: collateral auction checks

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: run prettier

* chore: update sdk

* fix: undo sellAmountParsed function changes

* fix: remove collateral conditionals on AuctionBlock component

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* chore: remove staked_token things and unused variables (#71)

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: remove staked_tokens things

* fix: remove unused vars

* chore: run prettier

* feat: optimize stone image

* feat: set isSubmitting to false when tx fails

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* fix: decimals, duplicated buy rows and update branch with dev (#72)

* style: improve buttons feedback (#46)

* feat: low decimals

* feat: fix token pricing

* fix: modify safe token price + hai balance

* fix: create safe token pricing

* style: add opacity on hover in safeList, back, deposit and repay buttons

* feat: fix back button logic and set deposit as default

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: airdrop claimer (#51)

* feat: airdrop claimer

* feat: better tx management

* fix: text

* fix: text

* fix: handle tx reject

* feat: fetch collateral auction data

* feat: implement collateral auctions section (#59)

* feat: update sdk + set empty list on change

* fix: undefined geb

* feat: auctions loading (#60)

* feat: auctions on state (#63)

* feat: auctions on state

* feat: switch statement

* feat: collateral auctions dropdown (#62)

* feat: auctions loading

* chore: temporary mocked auctions

* feat: collaterals dropdown

* feat: improve buy collateral modals

* feat: auctions on state

* feat: switch statement

* feat: update get collateral price contract

* fix: switch functions

* fix: contract variable names

* chore: update fetchCollateralAuctionData function

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: approval logic

* feat: collateral auction checks

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: remove staked_tokens things

* fix: remove unused vars

* chore: run prettier

* feat: optimize stone image

* feat: set isSubmitting to false when tx fails

* feat: remove duplicated buy items

* fix: remove more than 18 decimals on inputs

* chore: remove erc20 hai balance from coin internal balance

* chore: remove unused function

* fix: build

* fix: collateral input

* fix: remove log

* chore: rename variables

* fix: max buttons on buy collateral auctions

* fix: result values

* fix: auctions navbar on mobile

* chore: update pkg

* fix: debt bids

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* chore: remove logs

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* fix: modify safe inputs

* feat: updating sdk (#75)

* feat: virtually taxing collaterals before state querying (#64)

* feat: remove starter bidder and add Max texts (#78)

* feat: remove starter bidder

* feat: max texts on buy collateral modals

* feat: liquidate own safe (#77)

* feat: liquidate own safe

* feat: liquidate vault

* feat: liquidate vault

* feat: sdk

* feat: liquidate vault

* feat: liquidatable text + other hardcoded variables

* feat: pr fixes

* feat: wrap ether (#74)

* fix: modify safe inputs

* feat: wrap ether setup

* fix: close modal after deposit

* feat: use eth balance and update weth balance after wrap

* feat: leave 0.01 eth when the user click max

* feat: show eth balance on modal

* fix: remove classname

* fix: texts

* chore: rename files

* feat: better collateral auction max 

* feat: better cah max

* feat: better cah max

* feat: analytics tab 

* feat: analytics setup

* chore: remove some class names and add comments

* feat: adding batch analytics query contract

* feat: tables

* chore: remove log

* fix: list keys

* feat: use virtual analytic contract to fetch data

* fix: filter undefined contracts

* feat: adding debtAmount per collat (#82)

* feat: adding debtAmount per collat

* fix: typo

* feat: adding redemption rate query

* feat: debt column (#83)

* feat: adding debtAmount per collat

* fix: typo

* feat: adding redemption rate query

* feat: debt column

* feat: format numbers

* feat: use format function

* chore: hide locked amount

* style: cards

* style: cards width

* feat: adding descriptions to market and redemption prices

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* feat: adding redemption rates to stats (#86)

* feat: adding partial rr to analytics script

* refactor: standarizing decoded vars declaration

* fix: typo in sol file

* feat: adding stability fee to collat analytics

* fix: typo

* feat: redemption rate cards (#87)

* feat: adding partial rr to analytics script

* refactor: standarizing decoded vars declaration

* fix: typo in sol file

* feat: adding stability fee to collat analytics

* fix: typo

* feat: redemption rate cards and remove some  unused code

* feat: add iRate, pRate and improve ststyles and code

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* feat: bump sdk version

* feat: cleaning texts and adding cah faq 

* feat: cleaning texts and adding cah faq

* fix: rm empty

* feat: added borrow rates to collats (#88)

* feat: added borrow rates to collats

* feat: improve hai prices precision

* feat: add erc20 link in collaterals table

* feat: added button to auction debt (#91)

* feat: added button to auction debt

* fix: typos

* fix: debt amount to start auction

* fix: debt calculation

* fix: rm negative surplus

* fix: debt calculation

* fix: typo

* fix: types on useStartAuction hook

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>

* fix: faq typo and linter run (#93)

* fix: faq typo

* chore: run prettier

* feat: added collateral and global stats (#92)

* feat: added erc20 balance and debts

* feat: querying debt ceilings

* feat: added delayed oracle

* feat: added oracle title

* feat: improved rate multiplication calc

* feat: added collateral debt utilization

* feat: add collateralization ratio and debt utilization

* feat: querying SF in treasury

* feat: add scroll in collateral table

* feat: fix wad percentages

* feat: reordered table

* feat: add tooltips on collat table (#97)

* feat: add scroll in collateral table

* feat add tooltip on collat table

* feat: added descriptions

* fix: run prettier

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* feat: added description and fixed typo

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>

* install sdk

* feat: add contract descriptions (#98)

* feat: add contract descriptions

* feat: fix contract descriptions

* fix: addressing comments in pr

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* initial test

* fix icons

* feat: fixes for rc-1.1 (#85)

* chore: use canary release

* fix: package.json

* fix: build

* fix: build

* fix: pkg

* feat: fixing interfaces for clean deployment

* feat: add example.env file

* feat: working with linked sdk

* feat: adding lockedAmount from safe engine

* fix: fetch user safes data

* fix: solidity interfaces

* feat: redeploy airdropper

* feat: canary sdk release

* fix: cah auctions card

* fix: batch scripting

* fix: systemCoin contract description

* fix: systemCoin contract description linter

* fix: collateral bid in recent txs

* fix: stability fee calc on safes

* chore: importing sdk v1.1

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* rename haiBalance

* cleanup 1st attempt

* Install from registry

* sdk version

* text copy

* detectNetwork type error

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>
Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>
Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>
@pi0neerpat pi0neerpat changed the title Stats page #2 Stats page Aug 10, 2023
@alekseevaiana
Copy link
Member

You can find below sub headers with data we need and what we already have. I put missing for data that I couldn't find over the app.

Anslytics
Total Collateral Locked - missing
Outstanding OD - missing
Vault NFTs - missing

System Rates
Annual Stability Fee -> annualRate (from toke stability fee)
Annual Redemption Rate -> annualRedemptionRate
8-hour redemption rate -> eightRate

System Info
Circulation - missing
Fees Pending Auction - missing
Total Fees Earned - missing
Gloal debt utilization -> globalDebtUtilization
global debt - globalDebt

Prices
Market Price OD - have but about hai -> marketPrice
redemption Price OD - have but about hai
OD/ETH Liquidity in uniswap - missing
Market Price ODG - missing

@pi0neerpat
Copy link
Member Author

Looks good to go! We can talk data on our next call.

@pi0neerpat pi0neerpat added ch-17 and removed ch-16 labels Aug 14, 2023
This was referenced Aug 16, 2023
pi0neerpat pushed a commit that referenced this issue Aug 22, 2023
* feat: add auction route

* chore: fix some texts and add temporary surplus image

* feat: add autions to navbar

* chore: add auction types

* feat: add auction components

* feat: add temporary useAuction hook

* chore: fix surplus icon

* feat: use hook for mocked values

* fix: error loading vaults with outdated sdk

* chore: add console.error

* feat: add call to sdk for events

* feat: add more auction files

* chore: remove example values and use sdk auction call

* feat: add approve token logic, temporary disabled

* feat: add more mocked values for auction state

* fix: logs and wallet error

* fix: helper function

* chore: remove temporary values from AuctionBlock

* chore: add new temporary value on auctionModel

* chore: better mocking on the auction hook

* chore: remove temporary commented code

* chore: remove temporary commented code

* chore: remove temporary commented code in AuctionsList

* chore: add space on AuctionBlock

* feat: search surplus and debt auctions separately

* feat: update sdk

* chore: use geb hook (#52)

* feat: implement auctions data  (#54)

* chore: use geb hook

* fix: approve logic

* feat: auctions config data fetch

* feat: accounting engine data

* feat: safeEngine data

* feat: implement surplus auction data

* feat: surplus bid functionality

* feat: debt auctions

* chore: fix buy and sell decimals on useAuction

* fix: start auction logic

* feat: update user hai and kite balances

* fix: approve logic and update list after bidding

* feat: get internal values

* fix: formatNumber function

* fix: bid in debt auctions

* fix: auctionPayments logic

* feat: batch coin protocol balance (#55)

* feat: batch coin protocol balance

* feat: save fetched values

---------

Co-authored-by: Ardy <ardy@defi.sucks>

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* feat: update sdk

* feat: settle auctions from the UI (#58)

* feat: use proxy when claim and fix debt error bug

* feat: settle auctions from the ui

* chore: log proxy address

* feat: update auctions after an action

* feat: fetch collateral auction data (#57)

* feat: fetch collateral auction data

* feat: implement collateral auctions section (#59)

* feat: update sdk + set empty list on change

* fix: undefined geb

* feat: auctions loading (#60)

* feat: auctions on state (#63)

* feat: auctions on state

* feat: switch statement

* feat: collateral auctions dropdown (#62)

* feat: auctions loading

* chore: temporary mocked auctions

* feat: collaterals dropdown

* feat: improve buy collateral modals

* feat: auctions on state

* feat: switch statement

* feat: update get collateral price contract

* fix: switch functions

* fix: contract variable names

* chore: update fetchCollateralAuctionData function

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: get collateral data implementation (#69)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: remove temporary any

* feat: initial amount

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: collateral auction max discount time

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>

* feat: collateral modals (#70)

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: approval logic

* feat: collateral auction checks

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: run prettier

* chore: update sdk

* fix: undo sellAmountParsed function changes

* fix: remove collateral conditionals on AuctionBlock component

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* chore: remove staked_token things and unused variables (#71)

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: remove staked_tokens things

* fix: remove unused vars

* chore: run prettier

* feat: optimize stone image

* feat: set isSubmitting to false when tx fails

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* fix: decimals, duplicated buy rows and update branch with dev (#72)

* style: improve buttons feedback (#46)

* feat: low decimals

* feat: fix token pricing

* fix: modify safe token price + hai balance

* fix: create safe token pricing

* style: add opacity on hover in safeList, back, deposit and repay buttons

* feat: fix back button logic and set deposit as default

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: airdrop claimer (#51)

* feat: airdrop claimer

* feat: better tx management

* fix: text

* fix: text

* fix: handle tx reject

* feat: fetch collateral auction data

* feat: implement collateral auctions section (#59)

* feat: update sdk + set empty list on change

* fix: undefined geb

* feat: auctions loading (#60)

* feat: auctions on state (#63)

* feat: auctions on state

* feat: switch statement

* feat: collateral auctions dropdown (#62)

* feat: auctions loading

* chore: temporary mocked auctions

* feat: collaterals dropdown

* feat: improve buy collateral modals

* feat: auctions on state

* feat: switch statement

* feat: update get collateral price contract

* fix: switch functions

* fix: contract variable names

* chore: update fetchCollateralAuctionData function

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: approval logic

* feat: collateral auction checks

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: remove staked_tokens things

* fix: remove unused vars

* chore: run prettier

* feat: optimize stone image

* feat: set isSubmitting to false when tx fails

* feat: remove duplicated buy items

* fix: remove more than 18 decimals on inputs

* chore: remove erc20 hai balance from coin internal balance

* chore: remove unused function

* fix: build

* fix: collateral input

* fix: remove log

* chore: rename variables

* fix: max buttons on buy collateral auctions

* fix: result values

* fix: auctions navbar on mobile

* chore: update pkg

* fix: debt bids

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* chore: remove logs

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>
pi0neerpat added a commit that referenced this issue Aug 22, 2023
* feat: added debt surplus and collateral auctions (#44)

* feat: add auction route

* chore: fix some texts and add temporary surplus image

* feat: add autions to navbar

* chore: add auction types

* feat: add auction components

* feat: add temporary useAuction hook

* chore: fix surplus icon

* feat: use hook for mocked values

* fix: error loading vaults with outdated sdk

* chore: add console.error

* feat: add call to sdk for events

* feat: add more auction files

* chore: remove example values and use sdk auction call

* feat: add approve token logic, temporary disabled

* feat: add more mocked values for auction state

* fix: logs and wallet error

* fix: helper function

* chore: remove temporary values from AuctionBlock

* chore: add new temporary value on auctionModel

* chore: better mocking on the auction hook

* chore: remove temporary commented code

* chore: remove temporary commented code

* chore: remove temporary commented code in AuctionsList

* chore: add space on AuctionBlock

* feat: search surplus and debt auctions separately

* feat: update sdk

* chore: use geb hook (#52)

* feat: implement auctions data  (#54)

* chore: use geb hook

* fix: approve logic

* feat: auctions config data fetch

* feat: accounting engine data

* feat: safeEngine data

* feat: implement surplus auction data

* feat: surplus bid functionality

* feat: debt auctions

* chore: fix buy and sell decimals on useAuction

* fix: start auction logic

* feat: update user hai and kite balances

* fix: approve logic and update list after bidding

* feat: get internal values

* fix: formatNumber function

* fix: bid in debt auctions

* fix: auctionPayments logic

* feat: batch coin protocol balance (#55)

* feat: batch coin protocol balance

* feat: save fetched values

---------

Co-authored-by: Ardy <ardy@defi.sucks>

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* feat: update sdk

* feat: settle auctions from the UI (#58)

* feat: use proxy when claim and fix debt error bug

* feat: settle auctions from the ui

* chore: log proxy address

* feat: update auctions after an action

* feat: fetch collateral auction data (#57)

* feat: fetch collateral auction data

* feat: implement collateral auctions section (#59)

* feat: update sdk + set empty list on change

* fix: undefined geb

* feat: auctions loading (#60)

* feat: auctions on state (#63)

* feat: auctions on state

* feat: switch statement

* feat: collateral auctions dropdown (#62)

* feat: auctions loading

* chore: temporary mocked auctions

* feat: collaterals dropdown

* feat: improve buy collateral modals

* feat: auctions on state

* feat: switch statement

* feat: update get collateral price contract

* fix: switch functions

* fix: contract variable names

* chore: update fetchCollateralAuctionData function

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: get collateral data implementation (#69)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: remove temporary any

* feat: initial amount

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: collateral auction max discount time

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>

* feat: collateral modals (#70)

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: approval logic

* feat: collateral auction checks

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: run prettier

* chore: update sdk

* fix: undo sellAmountParsed function changes

* fix: remove collateral conditionals on AuctionBlock component

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* chore: remove staked_token things and unused variables (#71)

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: remove staked_tokens things

* fix: remove unused vars

* chore: run prettier

* feat: optimize stone image

* feat: set isSubmitting to false when tx fails

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* fix: decimals, duplicated buy rows and update branch with dev (#72)

* style: improve buttons feedback (#46)

* feat: low decimals

* feat: fix token pricing

* fix: modify safe token price + hai balance

* fix: create safe token pricing

* style: add opacity on hover in safeList, back, deposit and repay buttons

* feat: fix back button logic and set deposit as default

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: airdrop claimer (#51)

* feat: airdrop claimer

* feat: better tx management

* fix: text

* fix: text

* fix: handle tx reject

* feat: fetch collateral auction data

* feat: implement collateral auctions section (#59)

* feat: update sdk + set empty list on change

* fix: undefined geb

* feat: auctions loading (#60)

* feat: auctions on state (#63)

* feat: auctions on state

* feat: switch statement

* feat: collateral auctions dropdown (#62)

* feat: auctions loading

* chore: temporary mocked auctions

* feat: collaterals dropdown

* feat: improve buy collateral modals

* feat: auctions on state

* feat: switch statement

* feat: update get collateral price contract

* fix: switch functions

* fix: contract variable names

* chore: update fetchCollateralAuctionData function

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: approval logic

* feat: collateral auction checks

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: remove staked_tokens things

* fix: remove unused vars

* chore: run prettier

* feat: optimize stone image

* feat: set isSubmitting to false when tx fails

* feat: remove duplicated buy items

* fix: remove more than 18 decimals on inputs

* chore: remove erc20 hai balance from coin internal balance

* chore: remove unused function

* fix: build

* fix: collateral input

* fix: remove log

* chore: rename variables

* fix: max buttons on buy collateral auctions

* fix: result values

* fix: auctions navbar on mobile

* chore: update pkg

* fix: debt bids

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* chore: remove logs

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* fix: modify safe inputs

* feat: updating sdk (#75)

* feat: virtually taxing collaterals before state querying (#64)

* feat: remove starter bidder and add Max texts (#78)

* feat: remove starter bidder

* feat: max texts on buy collateral modals

* feat: liquidate own safe (#77)

* feat: liquidate own safe

* feat: liquidate vault

* feat: liquidate vault

* feat: sdk

* feat: liquidate vault

* feat: liquidatable text + other hardcoded variables

* feat: pr fixes

* feat: wrap ether (#74)

* fix: modify safe inputs

* feat: wrap ether setup

* fix: close modal after deposit

* feat: use eth balance and update weth balance after wrap

* feat: leave 0.01 eth when the user click max

* feat: show eth balance on modal

* fix: remove classname

* fix: texts

* chore: rename files

* feat: better collateral auction max 

* feat: better cah max

* feat: better cah max

* feat: analytics tab 

* feat: analytics setup

* chore: remove some class names and add comments

* feat: adding batch analytics query contract

* feat: tables

* chore: remove log

* fix: list keys

* feat: use virtual analytic contract to fetch data

* fix: filter undefined contracts

* feat: adding debtAmount per collat (#82)

* feat: adding debtAmount per collat

* fix: typo

* feat: adding redemption rate query

* feat: debt column (#83)

* feat: adding debtAmount per collat

* fix: typo

* feat: adding redemption rate query

* feat: debt column

* feat: format numbers

* feat: use format function

* chore: hide locked amount

* style: cards

* style: cards width

* feat: adding descriptions to market and redemption prices

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* feat: adding redemption rates to stats (#86)

* feat: adding partial rr to analytics script

* refactor: standarizing decoded vars declaration

* fix: typo in sol file

* feat: adding stability fee to collat analytics

* fix: typo

* feat: redemption rate cards (#87)

* feat: adding partial rr to analytics script

* refactor: standarizing decoded vars declaration

* fix: typo in sol file

* feat: adding stability fee to collat analytics

* fix: typo

* feat: redemption rate cards and remove some  unused code

* feat: add iRate, pRate and improve ststyles and code

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* feat: bump sdk version

* feat: cleaning texts and adding cah faq 

* feat: cleaning texts and adding cah faq

* fix: rm empty

* feat: added borrow rates to collats (#88)

* feat: added borrow rates to collats

* feat: improve hai prices precision

* feat: add erc20 link in collaterals table

* feat: added button to auction debt (#91)

* feat: added button to auction debt

* fix: typos

* fix: debt amount to start auction

* fix: debt calculation

* fix: rm negative surplus

* fix: debt calculation

* fix: typo

* fix: types on useStartAuction hook

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>

* fix: faq typo and linter run (#93)

* fix: faq typo

* chore: run prettier

* feat: added collateral and global stats (#92)

* feat: added erc20 balance and debts

* feat: querying debt ceilings

* feat: added delayed oracle

* feat: added oracle title

* feat: improved rate multiplication calc

* feat: added collateral debt utilization

* feat: add collateralization ratio and debt utilization

* feat: querying SF in treasury

* feat: add scroll in collateral table

* feat: fix wad percentages

* feat: reordered table

* feat: add tooltips on collat table (#97)

* feat: add scroll in collateral table

* feat add tooltip on collat table

* feat: added descriptions

* fix: run prettier

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* feat: added description and fixed typo

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>

* feat: add contract descriptions (#98)

* feat: add contract descriptions

* feat: fix contract descriptions

* fix: addressing comments in pr

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* feat: fixes for rc-1.1 (#85)

* chore: use canary release

* fix: package.json

* fix: build

* fix: build

* fix: pkg

* feat: fixing interfaces for clean deployment

* feat: add example.env file

* feat: working with linked sdk

* feat: adding lockedAmount from safe engine

* fix: fetch user safes data

* fix: solidity interfaces

* feat: redeploy airdropper

* feat: canary sdk release

* fix: cah auctions card

* fix: batch scripting

* fix: systemCoin contract description

* fix: systemCoin contract description linter

* fix: collateral bid in recent txs

* fix: stability fee calc on safes

* chore: importing sdk v1.1

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* fix: surplus calculation (#102)

* fix: surplus calculation

* fix: rm gasLimit

* feat: mv solidity virtual contracts to sdk (#103)

* feat: mv solidity virtual contracts to sdk

* chore: bumping sdk version

* fix: bump sdk

* new modal opening, no qr codes appearing

* modals working, added more chains, added provider as replacement for library

* connect wallet modal now has old styles, making sure network is set in env, hardcode project id for wallet connect, remove ens logic

* more bug fixes, cleanup

* fix connectwithselect errors

* persist wallet, no console log, fix etherscan links

* connector modal opens on change, overlapping divs bug fix, no disconnect when MM

* license info, prettier

* modal fixes

* never show blank screen

* feat: implementing rc-1.2 sdk (#104)

* add arbitrum goerli network option

* update getProxy

* Using virtual data from sdk

* change create facilitator text

* remove yarn link

* Add FTRG

* Update earthly

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>
Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>
Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>
Co-authored-by: jahabeebs <jahgoreds@gmail.com>
Seroxdesign pushed a commit that referenced this issue Apr 30, 2024
* feat: added debt surplus and collateral auctions (#44)

* feat: add auction route

* chore: fix some texts and add temporary surplus image

* feat: add autions to navbar

* chore: add auction types

* feat: add auction components

* feat: add temporary useAuction hook

* chore: fix surplus icon

* feat: use hook for mocked values

* fix: error loading vaults with outdated sdk

* chore: add console.error

* feat: add call to sdk for events

* feat: add more auction files

* chore: remove example values and use sdk auction call

* feat: add approve token logic, temporary disabled

* feat: add more mocked values for auction state

* fix: logs and wallet error

* fix: helper function

* chore: remove temporary values from AuctionBlock

* chore: add new temporary value on auctionModel

* chore: better mocking on the auction hook

* chore: remove temporary commented code

* chore: remove temporary commented code

* chore: remove temporary commented code in AuctionsList

* chore: add space on AuctionBlock

* feat: search surplus and debt auctions separately

* feat: update sdk

* chore: use geb hook (#52)

* feat: implement auctions data  (#54)

* chore: use geb hook

* fix: approve logic

* feat: auctions config data fetch

* feat: accounting engine data

* feat: safeEngine data

* feat: implement surplus auction data

* feat: surplus bid functionality

* feat: debt auctions

* chore: fix buy and sell decimals on useAuction

* fix: start auction logic

* feat: update user hai and kite balances

* fix: approve logic and update list after bidding

* feat: get internal values

* fix: formatNumber function

* fix: bid in debt auctions

* fix: auctionPayments logic

* feat: batch coin protocol balance (#55)

* feat: batch coin protocol balance

* feat: save fetched values

---------

Co-authored-by: Ardy <ardy@defi.sucks>

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* feat: update sdk

* feat: settle auctions from the UI (#58)

* feat: use proxy when claim and fix debt error bug

* feat: settle auctions from the ui

* chore: log proxy address

* feat: update auctions after an action

* feat: fetch collateral auction data (#57)

* feat: fetch collateral auction data

* feat: implement collateral auctions section (#59)

* feat: update sdk + set empty list on change

* fix: undefined geb

* feat: auctions loading (#60)

* feat: auctions on state (#63)

* feat: auctions on state

* feat: switch statement

* feat: collateral auctions dropdown (#62)

* feat: auctions loading

* chore: temporary mocked auctions

* feat: collaterals dropdown

* feat: improve buy collateral modals

* feat: auctions on state

* feat: switch statement

* feat: update get collateral price contract

* fix: switch functions

* fix: contract variable names

* chore: update fetchCollateralAuctionData function

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: get collateral data implementation (#69)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: remove temporary any

* feat: initial amount

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: collateral auction max discount time

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>

* feat: collateral modals (#70)

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: approval logic

* feat: collateral auction checks

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: run prettier

* chore: update sdk

* fix: undo sellAmountParsed function changes

* fix: remove collateral conditionals on AuctionBlock component

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* chore: remove staked_token things and unused variables (#71)

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: remove staked_tokens things

* fix: remove unused vars

* chore: run prettier

* feat: optimize stone image

* feat: set isSubmitting to false when tx fails

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* fix: decimals, duplicated buy rows and update branch with dev (#72)

* style: improve buttons feedback (#46)

* feat: low decimals

* feat: fix token pricing

* fix: modify safe token price + hai balance

* fix: create safe token pricing

* style: add opacity on hover in safeList, back, deposit and repay buttons

* feat: fix back button logic and set deposit as default

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: airdrop claimer (#51)

* feat: airdrop claimer

* feat: better tx management

* fix: text

* fix: text

* fix: handle tx reject

* feat: fetch collateral auction data

* feat: implement collateral auctions section (#59)

* feat: update sdk + set empty list on change

* fix: undefined geb

* feat: auctions loading (#60)

* feat: auctions on state (#63)

* feat: auctions on state

* feat: switch statement

* feat: collateral auctions dropdown (#62)

* feat: auctions loading

* chore: temporary mocked auctions

* feat: collaterals dropdown

* feat: improve buy collateral modals

* feat: auctions on state

* feat: switch statement

* feat: update get collateral price contract

* fix: switch functions

* fix: contract variable names

* chore: update fetchCollateralAuctionData function

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: approval logic

* feat: collateral auction checks

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: remove staked_tokens things

* fix: remove unused vars

* chore: run prettier

* feat: optimize stone image

* feat: set isSubmitting to false when tx fails

* feat: remove duplicated buy items

* fix: remove more than 18 decimals on inputs

* chore: remove erc20 hai balance from coin internal balance

* chore: remove unused function

* fix: build

* fix: collateral input

* fix: remove log

* chore: rename variables

* fix: max buttons on buy collateral auctions

* fix: result values

* fix: auctions navbar on mobile

* chore: update pkg

* fix: debt bids

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* chore: remove logs

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* fix: modify safe inputs

* feat: updating sdk (#75)

* feat: virtually taxing collaterals before state querying (#64)

* feat: remove starter bidder and add Max texts (#78)

* feat: remove starter bidder

* feat: max texts on buy collateral modals

* feat: liquidate own safe (#77)

* feat: liquidate own safe

* feat: liquidate vault

* feat: liquidate vault

* feat: sdk

* feat: liquidate vault

* feat: liquidatable text + other hardcoded variables

* feat: pr fixes

* feat: wrap ether (#74)

* fix: modify safe inputs

* feat: wrap ether setup

* fix: close modal after deposit

* feat: use eth balance and update weth balance after wrap

* feat: leave 0.01 eth when the user click max

* feat: show eth balance on modal

* fix: remove classname

* fix: texts

* chore: rename files

* feat: better collateral auction max 

* feat: better cah max

* feat: better cah max

* feat: analytics tab 

* feat: analytics setup

* chore: remove some class names and add comments

* feat: adding batch analytics query contract

* feat: tables

* chore: remove log

* fix: list keys

* feat: use virtual analytic contract to fetch data

* fix: filter undefined contracts

* feat: adding debtAmount per collat (#82)

* feat: adding debtAmount per collat

* fix: typo

* feat: adding redemption rate query

* feat: debt column (#83)

* feat: adding debtAmount per collat

* fix: typo

* feat: adding redemption rate query

* feat: debt column

* feat: format numbers

* feat: use format function

* chore: hide locked amount

* style: cards

* style: cards width

* feat: adding descriptions to market and redemption prices

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* feat: adding redemption rates to stats (#86)

* feat: adding partial rr to analytics script

* refactor: standarizing decoded vars declaration

* fix: typo in sol file

* feat: adding stability fee to collat analytics

* fix: typo

* feat: redemption rate cards (#87)

* feat: adding partial rr to analytics script

* refactor: standarizing decoded vars declaration

* fix: typo in sol file

* feat: adding stability fee to collat analytics

* fix: typo

* feat: redemption rate cards and remove some  unused code

* feat: add iRate, pRate and improve ststyles and code

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* feat: bump sdk version

* feat: cleaning texts and adding cah faq 

* feat: cleaning texts and adding cah faq

* fix: rm empty

* feat: added borrow rates to collats (#88)

* feat: added borrow rates to collats

* feat: improve hai prices precision

* feat: add erc20 link in collaterals table

* feat: added button to auction debt (#91)

* feat: added button to auction debt

* fix: typos

* fix: debt amount to start auction

* fix: debt calculation

* fix: rm negative surplus

* fix: debt calculation

* fix: typo

* fix: types on useStartAuction hook

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>

* fix: faq typo and linter run (#93)

* fix: faq typo

* chore: run prettier

* feat: added collateral and global stats (#92)

* feat: added erc20 balance and debts

* feat: querying debt ceilings

* feat: added delayed oracle

* feat: added oracle title

* feat: improved rate multiplication calc

* feat: added collateral debt utilization

* feat: add collateralization ratio and debt utilization

* feat: querying SF in treasury

* feat: add scroll in collateral table

* feat: fix wad percentages

* feat: reordered table

* feat: add tooltips on collat table (#97)

* feat: add scroll in collateral table

* feat add tooltip on collat table

* feat: added descriptions

* fix: run prettier

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* feat: added description and fixed typo

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>

* install sdk

* feat: add contract descriptions (#98)

* feat: add contract descriptions

* feat: fix contract descriptions

* fix: addressing comments in pr

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* initial test

* fix icons

* feat: fixes for rc-1.1 (#85)

* chore: use canary release

* fix: package.json

* fix: build

* fix: build

* fix: pkg

* feat: fixing interfaces for clean deployment

* feat: add example.env file

* feat: working with linked sdk

* feat: adding lockedAmount from safe engine

* fix: fetch user safes data

* fix: solidity interfaces

* feat: redeploy airdropper

* feat: canary sdk release

* fix: cah auctions card

* fix: batch scripting

* fix: systemCoin contract description

* fix: systemCoin contract description linter

* fix: collateral bid in recent txs

* fix: stability fee calc on safes

* chore: importing sdk v1.1

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* rename haiBalance

* cleanup 1st attempt

* Install from registry

* sdk version

* text copy

* detectNetwork type error

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>
Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>
Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>
Seroxdesign pushed a commit that referenced this issue Apr 30, 2024
* feat: added debt surplus and collateral auctions (#44)

* feat: add auction route

* chore: fix some texts and add temporary surplus image

* feat: add autions to navbar

* chore: add auction types

* feat: add auction components

* feat: add temporary useAuction hook

* chore: fix surplus icon

* feat: use hook for mocked values

* fix: error loading vaults with outdated sdk

* chore: add console.error

* feat: add call to sdk for events

* feat: add more auction files

* chore: remove example values and use sdk auction call

* feat: add approve token logic, temporary disabled

* feat: add more mocked values for auction state

* fix: logs and wallet error

* fix: helper function

* chore: remove temporary values from AuctionBlock

* chore: add new temporary value on auctionModel

* chore: better mocking on the auction hook

* chore: remove temporary commented code

* chore: remove temporary commented code

* chore: remove temporary commented code in AuctionsList

* chore: add space on AuctionBlock

* feat: search surplus and debt auctions separately

* feat: update sdk

* chore: use geb hook (#52)

* feat: implement auctions data  (#54)

* chore: use geb hook

* fix: approve logic

* feat: auctions config data fetch

* feat: accounting engine data

* feat: safeEngine data

* feat: implement surplus auction data

* feat: surplus bid functionality

* feat: debt auctions

* chore: fix buy and sell decimals on useAuction

* fix: start auction logic

* feat: update user hai and kite balances

* fix: approve logic and update list after bidding

* feat: get internal values

* fix: formatNumber function

* fix: bid in debt auctions

* fix: auctionPayments logic

* feat: batch coin protocol balance (#55)

* feat: batch coin protocol balance

* feat: save fetched values

---------

Co-authored-by: Ardy <ardy@defi.sucks>

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* feat: update sdk

* feat: settle auctions from the UI (#58)

* feat: use proxy when claim and fix debt error bug

* feat: settle auctions from the ui

* chore: log proxy address

* feat: update auctions after an action

* feat: fetch collateral auction data (#57)

* feat: fetch collateral auction data

* feat: implement collateral auctions section (#59)

* feat: update sdk + set empty list on change

* fix: undefined geb

* feat: auctions loading (#60)

* feat: auctions on state (#63)

* feat: auctions on state

* feat: switch statement

* feat: collateral auctions dropdown (#62)

* feat: auctions loading

* chore: temporary mocked auctions

* feat: collaterals dropdown

* feat: improve buy collateral modals

* feat: auctions on state

* feat: switch statement

* feat: update get collateral price contract

* fix: switch functions

* fix: contract variable names

* chore: update fetchCollateralAuctionData function

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: get collateral data implementation (#69)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: remove temporary any

* feat: initial amount

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: collateral auction max discount time

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>

* feat: collateral modals (#70)

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: approval logic

* feat: collateral auction checks

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: run prettier

* chore: update sdk

* fix: undo sellAmountParsed function changes

* fix: remove collateral conditionals on AuctionBlock component

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* chore: remove staked_token things and unused variables (#71)

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: remove staked_tokens things

* fix: remove unused vars

* chore: run prettier

* feat: optimize stone image

* feat: set isSubmitting to false when tx fails

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* fix: decimals, duplicated buy rows and update branch with dev (#72)

* style: improve buttons feedback (#46)

* feat: low decimals

* feat: fix token pricing

* fix: modify safe token price + hai balance

* fix: create safe token pricing

* style: add opacity on hover in safeList, back, deposit and repay buttons

* feat: fix back button logic and set deposit as default

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: airdrop claimer (#51)

* feat: airdrop claimer

* feat: better tx management

* fix: text

* fix: text

* fix: handle tx reject

* feat: fetch collateral auction data

* feat: implement collateral auctions section (#59)

* feat: update sdk + set empty list on change

* fix: undefined geb

* feat: auctions loading (#60)

* feat: auctions on state (#63)

* feat: auctions on state

* feat: switch statement

* feat: collateral auctions dropdown (#62)

* feat: auctions loading

* chore: temporary mocked auctions

* feat: collaterals dropdown

* feat: improve buy collateral modals

* feat: auctions on state

* feat: switch statement

* feat: update get collateral price contract

* fix: switch functions

* fix: contract variable names

* chore: update fetchCollateralAuctionData function

---------

Co-authored-by: shaito <shaito@defi.sucks>

* feat: auctions timeout (#68)

* fix: empty auctions (#65)

* fix: empty auctions

* feat: empty auctions

* feat: claiming hai and kite (#67)

* feat: add collateralData into state

* feat: store collateral and hai input amounts

* fix: typo

* feat: get prices

* fix: typo

* feat: fill collateral auction data

* chore: update sdk

* feat: approval logic

* feat: collateral auction checks

* feat: update state after buy collateral

* fix: remove redundant code

* chore: remove unused code

* feat: cooldown text

* fix: cooldown text

* feat: collateral FAQ

* chore: remove comments

* chore: remove staked_tokens things

* fix: remove unused vars

* chore: run prettier

* feat: optimize stone image

* feat: set isSubmitting to false when tx fails

* feat: remove duplicated buy items

* fix: remove more than 18 decimals on inputs

* chore: remove erc20 hai balance from coin internal balance

* chore: remove unused function

* fix: build

* fix: collateral input

* fix: remove log

* chore: rename variables

* fix: max buttons on buy collateral auctions

* fix: result values

* fix: auctions navbar on mobile

* chore: update pkg

* fix: debt bids

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* chore: remove logs

---------

Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>

* fix: modify safe inputs

* feat: updating sdk (#75)

* feat: virtually taxing collaterals before state querying (#64)

* feat: remove starter bidder and add Max texts (#78)

* feat: remove starter bidder

* feat: max texts on buy collateral modals

* feat: liquidate own safe (#77)

* feat: liquidate own safe

* feat: liquidate vault

* feat: liquidate vault

* feat: sdk

* feat: liquidate vault

* feat: liquidatable text + other hardcoded variables

* feat: pr fixes

* feat: wrap ether (#74)

* fix: modify safe inputs

* feat: wrap ether setup

* fix: close modal after deposit

* feat: use eth balance and update weth balance after wrap

* feat: leave 0.01 eth when the user click max

* feat: show eth balance on modal

* fix: remove classname

* fix: texts

* chore: rename files

* feat: better collateral auction max 

* feat: better cah max

* feat: better cah max

* feat: analytics tab 

* feat: analytics setup

* chore: remove some class names and add comments

* feat: adding batch analytics query contract

* feat: tables

* chore: remove log

* fix: list keys

* feat: use virtual analytic contract to fetch data

* fix: filter undefined contracts

* feat: adding debtAmount per collat (#82)

* feat: adding debtAmount per collat

* fix: typo

* feat: adding redemption rate query

* feat: debt column (#83)

* feat: adding debtAmount per collat

* fix: typo

* feat: adding redemption rate query

* feat: debt column

* feat: format numbers

* feat: use format function

* chore: hide locked amount

* style: cards

* style: cards width

* feat: adding descriptions to market and redemption prices

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* feat: adding redemption rates to stats (#86)

* feat: adding partial rr to analytics script

* refactor: standarizing decoded vars declaration

* fix: typo in sol file

* feat: adding stability fee to collat analytics

* fix: typo

* feat: redemption rate cards (#87)

* feat: adding partial rr to analytics script

* refactor: standarizing decoded vars declaration

* fix: typo in sol file

* feat: adding stability fee to collat analytics

* fix: typo

* feat: redemption rate cards and remove some  unused code

* feat: add iRate, pRate and improve ststyles and code

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* feat: bump sdk version

* feat: cleaning texts and adding cah faq 

* feat: cleaning texts and adding cah faq

* fix: rm empty

* feat: added borrow rates to collats (#88)

* feat: added borrow rates to collats

* feat: improve hai prices precision

* feat: add erc20 link in collaterals table

* feat: added button to auction debt (#91)

* feat: added button to auction debt

* fix: typos

* fix: debt amount to start auction

* fix: debt calculation

* fix: rm negative surplus

* fix: debt calculation

* fix: typo

* fix: types on useStartAuction hook

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>

* fix: faq typo and linter run (#93)

* fix: faq typo

* chore: run prettier

* feat: added collateral and global stats (#92)

* feat: added erc20 balance and debts

* feat: querying debt ceilings

* feat: added delayed oracle

* feat: added oracle title

* feat: improved rate multiplication calc

* feat: added collateral debt utilization

* feat: add collateralization ratio and debt utilization

* feat: querying SF in treasury

* feat: add scroll in collateral table

* feat: fix wad percentages

* feat: reordered table

* feat: add tooltips on collat table (#97)

* feat: add scroll in collateral table

* feat add tooltip on collat table

* feat: added descriptions

* fix: run prettier

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* feat: added description and fixed typo

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>

* feat: add contract descriptions (#98)

* feat: add contract descriptions

* feat: fix contract descriptions

* fix: addressing comments in pr

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* feat: fixes for rc-1.1 (#85)

* chore: use canary release

* fix: package.json

* fix: build

* fix: build

* fix: pkg

* feat: fixing interfaces for clean deployment

* feat: add example.env file

* feat: working with linked sdk

* feat: adding lockedAmount from safe engine

* fix: fetch user safes data

* fix: solidity interfaces

* feat: redeploy airdropper

* feat: canary sdk release

* fix: cah auctions card

* fix: batch scripting

* fix: systemCoin contract description

* fix: systemCoin contract description linter

* fix: collateral bid in recent txs

* fix: stability fee calc on safes

* chore: importing sdk v1.1

---------

Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>

* fix: surplus calculation (#102)

* fix: surplus calculation

* fix: rm gasLimit

* feat: mv solidity virtual contracts to sdk (#103)

* feat: mv solidity virtual contracts to sdk

* chore: bumping sdk version

* fix: bump sdk

* new modal opening, no qr codes appearing

* modals working, added more chains, added provider as replacement for library

* connect wallet modal now has old styles, making sure network is set in env, hardcode project id for wallet connect, remove ens logic

* more bug fixes, cleanup

* fix connectwithselect errors

* persist wallet, no console log, fix etherscan links

* connector modal opens on change, overlapping divs bug fix, no disconnect when MM

* license info, prettier

* modal fixes

* never show blank screen

* feat: implementing rc-1.2 sdk (#104)

* add arbitrum goerli network option

* update getProxy

* Using virtual data from sdk

* change create facilitator text

* remove yarn link

* Add FTRG

* Update earthly

---------

Co-authored-by: Ardy <116569704+0xArdy@users.noreply.github.com>
Co-authored-by: shaito <shaito@defi.sucks>
Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com>
Co-authored-by: Weißer Hase <wei3erHase@protonmail.com>
Co-authored-by: jahabeebs <jahgoreds@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants