Skip to content

Conversation

sotnikov-s
Copy link
Contributor

@sotnikov-s sotnikov-s commented Jun 27, 2024

This PR moves neutron-flashloans description from README to comments in the code

@sotnikov-s sotnikov-s marked this pull request as ready for review June 27, 2024 11:19
Comment on lines +9 to +14
Here's a brief description of what happens when a borrower requests a loan:
1. The borrower sends a `RequestLoan` message to the flashloan contract;
2. The flashloan contract validates the request and sends the requested amount of funds to the borrower from the source;
3. The flashloan contract completes the send message with the `reply` callback by sending a `ProcessLoan` message to the borrower;
4. Inside `ProcessLoan`, the borrower processes its custom logic with the loan and refunds the loan amount plus fee to the source;
5. The flashloan contract completes the `ProcessLoan` message with the `reply` callback by confirming the loan amount plus fee refund to the source.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice to have links to crates.io/docs.rs/whatever instead of RequestLoan and ProcessLoan where a reader can comfy read the descriptions and see the fields

@sotnikov-s sotnikov-s closed this Oct 9, 2024
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.

2 participants