Skip to content

swellchain enhancements #14401

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

Closed

Conversation

darvinrio
Copy link
Contributor

@darvinrio darvinrio commented Apr 22, 2025

NOTE

Please enable "Allow edits by maintainers" while putting up the PR.


  • If you would like to add a volume adapter please submit the PR here.
  • If you would like to add a liquidations adapter, please refer to this readme document for details.
  1. Once your adapter has been merged, it takes time to show on the UI. If more than 24 hours have passed, please let us know in Discord.
  2. Sorry, We no longer accept fetch adapter for new projects, we prefer the tvl to computed from blockchain data, if you have trouble with creating a the adapter, please hop onto our discord, we are happy to assist you.
  3. Please fill the form below only if the PR is for listing a new protocol else it can be ignored/replaced with reason/details about the PR
  4. For updating listing info It is a different repo, you can find your listing in this file: https://github.com/DefiLlama/defillama-server/blob/master/defi/src/protocols/data2.ts, you can edit it there and put up a PR
  5. Do not edit/push package-lock.json file as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CI
  6. No need to go to our discord and announce that you've created a PR, we monitor all PRs and will review it asap

Name (to be shown on DefiLlama): Relend Network
Twitter Link: https://x.com/relend_network
List of audit links if any:
  1. https://github.com/backstop-protocol/ERC-7770/blob/main/audits/Certora-Audit.pdf
  2. https://github.com/backstop-protocol/ERC-7770/blob/main/audits/FPS_Relend_Assessment_FINAL.pdf
Website Link: https://relend.network/
Logo (High resolution, will be shown with rounded borders): https://relend.network/relend.svg
Current TVL: 6 Million
Treasury Addresses (if the protocol has treasury)
Chain: Swellchain
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): (https://api.coinmarketcap.com/data-api/v3/map/all?listing_status=active,inactive,untracked&start=1&limit=10000)
Short Description (to be shown on DefiLlama): rUSDC is a collection of USDC wrappers that enables lending market risk curators to relend Ethereum mainnet TVL to other chains. Users can mint rUSDC on Ethereum by supplying USDC, bridge it to partner chains, and access ecosystem incentives.
Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one: Yield
Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
Implementation Details: Briefly describe how the oracle is integrated into your project:
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
forkedFrom (Does your project originate from another project):
methodology (what is being counted as tvl, how is tvl being calculated):

rUSDC supply on the chain is counted as TVL.
Depositing USDC on Swellchain specific vault mints rUSDC on Swellchain via LayerZero, while the underlying USDC is deployed across yield-generating strategies on Morpho and Euler. rUSDC on Swellchain can be burnt to unlock USDC on mainnet. Docs

Github org/user (Optional, if your code is open source, we can track activity): https://github.com/backstop-protocol/ERC-7770/tree/main

@llamabutler
Copy link

The adapter at projects/relend exports TVL:

swellchain                6.02 M

total                    6.02 M 

@darvinrio darvinrio marked this pull request as ready for review April 22, 2025 06:18
Copy link
Member

@g1nt0ki g1nt0ki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR, but you have given zero info about relend and why we should treat rUSDC supply as tvl

@darvinrio
Copy link
Contributor Author

apologies @g1nt0ki
will add the info 🙌 shortly

@llamabutler
Copy link

The adapter at projects/relend exports TVL:

swellchain                6.02 M

total                    6.02 M 

@darvinrio
Copy link
Contributor Author

@g1nt0ki
updated the description.
once again sorry for the initial oversight.

@darvinrio
Copy link
Contributor Author

@g1nt0ki
re bumping this

@waynebruce0x
Copy link
Collaborator

Can we count the underlying USDC instead please

@yaronvel
Copy link
Contributor

Can we count the underlying USDC instead please

@waynebruce0x rUSDC stablecoins are backed by a $60m+ USDC vault on morpho. But at the moment only $6m is reserved to swell. So the rUSDC-swell total supply represent the commitment for this backing.

@waynebruce0x
Copy link
Collaborator

How is the size of the swell reserve distinguished from the total morpho vault balance?

@yaronvel
Copy link
Contributor

How is the size of the swell reserve distinguished from the total morpho vault balance?

@waynebruce0x rUSDC-swell is a new stablecoin that relend network are issuing. Unlike MakerDAO it has few price stability modules, one is similar to MakerDAO (direct usdc backing), and one is the Morpho vault.

Relend Network curates the risk for both the Morpho vault and the rUSDC stable.

The supply on swell reflects the decisions our risk curators decided to take. If they choose to lower the exposure to swell, the total supply on swell will go down.

@waynebruce0x
Copy link
Collaborator

You must count the collateral rather than the token supply. Is there not a way to calculate how much of the morpho vault is backing rUSDC using on chain methods?

@yaronvel
Copy link
Contributor

You must count the collateral rather than the token supply. Is there not a way to calculate how much of the morpho vault is backing rUSDC using on chain methods?

Right now it is $60m (and more). But I don't understand the difference from, eg, DAI. Where you don't count the usdc in the psm as the tvl, and do not ask for a separate on chain data for the DAI backing in arbitrum and the one on base.

Anw, the best on chain data for the reserved Morpho backing is the total supply of rUSDC. But it is enforced via a monatry policy, rather than by a smart contract.

@yaronvel
Copy link
Contributor

It should be noted that the Morpho liquidity aims to support the price stability and allow users to borrow 1 usdc vs 1 rUSDC. So it is not a collateral per se. It is a way to ensure the monetary backing.

In a way very similar to how rwa backed stablecoins have one rwa backing to their stable, and are not required to provide on chain data to the backing of every separate chain.

@yaronvel
Copy link
Contributor

@waynebruce0x I forgot to mention that there is an on chain data which is the cap on the amount of usdc that the vault can use to back the rUSDC swell.

It is coded in the Morpho vault contract. If this is what you want, then I can instruct you how to read it, or do a PR

@waynebruce0x
Copy link
Collaborator

@waynebruce0x
Copy link
Collaborator

@waynebruce0x I forgot to mention that there is an on chain data which is the cap on the amount of usdc that the vault can use to back the rUSDC swell.

It is coded in the Morpho vault contract. If this is what you want, then I can instruct you how to read it, or do a PR

yes this would be useful, we need to know total value locked opposed to market cap

@yaronvel
Copy link
Contributor

yaronvel commented Apr 30, 2025

we dont count supply for maker https://github.com/DefiLlama/DefiLlama-Adapters/blob/main/projects/maker/index.js

Ah ok, I think I understand it better now, and there is a mistake from our side.

The tvl of relend network as a protocol is indeed more philosophical question. and an adapter for relend network itself is something we should prepare in a separate PR. Probably as capital allocator.

But for swell, we just want DeFi llama to be able to price rUSDC and count it towards tvl in Euler and velodrome dex. Similar to how DAI is counted

Talking with Euler, they claim you set the price of rUSDC-swell to 0. But it might be because coingecko had a bug that was only fixed today.

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 this pull request may close these issues.

5 participants