Skip to content

Example p2p flashloan contract#363

Draft
nielstron wants to merge 2 commits intodevfrom
feat/flashloan
Draft

Example p2p flashloan contract#363
nielstron wants to merge 2 commits intodevfrom
feat/flashloan

Conversation

@nielstron
Copy link
Contributor

@nielstron nielstron commented Apr 3, 2024

Contrary to popular belief [1-3] flashloans are possible on Cardano (and actually great for arbitrage). Moreover flashloan contracts do not have to be very complex, thanks to the Cardano EUTxO model. This code provides an implementation for peer-2-peer flashloans with user defined flashloan fees.

[1] https://www.essentialcardano.io/glossary/flash-loan
[2] https://medium.com/@khajepour.amirhossein/the-curse-of-flash-loan-in-cardano-62969dd0ea88
[3] https://cexplorer.io/article/why-are-there-no-flash-loan-attacks-on-cardano

@nielstron nielstron changed the title Add an example flashloan contract Example p2p flashloan contract Apr 3, 2024
@nielstron nielstron marked this pull request as draft September 20, 2025 13:43
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.

1 participant