DefiLlama / dimension-adapters

91 stars 1.01k forks source link

Bonzo finance #2042

Closed bugbytesinc closed 2 weeks ago

bugbytesinc commented 2 weeks ago

Thankyou for accepting our general adapter PR, here is a proposed dimension adapter PR


Name (to be shown on DefiLlama):

Bonzo Finance

Twitter Link:

https://x.com/bonzo_finance

List of audit links if any:

https://docs.bonzo.finance/hub/resources/audits

Website Link:

https://bonzo.finance/

Logo (High resolution, will be shown with rounded borders):
Current TVL:

0

Treasury Addresses (if the protocol has treasury)

0x00000000000000000000000000000000005dc4d4

Chain:

295

Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed):
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed):
Short Description (to be shown on DefiLlama):

The Liquidity Layer of Hedera: An open source, non-custodial lending protocol based on Aave.

Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one:

Lending

Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):

Supra Oracle

Implementation Details: Briefly describe how the oracle is integrated into your project:

Bonzo Finance uses Supra’s push oracles; these oracles feed asset price information at regular intervals to the Hedera network and enable the Bonzo Finance protocol to query the most recent or historical data.

Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:

https://docs.bonzo.finance/hub/developer/oracles/supra

forkedFrom (Does your project originate from another project):

Aave

methodology (what is being counted as tvl, how is tvl being calculated): The calculated TVL is the current USD sum of deposits minus borrows for all all reserves found under https://app.bonzo.finance/
Github org/user (Optional, if your code is open source, we can track activity):

https://github.com/Bonzo-Labs

llamatester commented 2 weeks ago

The bonzo adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees bonzo

πŸ¦™ Running BONZO adapter πŸ¦™
---------------------------------------------------
Start Date: Sun, 27 Oct 2024 00:00:00 GMT
End Date:   Mon, 28 Oct 2024 00:00:00 GMT
---------------------------------------------------

HEDERA πŸ‘‡
Backfill start time: 28/10/2024
End timestamp: 1730119513.15844 (2024-10-28T12:45:13.158Z)
Daily fees: 0
└─ Methodology: Intrest and Flash Loan fees plus liquidation bonuses in USD
Daily user fees: 0
└─ Methodology: Intrest and Flash Loan fees plus liquidation bonuses in USD
Daily protocol revenue: 0
└─ Methodology: Portion of intrest rate fees and flash loan fees to Protocol Treasury in USD
Daily supply side revenue: 0
└─ Methodology: Portion of intrest rate fees to liquidity providers in USD