{
}
title={
@@ -142,6 +143,7 @@ export const DashboardTopPanel = () => {
{currentAccount && user?.healthFactor !== '-1' && (
}
title={
@@ -178,6 +180,7 @@ export const DashboardTopPanel = () => {
{currentAccount && claimableRewardsUsd > 0 && (
Available rewards}
icon={}
loading={loading}
diff --git a/src/modules/dashboard/LiquidationRiskParametresModal/LiquidationRiskParametresModal.tsx b/src/modules/dashboard/LiquidationRiskParametresModal/LiquidationRiskParametresModal.tsx
index 42534832..cd17108f 100644
--- a/src/modules/dashboard/LiquidationRiskParametresModal/LiquidationRiskParametresModal.tsx
+++ b/src/modules/dashboard/LiquidationRiskParametresModal/LiquidationRiskParametresModal.tsx
@@ -55,7 +55,7 @@ export const LiquidationRiskParametresInfoModal = ({
liquidations you can supply more collateral or repay borrow positions.
{' '}
{
{user?.isInIsolationMode && (
Borrowing power and assets are limited due to Isolation mode.
-
+
Learn More
diff --git a/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx b/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx
index 361d6909..b055ac22 100644
--- a/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx
+++ b/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsList.tsx
@@ -247,7 +247,7 @@ export const SupplyAssetsList = () => {
Collateral usage is limited because of isolation mode.{' '}
-
+
Learn More
diff --git a/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsListItem.tsx b/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsListItem.tsx
index f8954811..62fc17e3 100644
--- a/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsListItem.tsx
+++ b/src/modules/dashboard/lists/SupplyAssetsList/SupplyAssetsListItem.tsx
@@ -28,11 +28,10 @@ export const SupplyAssetsListItem = ({
isActive,
isFreezed,
detailsAddress,
- showSwap,
hideSupply,
}: DashboardReserve) => {
const { currentMarket } = useProtocolDataContext();
- const { openSupply, openPSMSwap } = useModalContext();
+ const { openSupply } = useModalContext();
// Hide the asset to prevent it from being supplied if supply cap has been reached
const { supplyCap: supplyCapUsage } = useAssetCaps();
@@ -71,13 +70,13 @@ export const SupplyAssetsListItem = ({
{!hideSupply && (
)}
- {showSwap && (
+ {/* {showSwap && (
- )}
- {!(showSwap && !hideSupply) && (
+ )} */}
+ {!hideSupply && (
diff --git a/src/modules/reserve-overview/TokenLinkDropdown.tsx b/src/modules/reserve-overview/TokenLinkDropdown.tsx
index 755f80cd..ac90dd5b 100644
--- a/src/modules/reserve-overview/TokenLinkDropdown.tsx
+++ b/src/modules/reserve-overview/TokenLinkDropdown.tsx
@@ -82,7 +82,7 @@ export const TokenLinkDropdown = ({ poolReserve, downToSM }: TokenLinkDropdownPr
>
- {'p' + poolReserve.symbol}
+ {'sl' + poolReserve.symbol}
{poolReserve.borrowingEnabled && (
diff --git a/src/modules/terms-of-service/TOSContent.tsx b/src/modules/terms-of-service/TOSContent.tsx
index 5fee4766..ce4084af 100644
--- a/src/modules/terms-of-service/TOSContent.tsx
+++ b/src/modules/terms-of-service/TOSContent.tsx
@@ -60,16 +60,16 @@ const TOSContent = (): JSX.Element => {
be at least eighteen years of age, of sound mental capacity and have all technical
knowledge necessary or advisable to understand and evaluate the risks of the Site and
- Plend;
+ Superlend;
agree that the Site is provided for informational purposes only and is not directly or
- indirectly in control of or capable of interacting with Etherlink Mainnet, Plend Altchains
+ indirectly in control of or capable of interacting with Etherlink Mainnet, PlSuperlendend Altchains
and related Blockchain Systems or performing or effecting any transactions on your behalf;
agree that the Site is only being provided as an aid to your own independent research and
- evaluation of Plend and that no representation or warranty is being made as to the
+ evaluation of Superlend and that no representation or warranty is being made as to the
accuracy or completeness of information on the Site;
@@ -87,7 +87,7 @@ const TOSContent = (): JSX.Element => {
not hold the Site Operator or any of its representatives or affiliates liable for any
- damages you suffer in connection with your use of the Site or Plend;
+ damages you suffer in connection with your use of the Site or Superlend;
waive your right to initiate or participate in class actions relating to the Site; and
@@ -118,70 +118,70 @@ const TOSContent = (): JSX.Element => {
the Etherlink Mainnet;
- the Plend Smart Contract System, Plend Smart Contract Protocol, Plend Mainnet, and
- Plend Altchains;
+ the Superlend Smart Contract System, Superlend Smart Contract Protocol, Superlend Mainnet, and
+ Superlend Altchains;
tokens that exist and have been or may be made available for withdrawal or “borrowing”
- by third parties known as “lenders” or “depositors” in connection with the Plend Smart
+ by third parties known as “lenders” or “depositors” in connection with the Superlend Smart
Contract System;
third-party smart contract systems that act as “borrowers” or “lenders” in
- contract-to-contract (C2C) transactions of the Plend Smart Contract Systems;
+ contract-to-contract (C2C) transactions of the Superlend Smart Contract Systems;
the implied or express fair market prices of tokens, which may be denominated in terms
of other tokens; and
- transaction records relating to the Plend Smart Contract System.
+ transaction records relating to the Superlend Smart Contract System.
The Site also offers interaction methods whereby the User can indicate a transaction the
- User would like to perform in connection with the Plend Smart Contract System (such as
+ User would like to perform in connection with the Superlend Smart Contract System (such as
swapping one token for another).
When used in this way, the Site can generate a draft transaction message which the User
can independently use in conjunction with a third-party wallet application or device to
- conduct transactions on Etherlink Mainnet or Plend Altchains.
+ conduct transactions on Etherlink Mainnet or Superlend Altchains.
- About Plend
+ About Superlend
- The Plend Smart Contract Protocol is software source code freely licensed to the public,
+ The Superlend Smart Contract Protocol is software source code freely licensed to the public,
which provides a decentralized “credit” protocol through which tokens can be ‘loaned'
- and ‘borrowed'. The Plend Smart Contract System is a copy of the Plend Smart Contract
+ and ‘borrowed'. The Superlend Smart Contract System is a copy of the Superlend Smart Contract
Protocol that has been compiled to bytecode and permanently associated with one or more
- specific public addresses on Etherlink Mainnet and Plend Altchains. Through a compatible
+ specific public addresses on Etherlink Mainnet and Superlend Altchains. Through a compatible
third-party wallet application or device, Etherlink Mainnet Node or node compatible with
- a Plend Altchain, as applicable, any User may pay Etherlink Mainnet Validators or other
+ a Superlend Altchain, as applicable, any User may pay Etherlink Mainnet Validators or other
validators on the appropriate Blockchain System to operate and record the results of the
- Plend Smart Contract System in accordance with the User's instructions, thus
+ Superlend Smart Contract System in accordance with the User's instructions, thus
effectuating token transactions.
- Relationship to Plend Smart Contract System
+ Relationship to Superlend Smart Contract System
- Using Plend Mainnet, Plend Altchains, Etherlink Mainnet, or the Plend Smart Contract
+ Using Superlend Mainnet, Superlend Altchains, Etherlink Mainnet, or the Superlend Smart Contract
System does not require use of the Site. The Site aggregates and publishes publicly
- available information about the Plend Smart Contract System in a user- friendly and
+ available information about the Superlend Smart Contract System in a user- friendly and
convenient format. Such information is also independently available from other
sources—for example, a person may directly review transaction history, account balances
- and the Plend Smart Contract System on a compatible block explorer for Etherlink Mainnet
- or a Plend Altchain.
+ and the Superlend Smart Contract System on a compatible block explorer for Etherlink Mainnet
+ or a Superlend Altchain.
By combining publicly available information with the User's interactions with the Site,
- the Site can draft standard transaction messages compatible with the Plend Smart
+ the Site can draft standard transaction messages compatible with the Superlend Smart
Contract System which are designed to accomplish the User's operational goals as
expressed through the interactions. If the User so wishes, the User may broadcast such
messages in order to initiate token transactions.
@@ -190,12 +190,12 @@ const TOSContent = (): JSX.Element => {
All draft transaction messages are delivered by the Site via API to a compatible
third-party wallet application or device selected by the User after pressing the
“Connect Wallet” (or similar) button on the Site. The User must personally review and
- authorize all transaction messages that the User wishes to send to Plend Mainnet, Plend
+ authorize all transaction messages that the User wishes to send to Superlend Mainnet, Superlend
Altchains or other blockchain systems; this requires the User to sign the relevant
transaction message with a private cryptographic key inaccessible to the Site. The User-
authorized message will then be broadcast to Validators through the wallet application
or device and the User may pay a network fee to have the Validators apply the
- transaction message to the Plend Smart Contract System and record the results on the
+ transaction message to the Superlend Smart Contract System and record the results on the
appropriate blockchain—resulting in a token transaction being completed on that
blockchain.
@@ -204,7 +204,7 @@ const TOSContent = (): JSX.Element => {
store or have access to or control over any tokens, private keys, passwords, accounts or
other property of the User, and are not capable of performing transactions or sending
transaction messages on behalf of the User. The Site does not hold and cannot purchase,
- sell or trade any tokens. All transactions relating to the Plend Smart Contract System
+ sell or trade any tokens. All transactions relating to the Superlend Smart Contract System
are effected and recorded solely through the interactions of the User with the
respective Validators, who are not under the control of or affiliated with the Site
Operator or the Site.
@@ -217,7 +217,7 @@ const TOSContent = (): JSX.Element => {
Important disclaimers and disclosures regarding the subject material of the Site can be
found in Section 6. You should familiarize yourself with these disclaimers and
- disclosures and conduct your own thorough due diligence into the Plend Smart Contract
+ disclosures and conduct your own thorough due diligence into the Superlend Smart Contract
Protocol before using the Site.
@@ -273,37 +273,37 @@ const TOSContent = (): JSX.Element => {
Mainnet Nodes selected as a validator for Etherlink Mainnet at such time.
- “Plend” means, collectively, the Plend Smart Contract Protocol, Plend
- Mainnet, Plend Smart Contract Systems, and Plend Altchains.
+ “Superlend” means, collectively, the Superlend Smart Contract Protocol, Superlend
+ Mainnet, Superlend Smart Contract Systems, and Superlend Altchains.
- “Plend Altchains” means Plend Smart Contract Systems deployed to
+ “Superlend Altchains” means Superlend Smart Contract Systems deployed to
Blockchain Systems other than the Etherlink Mainnet.
- “Plend Mainnet” means Plend Smart Contract Systems deployed to
+ “Superlend Mainnet” means Superlend Smart Contract Systems deployed to
Etherlink Mainnet.
- “Plend Smart Contract Protocol” means the source code for
+ “Superlend Smart Contract Protocol” means the source code for
Blockchain-based smart contracts at{' '}
-
- https://github.com/Plenty-network/plend-core-contracts
+
+ https://github.com/Plenty-network/Superlend-core-contracts
{' '}
- intended to be deployed to Etherlink Mainnet or Plend Altchains.
+ intended to be deployed to Etherlink Mainnet or Superlend Altchains.
- “Plend Smart Contract Systems” means all blockchain-based smart
- contract bytecodes that: (i) are compiled from the Plend Smart Contract Protocol (or
+ “Superlend Smart Contract Systems” means all blockchain-based smart
+ contract bytecodes that: (i) are compiled from the Superlend Smart Contract Protocol (or
any part thereof); and (ii) are deployed to production Blockchain Systems.
“Site” means the web site, web pages, web applications and
information and software available at or accessible through the URLs{' '}
- https://www.Plendprotocol.io/,{' '}
- https://app.Plendprotocol.io/,{' '}
- https://docs.Plendprotocol.io/ or
- any sub-URL of any such URL and any other Plend-related website or web application
+ https://www.Superlendprotocol.io/,{' '}
+ https://app.Superlendprotocol.io/,{' '}
+ https://docs.Superlendprotocol.io/ or
+ any sub-URL of any such URL and any other Superlend-related website or web application
maintained by the Site Operator.
@@ -368,8 +368,8 @@ const TOSContent = (): JSX.Element => {
No Site Fees; Third-Party Fees Irreversible
- There are no fees or charges for use of the Site. Use of the Plend Smart Contract
- System and use of Plend Mainnet and Plend Altchains are subject to third-party
+ There are no fees or charges for use of the Site. Use of the Superlend Smart Contract
+ System and use of Superlend Mainnet and Superlend Altchains are subject to third-party
transaction fees. The Site Operator does not receive such fees and has no ability to
reverse or refund any amounts paid in error.
@@ -392,28 +392,28 @@ const TOSContent = (): JSX.Element => {
The Site Operator has no obligation to ensure that the Site is a complete and
- accurate source of all information relating to the Plend Smart Contract System,
- Plend Mainnet, Plend Altchains or any other subject matter. The Site does not
+ accurate source of all information relating to the Superlend Smart Contract System,
+ Superlend Mainnet, Superlend Altchains or any other subject matter. The Site does not
necessarily display all tokens that are available for trading in connection with the
- Plend Smart Contract System or Plend Mainnet or Plend Altchains. Even if the Site
+ Superlend Smart Contract System or Superlend Mainnet or Superlend Altchains. Even if the Site
currently displays a particular token or token pair, the Site may discontinue
tracking and publishing information about that token or token pair at any time, in
the Site Operator's sole and absolute discretion. In the event of such a
discontinuation, Users may need to rely on third-party resources such as block
- explorers or Etherlink Mainnet Nodes, or applicable node for a Plend Altchains, in
+ explorers or Etherlink Mainnet Nodes, or applicable node for a Superlend Altchains, in
order to get equivalent information, and, depending on the User's level of expertise
and the quality of such third-party resources, this may result in the User incurring
financial losses due to delays or mistakes in processing information or
transactions.
- The Plend Smart Contract Protocol is available under a free open-source license, and
+ The Superlend Smart Contract Protocol is available under a free open-source license, and
the Site Operator does not have proprietary or exclusive rights in all copies or
- derivatives thereof. It is possible that additional copies of the Plend Smart
+ derivatives thereof. It is possible that additional copies of the Superlend Smart
Contract Protocol or derivatives thereof will be deployed to other Blockchain
- Systems in the future by any person, resulting in the existence of multiple ‘Plend-
+ Systems in the future by any person, resulting in the existence of multiple ‘Superlend-
branded' smart contract systems. The Site Operator is under no obligation to publish
- information for all such copies of the Plend Smart Contract Protocol or to warn
+ information for all such copies of the Superlend Smart Contract Protocol or to warn
Users regarding the existence of such alternatives.
@@ -486,7 +486,7 @@ const TOSContent = (): JSX.Element => {
The software code for the Site is available at https://github.com/plentynetwork and
- is licensed for use in connection with the Plend Smart Contract System, Etherlink
+ is licensed for use in connection with the Superlend Smart Contract System, Etherlink
Mainnet and Altchains.
@@ -505,10 +505,10 @@ const TOSContent = (): JSX.Element => {
- Plend Smart Contract Protocol
+ Superlend Smart Contract Protocol
- The Plend Smart Contract Protocol will be available in various repositories at
+ The Superlend Smart Contract Protocol will be available in various repositories at
GITHUBLINK, and will be subject to any licenses set forth in each such repository,
as applicable.
@@ -678,8 +678,8 @@ const TOSContent = (): JSX.Element => {
User is not, (and, if User is an entity, User is not owned or controlled by any
other person who is), acting, directly or indirectly, on behalf of any other person
who is, located, ordinarily resident, organized, established, or domiciled in the
- United States or any country where use of the Plend Smart Contract System, Plend
- Mainnet, Plend Altchains or related activities is illegal, prohibited, or requires a
+ United States or any country where use of the Superlend Smart Contract System, Superlend
+ Mainnet, Superlend Altchains or related activities is illegal, prohibited, or requires a
permit or license. User is not (and, if User is an entity, User is not owned or
controlled by any other person who is) acting, directly or indirectly, on behalf of
any other person who is: in contravention of any applicable laws and regulations,
@@ -699,7 +699,7 @@ const TOSContent = (): JSX.Element => {
writing that it is such a person, conduct further due diligence and determines that
the User shall be permitted to use the Site; or as trustee, agent, representative or
nominee for a foreign shell bank. The tokens or other funds User uses to participate
- in the Plend Smart Contract System, Plend Mainnet or Plend Altchains are not derived
+ in the Superlend Smart Contract System, Superlend Mainnet or Superlend Altchains are not derived
from, and do not otherwise represent the proceeds of, any activities done in
violation or contravention of any law.
@@ -710,12 +710,12 @@ const TOSContent = (): JSX.Element => {
User is knowledgeable, experienced and sophisticated in using and evaluating
- blockchain and related technologies and assets, including Plend Altchains, tokens,
+ blockchain and related technologies and assets, including Superlend Altchains, tokens,
yield-generating smart contract systems, automated market making smart contract
systems, bonding curve systems and “smart contracts” (runtime bytecode deployed to
- Plend Altchains or another blockchain). User has conducted its own thorough
- independent investigation and analysis of the Plend Smart Contract System, Plend
- Mainnet, Plend Altchains and the other matters contemplated by these Terms, and has
+ Superlend Altchains or another blockchain). User has conducted its own thorough
+ independent investigation and analysis of the Superlend Smart Contract System, Superlend
+ Mainnet, Superlend Altchains and the other matters contemplated by these Terms, and has
not relied upon any information, statement, omission, representation or warranty,
express or implied, written or oral, made byor on behalf of Site Operator in
connection therewith, except as expressly set forth by Site Operator in these Terms.
@@ -770,11 +770,11 @@ const TOSContent = (): JSX.Element => {
No Responsibility for Tokens; No Guarantee of Uniqueness or IP
- Site Operator has no responsibility for the tokens traded by Users on the Plend
- Smart Contract System or Plend Mainnet or Plend Altchains. Site Operator does not
+ Site Operator has no responsibility for the tokens traded by Users on the Superlend
+ Smart Contract System or Superlend Mainnet or Superlend Altchains. Site Operator does not
investigate and cannot guarantee or warrant the authenticity, originality,
uniqueness, marketability, legality or value of any token traded by Users on the
- Plend Smart Contract System or Plend Mainnet or Plend Altchains, even if information
+ Superlend Smart Contract System or Superlend Mainnet or Superlend Altchains, even if information
about such token is available on the Site.
@@ -848,13 +848,13 @@ const TOSContent = (): JSX.Element => {
Certain Risks of Blockchain Technology. The technologies
relevant to the Site depend on public peer-to-peer networks such as Etherlink
- Mainnet and the Plend Altchains that are not under the control or influence of
+ Mainnet and the Superlend Altchains that are not under the control or influence of
Site Operator and are subject to many risks and uncertainties. Such technologies
- include the Plend Smart Contract System, which Site Operator has no ability to
+ include the Superlend Smart Contract System, which Site Operator has no ability to
change, other than ceasing to display information about certain “smart contracts”
or adding information about new “smart contracts”. Users are solely responsible
for the safekeeping of the private key associated with the blockchain address used
- in connection with the Plend Smart Contract System. Site Operator will not be able
+ in connection with the Superlend Smart Contract System. Site Operator will not be able
to restore or issue any refund in respect of property lost or frozen due to loss
of private keys or otherwise. If a User is not able to spend or use tokens due to
loss or theft of the corresponding private key or otherwise, a User will be unable
@@ -862,14 +862,14 @@ const TOSContent = (): JSX.Element => {
Certain Risks of Smart Contract Technology. Digital
- assets relevant to the Site depend on the Plend Smart Contract System or other
- smart contracts deployed to Plend Altchains or other blockchain systems, or on the
+ assets relevant to the Site depend on the Superlend Smart Contract System or other
+ smart contracts deployed to Superlend Altchains or other blockchain systems, or on the
Etherlink Mainnet, each of which may be coded or deployed by persons other than
- Site Operator. Etherlink Mainnet, Plend Altchains, and other Blockchain Systems,
+ Site Operator. Etherlink Mainnet, Superlend Altchains, and other Blockchain Systems,
and, once deployed to a Blockchain System, the code of smart contracts, including
- the Plend Smart Contract System, typically cannot be modified, or can only be
- modified in limited ways. In the event that the Etherlink Mainnet, Plend
- Altchains, Plend Smart Contract System or other smart contracts or blockchain
+ the Superlend Smart Contract System, typically cannot be modified, or can only be
+ modified in limited ways. In the event that the Etherlink Mainnet, Superlend
+ Altchains, Superlend Smart Contract System or other smart contracts or blockchain
systems are adversely affected by malfunctions, bugs, defects, malfunctions,
hacking, theft, attacks, negligent coding or design choices, or changes to the
applicable protocol rules, Users may be exposed to a risk of total loss and
@@ -885,17 +885,17 @@ const TOSContent = (): JSX.Element => {
is generated by speculators and investors seeking to profit from the short- or
long-term holding of blockchain assets. The market value of any token may decline
below the price for which a User acquires such asset through the Etherlink
- Mainnet, Plend Altchains or Plend Smart Contract System or on any other system.
+ Mainnet, Superlend Altchains or Superlend Smart Contract System or on any other system.
User acknowledges and agrees that the costs and speeds of transacting with
- cryptographic and blockchain-based systems such as the Etherlink Mainnet, Plend
- Altchains and Plend Smart Contract System are variable and may increase or
+ cryptographic and blockchain-based systems such as the Etherlink Mainnet, Superlend
+ Altchains and Superlend Smart Contract System are variable and may increase or
decrease dramatically at any time, resulting in prolonged inability to access or
use any tokens.
Regulatory Uncertainty. Blockchain technologies and
digital assets are subject to many legal and regulatory uncertainties, and the
- Etherlink Mainnet, Plend Altchains, Plend Smart Contract System or any tokens
+ Etherlink Mainnet, Superlend Altchains, Superlend Smart Contract System or any tokens
could be adversely impacted by one or more regulatory or legal inquiries, actions,
suits, investigations, claims, fines or judgments, which could impede or limit the
ability of User to continue the use and enjoyment of such assets and technologies.
@@ -903,13 +903,13 @@ const TOSContent = (): JSX.Element => {
Cryptography Risks. Cryptography is a progressing field.
Advances in code cracking or technical advances such as the development of quantum
- computers may present risks to Blockchain Systems, the Etherlink Mainnet, Plend
- Altchains, Plend Smart Contract System or tokens, including the theft, loss or
+ computers may present risks to Blockchain Systems, the Etherlink Mainnet, Superlend
+ Altchains, Superlend Smart Contract System or tokens, including the theft, loss or
inaccessibility thereof.
- Fork Handling. Etherlink Mainnet, Plend Altchains, the
- Plend Smart Contract System, and all tokens may be subject to “forks.” Forks occur
+ Fork Handling. Etherlink Mainnet, Superlend Altchains, the
+ Superlend Smart Contract System, and all tokens may be subject to “forks.” Forks occur
when some or all persons running the software clients for a particular blockchain
system adopt a new client or a new version of an existing client that: (i) changes
the protocol rules in backwards-compatible or backwards-incompatible manner that
@@ -929,10 +929,10 @@ const TOSContent = (): JSX.Element => {
obligation or liability to a User if such response (or lack of such response) acts
to a User detriment. Without limiting the generality of the foregoing, Site
Operator's possible and permissible responses to a fork may include: (i) honoring
- the Etherlink Mainnet, Plend Altchains, Plend Smart Contract System and tokens on
- both chains;(ii) honoring the Etherlink Mainnet, Plend Altchains, Plend Smart
+ the Etherlink Mainnet, Superlend Altchains, Superlend Smart Contract System and tokens on
+ both chains;(ii) honoring the Etherlink Mainnet, Superlend Altchains, Superlend Smart
Contract System and tokens on only one of the chains; (iii) honoring the Etherlink
- Mainnet, Plend Altchains, Plend Smart Contract System and tokens in different
+ Mainnet, Superlend Altchains, Superlend Smart Contract System and tokens in different
respects or to a different extent on both chains; or (iv) any other response or
policy or procedure, as determined by Site Operator in its sole and absolute
discretion. Each User assumes full responsibility to independently remain apprised
@@ -941,17 +941,17 @@ const TOSContent = (): JSX.Element => {
Essential Third-Party Software Dependencies. The
- Etherlink Mainnet, Plend Altchains, Plend Smart Contract System and other relevant
+ Etherlink Mainnet, Superlend Altchains, Superlend Smart Contract System and other relevant
Blockchain Systems and smart contracts are public software utilities which are
accessible directly through any compatible node or indirectly through any
compatible “wallet” application (such as the web browser plugin MetaMask) which
- interacts with such a node. Interacting with the Plend Smart Contract System does
+ interacts with such a node. Interacting with the Superlend Smart Contract System does
not require use of the Site, but the Site provides a convenient and user- friendly
- method of reading and displaying data from the Plend Smart Contract System and
- generating standard transaction messages compatible with the Plend Smart Contract
- System. Because the Site does not provide wallet software or nodes for Plend
- Mainnet or Plend Altchains, such software constitutes an essential third-party or
- user dependency without which the Plend Smart Contract System cannot be utilized,
+ method of reading and displaying data from the Superlend Smart Contract System and
+ generating standard transaction messages compatible with the Superlend Smart Contract
+ System. Because the Site does not provide wallet software or nodes for Superlend
+ Mainnet or Superlend Altchains, such software constitutes an essential third-party or
+ user dependency without which the Superlend Smart Contract System cannot be utilized,
and tokens cannot be traded or used. Furthermore, the site may utilize APIs,
middleware and servers of Site Operator or third parties, and Site Operator does
not guarantee the continued operation, maintenance, availability or security of
@@ -1206,8 +1206,8 @@ const TOSContent = (): JSX.Element => {
(including any provision of any present or future law or regulation or any act of
any governmental authority, any act of God or war or terrorism, any epidemic or
pandemic, or the unavailability, disruption or malfunction of the Internet, the
- World Wide Web or any other electronic network, the Etherlink Mainnet or Plend
- Altchains or Plend Smart Contract System or any aspect thereof, or any consensus
+ World Wide Web or any other electronic network, the Etherlink Mainnet or Superlend
+ Altchains or Superlend Smart Contract System or any aspect thereof, or any consensus
attack, or hack, or denial-of-service or other attack on the foregoing or any aspect
thereof, or on the other software, networks and infrastructure that enables Site
Operator to provide the Site), it being understood that Site Operator shall use
diff --git a/src/store/root.ts b/src/store/root.ts
index 42fdbab5..11a1038f 100644
--- a/src/store/root.ts
+++ b/src/store/root.ts
@@ -1,4 +1,4 @@
-import { V3FaucetService } from '@aave/contract-helpers';
+// import { V3FaucetService } from '@aave/contract-helpers';
import { enableMapSet } from 'immer';
import { CustomMarket } from 'src/ui-config/marketsConfig';
import { ENABLE_TESTNET, STAGING_ENV } from 'src/utils/marketsAndNetworksConfig';
@@ -61,37 +61,37 @@ if (typeof document !== 'undefined') {
export const useStakeDataSubscription = createSingletonSubscriber(() => {
return useRootStore.getState().refetchStakeData();
-}, 60000);
+}, 30000);
export const useWalletBalancesSubscription = createSingletonSubscriber(() => {
return useRootStore.getState().refetchWalletBalances();
-}, 60000);
+}, 30000);
export const usePoolDataSubscription = createSingletonSubscriber(() => {
return useRootStore.getState().refreshPoolData();
-}, 60000);
+}, 30000);
export const usePoolDataV3Subscription = createSingletonSubscriber(() => {
return useRootStore.getState().refreshPoolV3Data();
-}, 60000);
+}, 30000);
export const usePoolDataV2Subscription = createSingletonSubscriber(() => {
return useRootStore.getState().refreshPoolV2Data();
-}, 60000);
+}, 30000);
export const useIncentiveDataSubscription = createSingletonSubscriber(() => {
return useRootStore.getState().refreshIncentiveData();
-}, 60000);
+}, 30000);
export const useGovernanceDataSubscription = createSingletonSubscriber(() => {
return useRootStore.getState().refreshGovernanceData();
-}, 60000);
+}, 30000);
-let latest: V3FaucetService;
+// let latest: V3FaucetService;
useRootStore.subscribe(
(state) => state.currentMarketData,
async (selected) => {
- const { setIsFaucetPermissioned: setFaucetPermissioned, jsonRpcProvider } =
+ const { setIsFaucetPermissioned: setFaucetPermissioned } =
useRootStore.getState();
if (ENABLE_TESTNET || STAGING_ENV) {
if (!selected.v3) {
@@ -102,19 +102,19 @@ useRootStore.subscribe(
// If there are multiple calls in flight, we only want to use the result from the latest one.
// Use the instance of the service to check if it's the latest one since it is recreated
// everytime this subscription fires.
- const service = new V3FaucetService(jsonRpcProvider(), selected.addresses.FAUCET);
- latest = service;
- service
- .isPermissioned()
- .then((isPermissioned) => {
- if (latest === service) {
- setFaucetPermissioned(isPermissioned);
- }
- })
- .catch((e) => {
- console.error('error checking faucet permission', e);
- setFaucetPermissioned(false);
- });
+ // const service = new V3FaucetService(jsonRpcProvider(), selected.addresses.FAUCET);
+ // latest = service;
+ // service
+ // .isPermissioned()
+ // .then((isPermissioned) => {
+ // if (latest === service) {
+ // setFaucetPermissioned(isPermissioned);
+ // }
+ // })
+ // .catch((e) => {
+ // console.error('error checking faucet permission', e);
+ // setFaucetPermissioned(false);
+ // });
} else {
setFaucetPermissioned(false);
}
diff --git a/src/styles/variables.css b/src/styles/variables.css
index 58ab0ec0..8fa0e2c4 100644
--- a/src/styles/variables.css
+++ b/src/styles/variables.css
@@ -1,3 +1,4 @@
body {
--wcm-z-index: 1300;
+ padding: 0 !important;
}
\ No newline at end of file
diff --git a/src/ui-config/marketsConfig.tsx b/src/ui-config/marketsConfig.tsx
index e8fb4653..9b840399 100644
--- a/src/ui-config/marketsConfig.tsx
+++ b/src/ui-config/marketsConfig.tsx
@@ -68,13 +68,14 @@ export const marketsData: {
faucet: false,
},
addresses: {
- LENDING_POOL_ADDRESS_PROVIDER: '0x5e580E0FF1981E7c916D6D9a036A8596E35fCE31'.toLowerCase(),
- LENDING_POOL: '0x837286C1d05735448F7d1942144eE98602206773',
- WALLET_BALANCE_PROVIDER: '0xAE0f454b171dA3C0e3B8a75c92A449964f90f7fd',
- UI_POOL_DATA_PROVIDER: '0xA69C04756c604b63514cBF13466eCE70a5BF755b',
- UI_INCENTIVE_DATA_PROVIDER: '0xdfe6cC78B0A1ed393246B9151c83036AD3e165b8',
- WETH_GATEWAY: '0x2ae2308F17667980582c6580556317EBdb61cc68',
+ LENDING_POOL_ADDRESS_PROVIDER: '0x124834E658E37255CfB7f30206683B5C5078B0Cc'.toLowerCase(),
+ LENDING_POOL: '0xB0462c142FE3dEEDA33C6Dad2528C509A009136D',
+ WALLET_BALANCE_PROVIDER: '0x2143Cc5C199321b442D5eEC2687947B182536482',
+ UI_POOL_DATA_PROVIDER: '0x68847Cb5f83f958BBEC56f80C3D9b84001d8D487',
+ UI_INCENTIVE_DATA_PROVIDER: '0x9aed80ddDd6fd4d137F6e503eF04e173d5695dBA',
+ WETH_GATEWAY: '0xaAD875F5115Bb4705909468539067398156170cF',
+ COLLECTOR: '0x250fB04547404729D22Eb8f9C498Da13E9980f2D',
},
- faucetUrl: 'https://faucet.plend.finance/receiveFaucetTokens',
+ faucetUrl: 'https://faucet.etherlink.com',
},
-} as const;
+} as const;
\ No newline at end of file
diff --git a/src/ui-config/menu-items/index.tsx b/src/ui-config/menu-items/index.tsx
index 73e38f36..3d21708c 100644
--- a/src/ui-config/menu-items/index.tsx
+++ b/src/ui-config/menu-items/index.tsx
@@ -1,4 +1,4 @@
-import { BookOpenIcon, QuestionMarkCircleIcon } from '@heroicons/react/outline';
+import { BookOpenIcon } from '@heroicons/react/outline';
import { t } from '@lingui/macro';
import { ReactNode } from 'react';
import { ROUTES } from 'src/components/primitives/Link';
@@ -33,13 +33,13 @@ interface MoreMenuItem extends Navigation {
}
const moreMenuItems: MoreMenuItem[] = [
+ // {
+ // link: 'https://docs.superlend.xyz',
+ // title: t`FAQ`,
+ // icon: ,
+ // },
{
- link: 'https://docs.plend.finance',
- title: t`FAQ`,
- icon: ,
- },
- {
- link: 'https://docs.plend.finance/',
+ link: 'https://docs.superlend.xyz/',
title: t`Documentation`,
icon: ,
},
diff --git a/src/ui-config/networksConfig.ts b/src/ui-config/networksConfig.ts
index 5f4d1406..f210f5dc 100644
--- a/src/ui-config/networksConfig.ts
+++ b/src/ui-config/networksConfig.ts
@@ -84,13 +84,13 @@ export const networkConfigs: Record = {
name: 'Etherlink Testnet',
publicJsonRPCUrl: [
'https://node.ghostnet.etherlink.com',
- 'https://etherlink-ghostnet-6lcp5r.zeeve.net/rpc',
+ 'https://etherlink-rollup-testnet-archive.zeeve.net/Rdj3r1npGPHxcDcQvOT/rpc',
],
baseUniswapAdapter: '0x0',
baseAssetSymbol: 'XTZ',
wrappedBaseAssetSymbol: 'WXTZ',
baseAssetDecimals: 18,
- explorerLink: 'https://testnet-explorer.etherlink.com',
+ explorerLink: 'https://testnet.explorer.etherlink.com',
isTestnet: true,
networkLogoPath: '/icons/networks/etherlink.svg',
},
diff --git a/src/uiConfig.ts b/src/uiConfig.ts
index a33e6817..360695c2 100644
--- a/src/uiConfig.ts
+++ b/src/uiConfig.ts
@@ -1,3 +1,3 @@
export const uiConfig = {
- appLogo: '/plendLogo.svg',
+ appLogo: '/logos/superlendlogo.webp',
};
diff --git a/src/utils/getMaxAmountAvailableToBorrow.ts b/src/utils/getMaxAmountAvailableToBorrow.ts
index 4964bbf3..f571cc43 100644
--- a/src/utils/getMaxAmountAvailableToBorrow.ts
+++ b/src/utils/getMaxAmountAvailableToBorrow.ts
@@ -19,8 +19,8 @@ export function getMaxAmountAvailableToBorrow(
user: FormatUserSummaryAndIncentivesResponse,
rateMode: InterestRate
) {
- const availableInPoolUSD = poolReserve.availableLiquidityUSD;
- const availableForUserUSD = BigNumber.min(user.availableBorrowsUSD, availableInPoolUSD);
+ // const availableInPoolUSD = poolReserve.availableLiquidityUSD;
+ // const availableForUserUSD = BigNumber.min(user.availableBorrowsUSD, availableInPoolUSD);
const availableBorrowCap =
poolReserve.borrowCap === '0'
@@ -53,36 +53,38 @@ export function getMaxAmountAvailableToBorrow(
);
}
- const shouldAddMargin =
- /**
- * When a user has borrows we assume the debt is increasing faster then the supply.
- * That's a simplification that might not be true, but doesn't matter in most cases.
- */
- (user.totalBorrowsMarketReferenceCurrency !== '0' &&
- availableForUserUSD.lt(availableInPoolUSD)) ||
- /**
- * When the user could in theory borrow all, but the debt accrues the available decreases from block to block.
- */
- (availableForUserUSD.eq(availableInPoolUSD) && poolReserve.totalDebt !== '0') ||
- /**
- * When borrow cap could be reached and debt accumulates the debt would be surpassed.
- */
- (poolReserve.borrowCapUSD &&
- poolReserve.totalDebt !== '0' &&
- availableForUserUSD.gte(availableInPoolUSD)) ||
- /**
- * When the user would be able to borrow all the remaining ceiling we need to add a margin as existing debt.
- */
- (user.isInIsolationMode &&
- user.isolatedReserve?.isolationModeTotalDebt !== '0' &&
- // TODO: would be nice if userFormatter contained formatted reserve as this math is done twice now
- valueToBigNumber(user.isolatedReserve?.debtCeiling || '0')
- .minus(user.isolatedReserve?.isolationModeTotalDebt || '0')
- .shiftedBy(-(user.isolatedReserve?.debtCeilingDecimals || 0))
- .multipliedBy('0.99')
- .lt(user.availableBorrowsUSD));
+ // const shouldAddMargin =
+ // /**
+ // * When a user has borrows we assume the debt is increasing faster then the supply.
+ // * That's a simplification that might not be true, but doesn't matter in most cases.
+ // */
+ // (user.totalBorrowsMarketReferenceCurrency !== '0' &&
+ // availableForUserUSD.lt(availableInPoolUSD)) ||
+ // /**
+ // * When the user could in theory borrow all, but the debt accrues the available decreases from block to block.
+ // */
+ // (availableForUserUSD.eq(availableInPoolUSD) && poolReserve.totalDebt !== '0') ||
+ // /**
+ // * When borrow cap could be reached and debt accumulates the debt would be surpassed.
+ // */
+ // (poolReserve.borrowCapUSD &&
+ // poolReserve.totalDebt !== '0' &&
+ // availableForUserUSD.gte(availableInPoolUSD)) ||
+ // /**
+ // * When the user would be able to borrow all the remaining ceiling we need to add a margin as existing debt.
+ // */
+ // (user.isInIsolationMode &&
+ // user.isolatedReserve?.isolationModeTotalDebt !== '0' &&
+ // // TODO: would be nice if userFormatter contained formatted reserve as this math is done twice now
+ // valueToBigNumber(user.isolatedReserve?.debtCeiling || '0')
+ // .minus(user.isolatedReserve?.isolationModeTotalDebt || '0')
+ // .shiftedBy(-(user.isolatedReserve?.debtCeilingDecimals || 0))
+ // .multipliedBy('0.99')
+ // .lt(user.availableBorrowsUSD));
- return shouldAddMargin ? maxUserAmountToBorrow.multipliedBy('0.99') : maxUserAmountToBorrow;
+ return maxUserAmountToBorrow.multipliedBy('0.99');
+
+ // return shouldAddMargin ? : maxUserAmountToBorrow;
}
export function assetCanBeBorrowedByUser(
diff --git a/src/utils/theme.tsx b/src/utils/theme.tsx
index 67b1c840..be6f4d46 100644
--- a/src/utils/theme.tsx
+++ b/src/utils/theme.tsx
@@ -17,11 +17,11 @@ const {
typography: { pxToRem },
} = theme;
-const FONT = 'Inter, Arial';
-const FONT_HEADER = 'Space Grotesk, monospace';
+const FONT = '"Basier Circle Regular"';
+const FONT_HEADER = '"Basier Circle Regular"';
declare module '@mui/material/styles/createPalette' {
- interface PaletteColor extends ColorPartial {}
+ interface PaletteColor extends ColorPartial { }
interface TypeText {
muted: string;
@@ -80,10 +80,10 @@ interface TypographyCustomVariants {
}
declare module '@mui/material/styles' {
- interface TypographyVariants extends TypographyCustomVariants {}
+ interface TypographyVariants extends TypographyCustomVariants { }
// allow configuration using `createTheme`
- interface TypographyVariantsOptions extends TypographyCustomVariants {}
+ interface TypographyVariantsOptions extends TypographyCustomVariants { }
interface BreakpointOverrides {
xsm: true;
@@ -185,11 +185,11 @@ export const getDesignTokens = (mode: 'light' | 'dark') => {
muted: getColor('#A5A8B6', '#8E92A3'),
},
background: {
- default: getColor('#F1F1F3', '#151519'),
- paper: getColor('#f1f1f1', '#27212F'),
- surface: getColor('#F7F7F9', '#3F2566'),
- navbar: getColor('#180E26', '#180E26'),
- header: getColor('#1C112E', '#1C112E'),
+ default: getColor('#eaeaea', '#151519'),
+ navbar: getColor('#FF5B00', '#FF5B00'),
+ header: getColor('#d9d9d9', '#151519'),
+ paper: getColor('#f1f1f1', '#302D2A'),
+ surface: getColor('#F7F7F9', '#2A2826'),
disabled: getColor('#EAEBEF', '#EBEBEF14'),
},
divider: getColor('#EAEBEF', '#EBEBEF14'),
@@ -403,7 +403,7 @@ export function getThemedComponents(theme: Theme) {
},
MuiButton: {
defaultProps: {
- disableElevation: true,
+ disableElevation: false,
},
styleOverrides: {
root: {
@@ -429,9 +429,9 @@ export function getThemedComponents(theme: Theme) {
color: theme.palette.common.white,
border: '1px solid',
borderColor: '#EBEBED1F',
- backgroundColor: '#3F2566',
+ backgroundColor: '#FF5B00',
'&:hover, &.Mui-focusVisible': {
- backgroundColor: theme.palette.background.header,
+ backgroundColor: 'ff7b33',
},
},
},
@@ -441,22 +441,27 @@ export function getThemedComponents(theme: Theme) {
color:
theme.palette.mode === 'light'
? theme.palette.common.white
- : theme.palette.common.black,
- borderColor: '#EBEBED1F',
- background: '#33c0ab',
+ : theme.palette.common.white,
+ borderColor: '#3f4f6f',
+ background: '#FF5B00',
'&:hover, &.Mui-focusVisible': {
- background: '#52F4DC',
+ background: '#ff7b33',
},
},
},
{
props: { variant: 'gradient' },
style: {
- color: theme.palette.common.black,
- background: theme.palette.gradients.aaveGradient,
+ color: theme.palette.mode === 'light' ?
+ theme.palette.common.white : theme.palette.common.black,
+ // background: theme.palette.gradients.aaveGradient,
+ background: theme.palette.mode === 'light' ?
+ '#0F244B' : '#F1FF52',
transition: 'all 0.2s ease',
'&:hover, &.Mui-focusVisible': {
- background: theme.palette.gradients.aaveGradient,
+ // background: theme.palette.gradients.aaveGradient,
+ background: theme.palette.mode === 'light' ?
+ '#0F244B' : '#F1FF52',
opacity: '0.9',
},
},
@@ -464,8 +469,15 @@ export function getThemedComponents(theme: Theme) {
{
props: { color: 'primary', variant: 'outlined' },
style: {
- background: theme.palette.background.surface,
- borderColor: theme.palette.background.disabled,
+ background: "transparent",
+ borderColor: theme.palette.mode === 'light'
+ ? "#2A2826" : "#6D6C6B",
+ '&:hover, &.Mui-focusVisible': {
+ background: theme.palette.mode === 'light'
+ ? "#0F244B" : "#6D6C6B",
+ color: theme.palette.mode === 'light'
+ ? '#f1f1f1' : '#fff'
+ },
},
},
],
@@ -558,6 +570,7 @@ export function getThemedComponents(theme: Theme) {
root: {
marginTop: 0,
marginBottom: 0,
+ borderColor: "#2A2826"
},
},
},
@@ -571,7 +584,8 @@ export function getThemedComponents(theme: Theme) {
{
props: { variant: 'outlined' },
style: {
- border: `1px solid ${theme.palette.divider}`,
+ border: `1px solid ${theme.palette.mode === 'dark' ?
+ theme.palette.divider : "#cecece"}`,
boxShadow: '0px 0px 2px rgba(0, 0, 0, 0.2), 0px 2px 10px rgba(0, 0, 0, 0.1)',
background:
theme.palette.mode === 'light'