馃攳
Turning $0 into $300,000 With Flashloans - YouTube
Channel: Max Maher
[2]
there's a secret world that you probably
[4]
aren't aware of traders borrowing
[5]
millions to invest with no collateral
[8]
but there's a catch if they can't return
[9]
the money within 10 seconds they could
[12]
lose everything so who are these traders
[14]
well they call themselves the flash boys
[16]
and they aren't making your average
[17]
order book trade this is lending on
[19]
steroids and it could jeopardize the
[21]
entire crypto ecosystem so welcome to
[24]
the dangerous dog eat dog world of flash
[26]
trading speaking of only 10 seconds to
[28]
take advantage you can take advantage of
[30]
signing up for my patreon linked in the
[31]
description that you'll have access to
[33]
my full portfolio and buy alerts that
[35]
have landed me up more than 100 percent
[39]
the year is 2018 and marble a now
[42]
defunct smart contract bank introduces
[45]
us to something radically new flash
[47]
loans a type of loan that could never
[49]
exist in our traditional lending system
[51]
so foreign to what we're used to in
[53]
traditional finance that even today
[55]
there isn't a good analogy for it the
[57]
term comes from this book by michael
[59]
lewis flash boys is about the wild world
[62]
of high frequency trading in the us with
[64]
flash loans for the very first time you
[66]
could borrow as much as you wanted to
[68]
with zero collateral as long as the
[70]
funds were returned within the same
[72]
transaction suddenly people were
[74]
borrowing millions yes
[76]
millions of dollars owning guess how
[79]
much nothing this meant anyone could be
[82]
a crypto whale however the idea didn't
[84]
get much traction at first because the
[86]
market was turning bearish at the time
[88]
and hype was starting to slow down in
[89]
the crypto markets and the world started
[91]
forgetting about flash loans altogether
[93]
and that is until ave jumped in the
[94]
scene in 2020 so you might be asking
[96]
yourself why would anyone borrow
[99]
millions of dollars within one
[101]
transaction if you give it back within
[102]
10 seconds and the answer is profit to
[104]
help us understand how much can be made
[106]
with flash loans i chatted with software
[108]
engineer andreas i mainly used them for
[112]
arbitrage trading there was no use case
[114]
flash for flash loans back then because
[116]
people didn't know what to do with those
[118]
flash loans if we want to see a more
[119]
clear example that one we know that a
[122]
flash loan happened here uh for sure so
[124]
that that one guy made 300 000
[128]
in
[129]
10 seconds
[130]
yeah that one guy yeah there are three
[132]
main reasons you might choose to take
[134]
out a flashlight the most popular is to
[136]
take advantage of an arbitrage
[137]
opportunity so picture this your mom
[139]
trades apples for two dollars and your
[141]
dad trades apples for three dollars
[143]
they're they're competitors if this
[144]
remains constant you just discovered an
[147]
infinite money glitch by buying from
[149]
your mom and selling to your dad yes
[151]
this is gonna mess up your inheritance
[152]
but you can make money in the short run
[154]
this is known as an arbitrage
[156]
opportunity eventually your dad says hey
[158]
i have way too many apples so he lowers
[160]
the price hoping to get rid of that
[161]
extra supply this means the opportunity
[163]
has essentially closed and the range
[165]
between the three and two dollar apples
[168]
narrows with each transaction this is
[170]
what makes markets efficient there's
[171]
actually an interesting book on this
[173]
called a random walk down wall street
[175]
that explores these concepts even
[176]
further here's how arbitrage could work
[178]
in crypto if solana is 160 on kucoin but
[182]
it's only 157 on coinbase depending on
[185]
fees you could profit off of this price
[187]
discrepancy flash loans allow you to do
[189]
this without ever actually buying solana
[192]
so basically this person found that
[193]
there was big price discrepancy between
[195]
uniswap and sushi swap yeah among uh
[198]
three
[199]
three different
[201]
pairs and exploited that difference to
[204]
[Music]
[205]
to get the profit now a second reason
[207]
for flash loans is called collateral
[209]
swaps this would make a traditional
[211]
banker's head spin in order to borrow an
[214]
asset traditionally you need collateral
[216]
something worth money that shows that
[218]
you're good for the loan in regular
[220]
finance collateral is fairly fixed if
[222]
you borrow 100 000 against your home you
[224]
can't easily decide tomorrow that you'd
[226]
rather switch and instead borrow against
[229]
the pile of gold that you conveniently
[231]
own instead you know you would have to
[232]
do all sorts of paperwork you would need
[234]
to go through a refinancing process and
[236]
get the proper approvals with a flash
[238]
loan you're actually able to swap out
[240]
your collateral on a loan for another
[243]
asset within a single 10 second
[245]
transaction and then we have self
[247]
liquidation if it's found the collateral
[249]
you put up for a loan is no longer worth
[251]
enough to keep that loan you will be
[253]
liquidated losing all of your money with
[255]
a flash loan you can actually borrow
[257]
money for free plus transaction fees and
[260]
then liquidate yourself and repay your
[263]
own loan a concept that is confusing
[265]
because it goes against everything we
[268]
know about traditional finance it it's
[270]
like having your cake and eating it too
[272]
borrowing money for free to trade or to
[275]
pay back your own loan to save yourself
[277]
it doesn't seem real or legal for that
[280]
matter but it is now even though there's
[282]
no collateral there are still risks of
[284]
your transaction not going through
[286]
successfully the first risk is being
[288]
front run so remember that analogy where
[290]
the mom and dad are trading apples for
[292]
whatever reason well arbitrage
[294]
opportunities don't last forever that's
[296]
because once someone takes advantage of
[298]
an opportunity it gets closed off a bot
[300]
may notice your transaction in queue for
[302]
an opportunity and bid a higher
[304]
transaction gas fee taking that
[307]
transaction right out of your hands now
[309]
another problem is price slippage so
[311]
let's say you find an arbitrage
[312]
opportunity where an asset has a price
[314]
mismatch of 10
[315]
you buy it for 100 and you aim to sell
[317]
it for 110
[318]
you need to consider slippage supply and
[321]
demand as you sell your asset you are
[323]
supplying it into an exchange this
[325]
increase in supply may lead the assets
[327]
price to drop lower if demand doesn't
[330]
keep up at that same 110 dollar price
[333]
this is mostly an issue on large trades
[336]
finally the biggest risk is network fees
[338]
in ave's case they take a 0.09 fee not
[342]
too shabby considering that you're
[343]
leveraging potentially millions of
[345]
dollars so if you borrow one million
[346]
dollars to buy from one exchange and
[348]
sell it off on another you could be
[349]
looking at a five-digit profit while
[351]
only losing out on a 900 fee plus you
[355]
know some additional transaction fees
[356]
the risk here is that you need to pay
[358]
transaction fees whether the transaction
[361]
is successful or not that's where you
[363]
can potentially lose some money so if
[365]
borrowing millions without any
[366]
collateral and having free reign to send
[368]
funds from a smart contract pretty much
[370]
anywhere on the same network sounds like
[372]
a recipe for a disaster you'd only kind
[374]
of be right so if you understand basic
[377]
computer programming you're probably
[378]
ready to execute a flash loan but at
[380]
what point does the 10 second loan
[383]
become nicholas cage's gone in 60
[385]
seconds well take a look at the cruel
[387]
fate of pancake bunny on may 19 a hacker
[390]
made off with about 45 million in a
[392]
flash loan exploit tanking the price of
[395]
bunny tokens by 96 from 220 down to
[399]
around 10 within a single day weeks
[401]
later it still couldn't manage to break
[403]
15 and that wasn't the end for bunny
[406]
finance because on july 16th the
[408]
company's new polygon blockchain fork
[410]
paulie bunny got hit with yet another
[413]
flash loan attack minting 2.1 million
[416]
dollars worth of poly bunny tokens
[418]
tanking that token from around ten
[420]
dollars to below two dollars some people
[422]
think that pancake bunny knew about this
[424]
exploit and it was an inside job but
[426]
whether it was or not here's how it was
[428]
done first the hacker borrowed more than
[430]
700 million in bnb from seven pancake
[433]
bunny lending pools and around 3 million
[435]
in tether they use this to manipulate
[437]
the price of bnb using a bug in pancake
[440]
bunny's bnb usdt liquidity pool this
[443]
allowed them to mint almost 7 million
[445]
bunny tokens the hacker then dumped
[447]
these tokens for about 2.4 million bnb
[450]
causing the price of bunny to plummet
[453]
after repaying the flash loans the
[455]
hacker was left with over 100 000 bnb
[457]
worth about 45 million dollars the
[460]
exploit here was a result of a flaw in
[462]
the pancake bunny protocol once the
[463]
hacker knew how the protocol was
[465]
determining prices all he had to do was
[468]
manipulate the price of each component
[470]
to game the system and steal the money a
[472]
bunny that even nicholas cage couldn't
[474]
put back in the box
[476]
put the bunny
[478]
back in the box now another example is
[480]
the attack on cream finance through a
[482]
similar flash lone attack this was the
[484]
third largest hack in d5 history the
[487]
breach involved several different tokens
[489]
that took advantage of a loophole in how
[490]
automatic market makers discover the
[492]
price of an asset the various hacks did
[495]
have one big benefit though the
[496]
community did some digging and found
[498]
that the vulnerability in a lot of these
[500]
attacks was due to using centralized
[502]
oracles just one reason why many people
[504]
have been rushing to chain link over the
[506]
past two years without oracles
[508]
blockchains are basically stuck in their
[510]
own world without any idea of what's
[512]
happening outside of their own ecosystem
[514]
making them ripe for exploitation the
[516]
completely new technology of flash loans
[518]
are causing profiteers to take a look at
[521]
old dapps to see if they can go ahead
[523]
and exploit their systems and this is
[525]
where we're at now a new gold rush in
[527]
crypto a pirate era of flash loans where
[530]
anyone can search for opportunities
[532]
within smart contracts as long as they
[534]
can get out within 10 seconds so here's
[536]
a question that i want to ask you is it
[538]
ethical to exploit code for profit of
[542]
course
[542]
this is the other side of flash loans
[545]
and i believe we should not put a black
[548]
label on those new financial products
[552]
it is just what happens with every new
[554]
technology to me i don't see a major
[556]
issue with flash loans every system has
[558]
their own individual quirks and
[560]
blockchains have the quirk of settling
[562]
transactions in batches because
[564]
transactions are settled in batches this
[566]
allows people to use the funds within
[568]
that transaction as long as they put
[570]
everything back where they found it
[571]
before the transaction settles and
[573]
ultimately no one should be hurt of
[576]
course we don't want black hat actors to
[578]
steal from people or steal from
[580]
exchanges but it seems with time systems
[582]
will be built in order to prevent the
[584]
darker side of flash loans from here i'd
[586]
like to thank today's sponsor i trust
[588]
capital i trust allows you to place your
[590]
crypto in a roth retirement account what
[592]
this means is you can buy sell and trade
[595]
crypto and pay zero capital gains on
[597]
your wins this is amazing for traders
[599]
with a roth you pay your tax upfront
[601]
when putting money into the account and
[603]
at retirement you pay no tax once you
[605]
start pulling out at age 59 and a half
[608]
years old this is probably the most
[609]
simple way to save on all capital gains
[612]
i trust will be linked in the
[613]
description of this video if you use
[614]
that link to open an account you'll
[615]
receive 100 in free bitcoin just for
[618]
joining now next up i recommend you
[620]
watch this video covering other
[621]
underground investment strategies and i
[623]
would like to thank you so much for
[625]
watching and i hope you have a
[626]
profitable day
Most Recent Videos:
You can go back to the homepage right here: Homepage





