From 2e7eece9af0dcd1e81d740754e20ab017f6c3aff Mon Sep 17 00:00:00 2001 From: Zak Date: Fri, 5 Apr 2024 16:00:15 +0100 Subject: [PATCH] feat: add temp minting fee notice --- src/assets/ram.png | Bin 0 -> 3941 bytes src/components/collateral/Debt.tsx | 1260 ++++++++++++++++------------ 2 files changed, 708 insertions(+), 552 deletions(-) create mode 100644 src/assets/ram.png diff --git a/src/assets/ram.png b/src/assets/ram.png new file mode 100644 index 0000000000000000000000000000000000000000..e88e0518a4bdbc945ccbaa4831fa70c3889b338c GIT binary patch literal 3941 zcmV-r51R0aP)&&fN_}A&<@!+mR%MPOY`!k+x8I2n5HeyrfW|Jc0uZ59x?S3Nlum0SaxkLQAxx zGa?Eztq7wdYFn){mQYPXXIdLVz-p(G2V$po#!VCqWcQx_=bU@)W3vg_-Fx#O`%N}` zALpKX?sxzDpYQ+A*dSOg3Wv=(8& zNt2@%25&%ndoB797(TxmR+>3{>3l6=IDA{wnkFQRvdCUOmg=8;9N z@RQiCz&RQic%{kAgS|m|4-%c9kMPBfjN{&(BDXUL(mBi>h=nSFwg&V7dVuJ@LvTWH ze!z?wJAx)WK%)CN!5v`kHKU=5pa>5k2xJW=a@$`r7@I*PXQN+$O(3(I2g7IqH+@$u zK3jBlF$?o&snRm^V+ggvqimI**6p7~ODpDw$b!F)ehxB}VrKA_JQThJGj;+#zz3p* zFXq26fbIRqO>_q=n+Tu53?rYL=AV!z(sUitRlG!%l;SFel!GxgJsnq)2GK-vh#zAN z#TWocmuv$mA**yCkt`stRa~>o#iVjPl7=9e9qS+3I0*2F$@uhSlU7L*J+RzGXGq13 zBtdkBWH*u}yW2#w(BQKflD(k7rj|#qA+jTpE0yh@jt&q0wZSk08F)Ze`ekNZ&hC!R zzB17i@rhsr8FT_Rfg;G3D@Bl3a2>)goBtTN3ZuIqB@#8h*_FTUQb)@KQHJDhfaMFW zx+>AR>j-77q%`Nf$e>#giKwnzNGGl%Bjr+qa3R-@Or$~*yN)p5m?1e8uzV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-8!Q0qRsY@ykLcC)n5Jftjpcx1qCio$c>(0u2v~ulD6>4Rs9+@JKAoR(4gQ>o2d0 zMk5&)(hV^76Mp&9>s=MO;nMua7&K(abCRSYyYl7hQ%BlQ{obV7OJfneDTwds&7 zklsft1lda7T+P|O3UkOcX^|}8%MadgGxj<~kS&ynrJ&|&`7IVoJy66agORqjHl&Hv zeRLv_-)7PN{}WC!K_qe)X@Yi)Df|P;gb{g(pfj$RGaD_QEdoN`f z0!;@8PqYRR9*UuiixKu-*WNuxutv`j?Ls)5U1l=zg@$Ze&ygtvg zULo2IMLM6yI7&G%4ZcDAPB=Ts!Nip0%HAN?jb0}@9$A#MGEG*@Nwui_H_PY3>gCs6 z#3!=IO2r3K86u4FS|T;VOtaQ7P}| = ({ const HUNDRED_PC = 100_000n; const [stage, setStage] = useState(''); + // TEMP MINTING FEE vvvvv + + const [mintModalOpen, setMintModalOpen] = useState(false); + + useEffect(() => { + const tempMinting = localStorage.getItem("tempMinting202404"); + if (!tempMinting) { + setMintModalOpen(true) + } + }, []); + + const handleCloseMintModal = () => { + localStorage.setItem("tempMinting202404", 'true'); + setMintModalOpen(false); + }; + + // ^^^^ + const incrementCounter = () => { getCounter(1); }; @@ -394,123 +414,236 @@ const Debt: React.FC = ({ ]; return ( - - - - seurologo + <> + {/* TEMP MINTING FEE */} + + <> - Smart Vault #{vaultID} + Temporary 5% Minting Fee Notice + + - EUROs outstanding: {formatEther(debtValue.toString())} + In our ongoing efforts to lift the purchasing power of EUROs and fortify EUROs liquidity, a temporary one time 5% fee on new debt minting has been introduced. This is a temporary strategic step and is aimed at ensuring the stability strengthening the value of EUROs for all users during these early days of the protocol. - - + + There are currently very strong LP incentives to add to the EUROs/EURA pools on Ramses DEX. To take advantage of these we encourage you to acquire EUROs off the Ramses market to place in those pools. + + + + + - - - - + + - - + + + handleClick(5)} > - Repay - - - - {activeElement === 4 ? ( - - ) : ( - <> + {activeElement === 4 ? ( = ({ borderRadius: "10px", paddingLeft: "0.5rem", }} - placeholder="Amount of EUROs you want to repay " + placeholder="Amount of EUROs to borrow" type="number" onChange={handleAmount} autoFocus ref={inputRef} /> - - - )} - - - - {activeElement === 4 - ? borrowValues.map((item) => ( - + - - {item.key} - - - {item.value} - - - )) - : repayValues.map((item) => ( - + - -
- - - {modalStep === 1 ? ( - + {activeElement === 4 ? "Withdraw" : "Repay"} + + +
+ + + {modalStep === 1 ? ( - 1 - {" "} - + + 1 + {" "} + + + 2 + + - 2 + + Authorize + {" "} + + Send + - - + + For optimal security and transparency, trustworthy DApps + require you to set a spending limit (cap). This helps regulate + the maximum amount your wallet can use for a fee. + + + We suggest a cap of {formatEther(repayFee)} for this transaction. This + fee ({toPercentage(currentVault?.burnFeeRate)}%) is rewarded to TST stakers, helping the DAO grow + and build more features.{" "} + {" "} + + Interested in receiving a share of all fees collected?{" "} +

{" "} + - Authorize -
{" "} - + and{""} + + {" "} + stake them.{" "} + + - Send -
-
+ {" "} +
+ - {/* stepper ends */} - - Confirm Your EUROs Spending cap - - - For optimal security and transparency, trustworthy DApps - require you to set a spending limit (cap). This helps regulate - the maximum amount your wallet can use for a fee. - - - We suggest a cap of {formatEther(repayFee)} for this transaction. This - fee ({toPercentage(currentVault?.burnFeeRate)}%) is rewarded to TST stakers, helping the DAO grow - and build more features.{" "} - {" "} - - Interested in receiving a share of all fees collected?{" "} -

{" "} - - Simply get yourself some TST{" "} - - and{""} - - {" "} - stake them.{" "} - - - {" "} - -
- - ) : ( - + ) : ( - - {" "} - + + + {" "} + + + 2 + + - 2 + + Authorize + {" "} + + Send + - - - Authorize - {" "} - - Send - - + Confirm Your Loan Repayment + + + The funds will repay your loan and the small fee will support + the DAO (TST stakers). + - - Confirm Your Loan Repayment - - - The funds will repay your loan and the small fee will support - the DAO (TST stakers). - - - )} - -
- - <> - canvas': { - zIndex: "0!important", - } - }}> - + )} - + + + <> + canvas': { + zIndex: "0!important", + } + }}> + + - - CONGRATULATIONS! - - - - - You just borrowed {amount} EUROs for 0% Interest! - - - Now you can buy tokens
- at a 9.91% discount
- by placing your EUROs
- into Liquidation Pools! -
- - + + CONGRATULATIONS! + +
+ + + You just borrowed {amount} EUROs for 0% Interest! + + + Now you can buy tokens
+ at a 9.91% discount
+ by placing your EUROs
+ into Liquidation Pools! +
+ + +
- - -
-
- + +
+
+
+ ); };