Adding to the Margin with MarginFi

    MarginFi just launched to mainnet as a lending foundation for Solana. After the FTX collapse, Solana defi has been somewhat nonexistent outside of dex swaps. MarginFi is the first new product in the wave of "Defi 2.0" on Solana. Create a dashboard that tracks key KPI's for MarginFi. How has adoption been so far and what pools have been most popular? What type of user has experimented with MarginFi so far? What other programs have users been exposed to (Solend, Jet etc) that are now using MarginFi? What do borrowers do with their new found capital after using MarginFi? Are there signs of early growth of this new wave of Solana defi?

    db_img
    db_img

    What Is Marginifi ?

    Marginfi is a decentralized lending and borrowing protocol on solana. The MarginFi protocol is a blockchain-based platform that improves the ability to lend and lend digital assets visually. The protocol allows users, as lenders, to lend to other users, and in return, as borrowers, to lend their digital assets as collateral to the lenders.

    With MarginFi, users can safely leverage finance and capital for their business. Also, users can provide their digital assets as collateral to investors to continue their business.

    In MarginFi, every user starts as a regular member and by lending their assets to other users, they can earn more points and reach a higher level on the platform. Also, the platform allows users to use their assets as collateral for a loan.

    MarginFi provides a very high level of security for its users by using intelligent mechanisms, and among other advantages, it can be mentioned that it reduces financial costs and increases the accessibility of financial resources.

    Overall, MarginFi is an attractive and innovative platform that provides users with facilities such as lending and lending of assets.

    Methodology

    In this dashboard, an attempt has been made to examine various criteria, including the total amount of assets that users have deposited in MarginFi lending pools, the number of distinct individuals or entities that have used MarginFi lending services to gain insight into the size and The growth of the user base, the average amount of capital that borrowers receive from MarginFi borrowing pools, etc., will be analyzed in depth about the MarginFi protocol, and at the end, a brief comparison of the MarginFi protocol with other existing protocols will be made.

    It should be noted that due to the fact that the two assets of mSol and Bonk have been added to the Marginfi official page in the last day (22-03-02) and since they are added to the Flipside database with a few hours delay, this has caused that before Dashboard delivery deadline is not possible to access this information. In order to make this dashboard more complete, it has been updated after the time of the project


    Three tables are used in this dashboard: 1- solana.core.fact_events :Access to marginfi transactions

    2- solana.core.fact_transfers :Access to marginfi transactions

    3-solana.fact_swaps : To calculate the price of tokens ..................................................................................................................................

    Marginfi Contract address:

    PROGRAM_ID='MFv2hWf31Z9kbCa1snEPYctwafyhdvnV7FZnsebVacA'

    .................................................................................................................................. USDC pool information:

    USDC contract address: MINT='EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'

    Address to filter loan transactions: TX_To='3uxNepDbmkDNq6JhRja5Z8QwbTrfmkKP8AKZV5chYDGG'

    Address to filter borrow transactions: TX_From='3uxNepDbmkDNq6JhRja5Z8QwbTrfmkKP8AKZV5chYDGG' ..................................................................................................................................

    ::SOL pool information:

    SOL contract address: MINT='So11111111111111111111111111111111111111112'

    Address to filter loan transactions: TX_To='DD3AeAssFvjqTvRTrRAtpfjkBF8FpVKnFuwnMLN9haXD'

    Address to filter borrow transactions: TX_From='DD3AeAssFvjqTvRTrRAtpfjkBF8FpVKnFuwnMLN9haXD'' .................................................................................................................................. mSOL pool information:

    mSOL contract address: MINT='mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So'

    Address to filter loan transactions: TX_To='6YxGd65JbXzgFGWjE44jsyVeCnZp7Bb1wfL9jDia1n8w'

    Address to filter borrow transactions: TX_From='6YxGd65JbXzgFGWjE44jsyVeCnZp7Bb1wfL9jDia1n8w' .................................................................................................................................. BONK pool information:

    BONK contract address: MINT='DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263'

    Address to filter loan transactions: TX_To='26kcZkdjJc94PdhqiLiEaGiLCYgAVVUfpDaZyK4cqih3'

    Address to filter borrow transactions: TX_From='26kcZkdjJc94PdhqiLiEaGiLCYgAVVUfpDaZyK4cqih3' ..................................................................................................................................