{"title": "ERC7399 - Unified Flash Loan Layer", "website": "https://github.com/alcueca/erc7399-wrappers", "createdAt": 1713792920341, "userGithub": "alcueca", "credentials": {}, "description": "Problem\n\nThe current state of the flash loan ecosystem is fragmented and lacks standardization, leading to several challenges for both lenders and borrowers. The absence of a common interface results in increased integration efforts, as each flash loan provider implements its own unique approach. This lack of standardization is expected to become more problematic as the ecosystem grows, requiring more resources to maintain compatibility.\n\nA comprehensive analysis of the existing flash loan protocols reveals significant differences in their implementations, including:\n\n- Inconsistent syntax for initiating flash loans across different platforms.\n- Variations in the relationship between the loan receiver and the callback receiver, with some protocols allowing different addresses for each role while others do not.\n- Divergent repayment mechanisms, with some lenders pulling the principal and fee from the loan receiver and others requiring the loan receiver to manually return the funds.\n- Disparities in the treatment of flash minting, where some lenders allow the creation of any amount of their native asset without charging a fee, effectively permitting flash loans bounded by computational constraints rather than asset ownership limitations.\n\nSolution\n\nTo address these inconsistencies and promote a more efficient and accessible flash loan ecosystem, we propose a standardized interface that encompasses the maximum flexibility required by both lenders and borrowers. By consolidating the various approaches into a unified standard, this proposal aims to streamline the integration process, enabling borrowers to seamlessly switch between flash lenders without the need for code modifications.\n\nTo ensure that the standard achieves significant traction, wrapper contracts are being created that conform to the standardized interface, while using liquidity from existing flash lenders. Wrapper contracts are also being developed to enable other sources of liquidity for flash loans.\n\nPlans for Funding\n\nThe wrappers are simple but must be audited to encourage would-be-users. Deployment costs would also be covered by funding. All development work is done by volunteers."}