Making sense of some Defi concepts - AMM

This post is a Defi newbie's rumbles.

I have been trading cryptocurrencies for slightly over a year now. Despite having heard about DeFi earlier, I have yet to explore the thriving crypto jungle aka DeFi space.

Resources to kick start the journey

(for those who need to be familiarized with the crypto terms)

What is Defi?

"DeFi refers to a system where software written on blockchains makes it possible for buyers and sellers and lenders and borrowers to interact peer to peer or with a strictly software-based middleman rather than a company or institution facilitating a transaction." - Investopedia

I can foresee DeFi's disruption to traditional bank services if it can provide stable infrastructures and ease of use for businesses and the masses to carry out financial transactions (lending, borrowing, trading, payment etc). If it has not already happened in some parts of the world. 

A side point to note is that banks are also jumping on the bandwagon of cryptocurrency. Hmm are we going to be seeing more crypto-derivative products in the near future? 

Bitcoins IOUs? Erm no thanks, it's like I would rather hold gold than gold derivatives.

Back to DeFi, here are some risks to consider...

"The DeFi ecosystem is still riddled with infrastructural mishaps and hacks. Scams also abound in the rapidly-evolving DeFi infrastructure. DeFi “Rug Pulls,” in which hackers drain a protocol of funds and investors are unable to trade, are common, though there are well-established protocols that can be used to reduce this risk significantly." - Investopedia

"There are an incredible number of risk factors piled up on top of each other in the world of DeFi apps. These apps are crudely glued together based on potentially-faulty smart contract code, trusted oracles, developer-controlled backdoors, volatile underlying network tokens (e.g. ETH, BNB), centralized stablecoins with plenty of counterparty risk, yields denominated in Ponzi-esque crypto tokens with unclear utility, and other problematic building blocks." - How bitcoin and defi are completely different phenomena

Introducing one of the popular Defi application out there, which is the Automated Market Maker (AMM).

What is an Automated Market Maker (AMM)?

General definition of a market maker by Investopedia:

A market maker is a individual market participant or member firm of an exchange that also buys and sells securities for its own account, at prices it displays in its exchange's trading system, with the primary goal of profiting on the bid-ask spread, which is the amount by which the ask price exceeds the bid price a market asset. It is typically a bank or financial institution.

In the DeFi space they have it automated, letting the community profit instead. Hoo ha!

"Not only can you trade trustlessly using an AMM, but you can also become the house by providing liquidity to a liquidity pool. This allows essentially anyone to become a market maker on an exchange and earn fees for providing liquidity."

Earning fees (yield farming) for providing liquidity sounds like cool stuff ya?

So let's try figure what's in it.

Read this or view the video near the bottom of this post.

Liquidity Pool explained

Liquidity pool is the "market place" where you have 2 or more of the assets for traders to trade. As a liquidity pool (LP) provider, you would supply the assets thus providing liquidity (as mentioned above) according the rules of the smart contract in the protocol.

"Be wary of projects where the developers have permission to change the rules governing the pool. Sometimes, developers can have an admin key or some other privileged access within the smart contract code. This can enable them to potentially do something malicious, like taking control of the funds in the pool. Read our DeFi scams article to try and avoid rug pulls and exit scams as best you can."

On top of that there is also this concept of impermanent loss that could happen when you do LP. No free lunch in this world, duh!
So what on earth is Impermanent Loss

Ok here you go, click and read to fluff the scramble eggs now in your mind.

Impermanent loss curve

"Impermanent loss happens when you provide liquidity to a liquidity pool, and the price of your deposited assets changes compared to when you deposited them." (meaning you can make a loss when you withdraw your crypto from the pool.)

"As a simple rule, the more volatile the assets are in the pool, the more likely it is that you can be exposed to impermanent loss." 

If you don't want to crack your brain with calculations, here's an Impermanent Loss Calculator online to the rescue.

The Alice example in the article points to the fact that you could earn quick bucks as an arbitrage trader in a liquidity pool that has much liquidity yet not many sharks around (arbitrage traders that fight with you before the ratio balances to the market rate). On the other hand, a liquidity provider welcomes more traders (or high trading volume) as that would mean more trading fees earned for them.

What's arbitrage? When there's a spike in market price say for ETH, they can withdraw ETH from the pool to sell (outside) for spread profit and thus upset the pool's ratio. Since what determines the price of the assets in the pool is the ratio between them in the pool.

However, since your % of the pool owned remains unchanged, the change in pool ratio would then realize an impermanent loss when you withdraw from the pool. Theoretically speaking, the bigger the pool size, the lower is the risk of impermanent loss.

Do remember - where there's blood, sharks will come.

"One last point is to look for more tried and tested AMMs. DeFi makes it quite easy for anyone to fork an existing AMM and add some small changes. This, however, may expose you to bugs, potentially leaving your funds stuck in the AMM forever. If a liquidity pool promises unusually high returns, there is probably a tradeoff somewhere, and the associated risks are likely also higher."

Here's a writeup about Uniswap (one of the very popular AMM)

Closing thoughts

Unless I am more capable of navigating these rules and their limitations, I will likely to remain on the sideline instead of jumping headlong into a pool that may be too deep for my swimming skills.

Maybe I can attempt to be a shark, but I certainly don't want to end up on others' dishes as shark's fin. (Everyone wants everyone's btc... just like everyone wants everyone else's share of money when trading the stock market.) Some bloggers who are making big and quick bucks may exhibit confirmation bias in their articles, thus, I would advise anyone who are interested in crypto venture to exercise your own due diligence.

Don't get rekt!

Liquidity explained:

Do you know that what you can do in the Tradfi (traditional finance) world can be done in the Defi world as well? All through smart contract interactions.
  • Borrowing / Lending
  • Insurance
  • DCA (on platforms)
  • Value investing
  • "Dividend" investing (yield farming, staking)
  • Momentum trading
And there may be so much more...

Quick update

I have using the Blockfi account (f* to pathetic banks FD rates) cos I am not going to jump hoops anymore for savings account's paltry interest. This is to earn some interest on my cryptos as well as USD (stored as USDG there).  To visit my updated grumbles on DBS fixed deposit and their terms click here. Undeniably I have to undertake a bigger custodian risk by not depositing in the SG banks or any MAS approved institution - take that as the trade off for better yield.

I won't elaborate further on Blockfi as you can Google it up. GUSD interest rate is currently 8.6%. It's Cefi, not Defi by the way. This is my sign up referral for those who are interested.

Cryptocurrency in Blockfi

You can buy them with the GUSD deposited or trade between them. Transfer fee of crypto into Blockfi may be charged by your originating platform and may vary according to the crypto that's being transferred.

Blockfi's cash withdrawal is subjected to minimum of GUSD5000 per withdrawal. No minimum for GUSD withdrawal as crypto to other platforms. Subjected to only 1 free withdrawal per month.

Like what you read? Subscribe for updates or view my other posts here
or support by clicking the ads.


Popular posts from this blog

8 lifestyle /habits to live below my means

Be our own life architect

My Defi adventure 4: Farm wrecked