Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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>
- Loading branch information