Adding to the Margin with MarginFi
INTRODUCTION🤝
marginfi is a decentralized portfolio margining protocol for trading on Solana. The protocol gives traders a unified account to access margin, compose a portfolio, and improve capital efficiency across underlying trading protocols. Using marginfi’s infrastructure, traders can manage margin across currently-closed trading ecosystems and specify custom exposure to derivatives, exchange arbitrages, delta-neutral trading strategies, cash-and-carry trades, or options arbitrages. Rebalance your portfolio on the upside, remove single protocol liquidation risk on the downside, and compose a complex portfolio with products at the best prices across Solana DeFi. solana
METHODLOGY⚒️
Flipside tables shall be used for this analysis.
The solana.core.fact_events
, solana.core.fact_transactions
, solana.core.fact_transfers
, and solana.core.dim_labels
tabels shall be used for this analysis.
The program id on the flipside tables using the labels filter is MRGNWSHaWmz3CPFcYt9Fyh8VDcvLJyy2SCURnMco2bC
.
Further research and engagement with the marginfi app enabled the analyst discover the current program id for lending and borrowing on Marginfi MFv2hWf31Z9kbCa1snEPYctwafyhdvnV7FZnsebVacA
.
This program id will be used for this analysis and the sample transactions for borrowing and lending are
4Tj8yXCc4326sVHUEpAJwpW4smXB2whYuPBnUh5CL3H9KZQb8dHGg3nQntKwg3y6h9ijHmP3d8fmG5ZMLwtpxaJc and 5fsUgjHq2KmK4LQv8MxnpYubvoiwCp1RzTBwcbxADKTUq1qLSoBFGTECccWuDyLMF71mJWLpK6oXRBQJTvxm9sb respectively
AIMS🎯
This dashboard tracks the key KPI's for MarginFi.
Tracks usage so far and what tokens have been most popular?
What type of user has experimented with MarginFi so far?
What other programs have users been exposed to that are now using MarginFi?
What do borrowers do with their new found capital after using MarginFi?
NAVIGATION
For easy comprehension of analysis, the dashboard shall be divided into different tabs as listed below:
- Overview(KPIs) of Marginfi: this tracks basic metrics like transaction count, user and new user count, lenders and borrowers.
- Other Programs Interacted With: tracks other progrms that users of Marginfi has been interacting with
- Wallet Distribution of Users: tracks the distribution of the users based on their balances.
- Tokens on Marginfi: tracks the tokens allowed for lending and borrowing on Marginfi, no pools available yet.
- What do Users do After Borrowing: tracks what users do with the tokens they just borrowed.
- Conclusion: closing remarks and findings.