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

Add: Avalon CeDeFi of Avalon Finance #11301

Merged
merged 4 commits into from
Sep 4, 2024

Conversation

jasmin-avalon
Copy link
Contributor

@jasmin-avalon jasmin-avalon commented Aug 14, 2024

Avalon CeDeFi

  • Intro: user can deposit Ignition FBTC, receive collateral token lfbtc-Avalon-eth and borrow USDT.

  • TVL Methodology: lfbtc collateral and USDT debt of Avalon CeDefi pool contract.

  • lfbtc represent the amount of supplied FBTC

Protocol Update request


What's lfbtc?

Contracts of Avalon CeDeFi

@llamatester
Copy link

The adapter at projects/avalon-finance-cedefi exports TVL:

ethereum-borrowed         0
borrowed                  0
ethereum                  0

total                    0 

@jasmin-avalon
Copy link
Contributor Author

Balance table for [ethereum] Unrecognized tokens
┌─────────┬────────────────────┬────────────────────┬─────────┬───────────────────────────────────────────────────────┬──────────┐
│ (index) │ name               │ symbol             │ balance │ label                                                 │ decimals │
├─────────┼────────────────────┼────────────────────┼─────────┼───────────────────────────────────────────────────────┼──────────┤
│ 0       │ 'lfbtc-Avalon-eth' │ 'lfbtc-Avalon-eth' │ '0'     │ 'ethereum:0x3119a1ad5b63a000ab9ca3f2470611eb997b93b9' │ '8'      │
└─────────┴────────────────────┴────────────────────┴─────────┴───────────────────────────────────────────────────────┴──────────┘

@llamatester
Copy link

The adapter at projects/avalon-finance-cedefi exports TVL:

ethereum-borrowed         0
borrowed                  0
ethereum                  0

total                    0 

@g1nt0ki
Copy link
Member

g1nt0ki commented Aug 15, 2024

I am bit lost, when user converts FBTC to LFBTC, is it automatic? why is FBTC burnt instead of locked in a contract?

What happens when the amount of USDT borrowed is higher than the collateral, how are the users liquidated?

@g1nt0ki g1nt0ki self-assigned this Aug 15, 2024
@g1nt0ki g1nt0ki self-requested a review August 15, 2024 14:37
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.

@tpktpj thanks for the PR, is the protocol active? also check my earlier comment

@jasmin-avalon
Copy link
Contributor Author

HI @g1nt0ki, can you our founder DM @jzpp_1234 on Telegram? He will explain the LFBTC to you, thanks!

@jasmin-avalon
Copy link
Contributor Author

When borrowers pledge FBTC into our pool, we perform the burning of FBTC / minting of LFBTC simultaneously. It will also trigger a transfer of corresponding amount of underlying BTC from a master address to a dedicated address reserved as lending collateral.

For different use cases (eg. Avalon lending, Babylon staking), a different “Locked FBTC” will be minted, and the specific Locked FBTC will be mapped to underlying BTC in dedicated addresses.

FBTC can be locked in dedicated contract. But FBTC team design it as “burn standard FBTC and mint equivalent amount of Locked FBTC” to segregate risks among different use cases.

Pls refer to Section 3.3 of https://fbtc.com/home/FBTC-Whitepaper.pdf

In short, LFBTC represents the amount of FBTC (and also the underlying BTC) pledged in our lending pool.

In the event of liquidation, the lender can trigger liquidation of the respective amount of native BTC to restore the LTV back to healthy level. Once the native BTC is sold/liquidated, the same amount of LFBTC will be forced burned, to maintain the 1:1 peg of LFBTC to underlying BTC.

@jasmin-avalon
Copy link
Contributor Author

Avalon CeDeFi market is already live: https://cedefi.avalonfinance.xyz/

@jasmin-avalon
Copy link
Contributor Author

We would like to add the CeDeFi Market as a sub-protocol under the Avalon Labs.

Avalon Labs: 
- Avalon Finance
- Avalon CeDeFi

@llamatester
Copy link

The adapter at projects/avalon-finance-cedefi exports TVL:

bitcoin                   57.21 M
ethereum-borrowed         28.52 M
borrowed                  28.52 M
ethereum                  0

total                    57.21 M 

@jasmin-avalon
Copy link
Contributor Author

@g1nt0ki Hi, we have added the Avalon CeDeFi BTC TVL address on the Bitcoin chain.

BTC(BTC) : 32DgQPVHSV6FSxLnw68nggvchp3ZNKquxA
BTC(BTC) : bc1qr5nz7n8ulcdz0w3s6fska80fawxhvqlh273qypm3rkjequ9wpmhs65ppw7
BTC(BTC) : bc1qhu98nf6ddz6ja73rn72encdr8ezsyhexwpdzap0vcs7lg2wpmrnq5ygfsl
BTC(BTC) : bc1qg6asmzjr7nr5f5upg3xqyrdxl2tq8ef58hha7t0s82mzzx6zjxesyccp4h
BTC(BTC) : bc1qxe3md4lehg8gmrlx3e8xqju5mytt266l4hcy8khl6tm5mahghmeqtxlgqq
BTC(BTC) : bc1qy48h0kuv0r3e330wjfs6r74sk49pkzumnm907t5mhqjxml22r3ss2ucuxc

@g1nt0ki
Copy link
Member

g1nt0ki commented Sep 4, 2024

hi @tpktpj thanks for the update, these bitcoin addresses represent the lfBTC backing? if so, you can skip counting on ethereum as well?

@jasmin-avalon
Copy link
Contributor Author

@g1nt0ki Hi, YES, the bitcoin addresses represent the lfBTC backing. The code has been updated, we skipped the lfBTC count on Ethereum and counted BTC on bitcoin instead.

@llamatester
Copy link

The adapter at projects/avalon-finance-cedefi exports TVL:

bitcoin                   57.02 M
ethereum-borrowed         28.53 M
borrowed                  28.53 M
ethereum                  0

total                    57.02 M 

@g1nt0ki g1nt0ki merged commit 46d7bea into DefiLlama:main Sep 4, 2024
1 check passed
@jasmin-avalon
Copy link
Contributor Author

@g1nt0ki Hi! Could you please add this adapter (Avalon CeDeFi) as a new product under our current protocol(https://defillama.com/protocol/avalon-finance)?

Also, we've finished our rebranding, the protocol name and logo are updated.

The protocol name is Avalon Labs. Rebranding PR: DefiLlama/defillama-server#7932 (comment)


We want to display our protocol 2 product in this format:

Protocol Name: Avalon Labs

0xIvan pushed a commit to 0xIvan/DefiLlama-Adapters that referenced this pull request Sep 11, 2024
tlatkdgus1 pushed a commit to bifrost-platform/DefiLlama-Adapters that referenced this pull request Nov 25, 2024
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.

3 participants