Skip to content

Commit 3959c3e

Browse files
authored
Update README.md
1 parent 98e8a9b commit 3959c3e

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

README.md

+84
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,90 @@ However, it is important to note that the loan must be repaid in the same transa
1616

1717
Flash loans have become popular within the DeFi ecosystem as they allow users to get instant liquidity to execute complex trades without having to have substantial capital. However, they require careful planning and a solid understanding of usage strategies to avoid loss or risk.
1818

19+
20+
### Example of Flash loan strategy
21+
22+
https://cryptopotato.com/defi-flashloands-how-someone-made-16000-with-zero-investment/
23+
24+
First, he borrowed 2,048,000 USDCT using dYdX’s flash loan. Remember, because it’s a flash loan, he doesn’t have to post any collateral as long as he repays the amount within the same block.
25+
26+
He then swapped this amount for 2,028,367 DAI on Curve y pool. After that, he swapped the DAI for 2,064,182 USDC on Curve’s SUSD pool, and lastly, he paid back the 2,048,000 USDC to dYdX, all within the same block.
27+
28+
All of this is possible because of the different stablecoin rate at the various lending protocols. And while 1% difference might not seem like a lot, when one is able to borrow high amounts and arbitrage this difference, the profits can be substantial.
29+
30+
### Uniqueness of the transaction
31+
What’s unique about flash loans is that the loan is not granted on the basis of the borrower’s profile, documents or collateral (as with traditional finance and even some loans in DeFi) but instead, on the borrower’s ability to prove an immediate yield from the transaction, based on the smart contract they’ve created.
32+
33+
If X+10 can be repaid within seconds – something that will depend on the specifics of the arbitrage opportunity itself – then X can be borrowed right now.
34+
35+
Hence, to be able to access and receive a flash loan, you need to spot a price discrepancy and immediately write a contract to fit, before the gap closes.
36+
37+
38+
### Smart contract
39+
40+
Smart contracts are self-executing digital agreements that allow us to interact with other users and platforms remotely, without a middleman. But they are unambiguous, and once you sign one, it cannot be reversed.
41+
42+
Lack of understanding about how to read smart contracts is a key vector for scams – so knowing how to read them is an essential competence for anyone operating in the crypto space.
43+
44+
You can do this by learning how to read information about a smart contract on blockchain explorers such as Ehterscan.
45+
46+
To verify the authenticity of the smart contract system each node independently verifies the block by comparing the state changes with the available local copy of the block. If the state changes are deterministic, the transactions are approved by the participating nodes of the blockchain. Consequently, in a situation where the nodes couldn’t come to a consensus, the execution of the block halts and the network may halt.
47+
48+
For the continuous execution of smart contracts on a blockchain network, the contract must be deterministic, where the nodes continuously validate the conditions to be met for the smart contract.
49+
50+
Smart contracts are handy tools that allow asset transfer and conditional fulfillment digitally. They solve the issue of mutual trust, transparency, global communication and economics. Here are some revolutionary real-world applications of smart contracts:
51+
52+
- The execution of transactions including legal processes.
53+
54+
- The execution of transactions relating to the insurance industry.
55+
56+
- The execution of crowdfunding agreements and ICO campaigns.
57+
58+
- The execution of transactions related to trading, financial derivatives, and simple asset exchange and transfers.
59+
60+
61+
### Read a smart contract in etherscan
62+
In the below sections will walk you through the process of
63+
64+
1. Finding a smart contract
65+
66+
2. Reading basic details such as creator address, token name, tokens held in the contract and so on.
67+
68+
3. Understanding the statistics of a contract’s tokens and what they convey.
69+
70+
4. Searching and understanding the transactions that have happened through a smart contract.
71+
72+
5. Finding the source code of a contract for deeper analysis.
73+
74+
So, if a smart contract has 10 million tokens, but 4 million of those are owned by just one wallet, the project’s future can be heavily impacted by just one player, and that risk needs to be factored into your projections.
75+
76+
77+
You can further click on “Holders” in the below section, and it will display the rank of all token holders based on the percentage of the total token supply they hold. The more diversified the supply, the more distributed the project is, and the safer the token is from pump and dump practices.
78+
79+
80+
### Contract Transactions
81+
82+
Another way to build a picture of a project’s legitimacy is by looking at its token transaction history. If a project has processed many transactions using its native token over a long period of time, this supports the notion that the project has been running a while already, has an active user base, and suggests you’ll be able to gain some insight about its activity and success from looking at other metrics.
83+
84+
Conversely, if all the transactions have taken place recently, or predominantly feature the same wallet addresses, you may want to do some more research about the project, since this doesn’t give any real insight into its story, activity or user engagement.
85+
86+
Where a protocol does not publish their source codes for public review, it’s not necessarily a sign that the contract is a scam – but it is a pretty essential piece of data that you don’t have access to, and that needs to be factored into your decision.
87+
88+
### Limited to Tech-savvy Traders (for now)
89+
90+
As you now know, flash loans are basically smart contracts created for your own specific circumstances – and since smart contracts are basically code executed on the blockchain, you may want to brush up on your coding skills before you get started. If you are feeling antsy to learn about smart contracts here’s a guide on how to read smart contract data.
91+
92+
93+
### A Playground for bots
94+
95+
The autonomy made possibly by flash loans is one of the most exciting elements of the technology – you can literally create your very own, bespoke loan contract. But with a process that’s so easy to automate, the space is also fertile ground for bots. Some bots have been designed to parse the DeFi landscape to detect arbitrage opportunities as they arise, seizing the opportunity immediately. Short story? Don’t expect money-making opportunities to flood in; many are seized up straight away by automated systems, meaning sparse options for regular traders.
96+
97+
98+
99+
### Conclusion
100+
101+
The flash loan is an exciting, but still nascent DeFi innovation that unites olf-fashioned arbitrage with the speed and digital sovereignty of blockchain technology. They may be a bit complex for the average trader, but their underlying premise demonstrates the incredible potential of smart contracts for those who are literate in their programming language.
102+
19103
## AAVE Flash Loans
20104
- https://docs.aave.com/developers/guides/flash-loans
21105

0 commit comments

Comments
 (0)