0
0
Blockchain / Solidityprogramming~5 mins

Flash loans in Blockchain / Solidity - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a flash loan in blockchain?
A flash loan is a type of uncollateralized loan that must be borrowed and repaid within a single blockchain transaction.
Click to reveal answer
beginner
Why do flash loans not require collateral?
Because the loan is repaid within the same transaction, the blockchain ensures the lender either gets the money back or the whole transaction fails, so no collateral is needed.
Click to reveal answer
beginner
What happens if a flash loan is not repaid in the same transaction?
The entire transaction is reverted, meaning all actions are undone and the loan is never given out.
Click to reveal answer
intermediate
Give a simple example use case of a flash loan.
A trader can borrow funds to quickly buy an asset, sell it at a higher price, repay the loan, and keep the profit, all within one transaction.
Click to reveal answer
intermediate
What is a key risk associated with flash loans?
Flash loans can be used for attacks like price manipulation or exploiting vulnerabilities in smart contracts.
Click to reveal answer
What ensures a flash loan is safe for the lender?
AThe borrower provides collateral
BThe loan must be repaid within the same transaction
CThe loan is insured by a third party
DThe loan is given only to trusted users
Which of these is NOT a characteristic of a flash loan?
ALoan duration can be several days
BNo collateral required
CRepaid within one transaction
DUsed for arbitrage or quick trades
What happens if a flash loan is not repaid on time?
AThe transaction is reverted
BThe lender loses money
CThe borrower is blacklisted
DThe loan is converted to a regular loan
Flash loans are mostly used for:
ALong-term investments
BBuying real estate
CQuick arbitrage opportunities
DPaying salaries
Which is a potential risk of flash loans?
AThey require high collateral
BThey are only available to banks
CThey have long repayment periods
DThey can be used to exploit smart contract bugs
Explain how a flash loan works in a blockchain transaction.
Think about what happens if the loan is not paid back immediately.
You got /3 concepts.
    Describe one practical use case and one risk of flash loans.
    Consider both benefits and dangers of instant loans.
    You got /2 concepts.