Amr Ali Profile picture
May 23 25 tweets 6 min read
#Week_2: #DeFi Day 5: Decentralized Finance: On Blockchain- and Smart Contract-Based Financial Markets by @chainomics part 2

*Smart Contract-Based Reserve Aggregation.
Here: The smart contract will compare prices from all liquidity providers, accept the best offer -
2- on behalf of the user, and execute the trade. It acts as a gateway between users and liquidity providers, ensuring best execution and atomic settlement.

*Peer-to-Peer Protocols: It is an alternative to exchanges or liquidity pools, also called over-the-counter (OTC) protocol
3- They mostly rely on a two-step approach, where participants can query the network for counterparties who would like to trade pair of crypto and then negotiate the exchange rate bilaterally. Once the two parties agree on a price, Trade is executed on-chain via a smart contract
4- *Decentralized Lending Platforms,
Loans are an essential part ofDeFi . There are a variety of protocols that allow people to lend and borrow cryptoassets. Decentralized loan platforms are unique in the sense that they require neither the borrower nor the lender to -
5- identify themselves. Everyone has access to the platform and can potentially borrow money or provide liquidity to earn interest. As such, DeFi loans are completely permissionless and not reliant on trusted relationships.
For protection: there is 2 approaches, 1st: Flash loans
6- =credit can be provided under the condition that the loan must be repaid atomically, meaning that the borrower receives the funds, uses, and repays them—all within the same blockchain transaction, other wise the transaction will be invalid and the results are reverted
7- So, they are an efficient new instrument for arbitrage and portfolio restructuring.

Second, loans can be fully secured with collateral. The collateral is locked in a smart contract and only released once the debt is repaid.

There are 3 types to discuss,
8- *Collateralized Debt Positions; Some DeFi applications allow users to create collateralized debt positions and thereby issue new tokens that are backed by the collateral. To be able to create these tokens, the person must lock cryptoassets in a smart contract. Eg, Makerdao-DAI
9- Here, you borrow stablecoin $DAI, and put 150% of the value borrowed as collateral (ETH mainly),
The loan can be used for consumption, allowing the person to overcome a temporary liquidity squeeze or to acquire additional cryptoassets for leveraged exposure.
10- *Collateralized Debt Markets; Instead of creating new tokens, it is also possible to borrow existing assets from someone else. So this approach requires a counterparty with opposing preferences. meaning: For someone to to borrow ETH, Other person must be willing to lend ETH.
11- For interest Rates for sure! the demand decide the rate.
There is a large variety of lending protocols, like @dYdX @AaveAave and @compoundfinance

*Decentralized Derivatives; They are tokens that derive their value from an underlying asset's performance,--
12- The outcome of an event, or the development of any observable variable. They usually require an oracle to track these variables= introducing some dependencies and centralized components. but it can be reduced when the derivative contract uses multiple independent data sources
13- We differentiate between asset-based and event-based derivative tokens. We call asset-based one when its price is a function of an underlying asset's performance. We call an event-based one when its price is a function of any variable that is not the performance of an asset
14- *On-Chain Asset Management;
Just like traditional investment funds, on-chain funds are mainly used for portfolio diversification. They allow users to invest in a basket of assets and employ a variety of strategies without having to handle the tokens individually. In contrast-
15- to traditional funds, the on-chain variant does not require a custodian. Instead, the cryptoassets are locked up in a smart contract. The investors never lose control over their funds,
The smart contracts are set up in a way that they follow a variety of simple strategies-
16- As automatic rebalancing of portfolio weights and trend trading, using moving averages.

On top, asset managers are limited to actions in accordance with the fund's ruleset and the risk profile stipulated in the smart contract
Leading to lower fund setup and auditing costs.
17- Further more; Smart contracts force the managers to stick to the funds' strategies. Trading restriction parameters such as maximum concentration, price tolerance, and the maximum number of positions, as well as user and asset whitelists and blacklists.
18- *OPPORTUNITIES of Defi; DeFi may increase the efficiency, transparency, and accessibility of the financial infrastructure. Moreover, the system's composability allows anyone to combine multiple applications and protocols, thereby creating new and exciting services.
19- Efficiency: While much of the traditional financial system is trust based and dependent on centralized institutions, DeFi replaces some of these trust requirements with smart contracts. The contracts can assume the roles of custodians, escrow agents, and CCPs.
20- Similar efficiency gains are possible for almost every area of the financial infrastructure.

Additionally, token transfers are much faster than any of the transfers in the traditional financial system.

Transparency: All transactions are publicly observable-
21- And the smart contract code can be analyzed on-chain. The observability and deterministic execution allow at least in theory* an unprecedented level of transparency.

Accessibility: DeFi can be used by anyone. Creating a genuinely open and accessible financial system
22- and Composability for sure, one of the prominent features.

*Risks: DeFi also has certain risks, namely, smart contract execution risk, operational security, dependencies on other protocols and external data, illicit Activity and scalability
23- CONCLUSION; DeFi has unleashed a wave of innovation. On the one hand, developers are using smart contracts and the decentralized settlement layer to create trustless versions of traditional financial instruments.
24- On the other hand, they are creating entirely new financial instruments on top of underlying public blockchain; Atomic swaps, autonomous liquidity pools, decentralized stablecoins, and flash loans are few of many examples that show the great potential of this ecosystem.
25- If the issues they face keep getting resolved; DeFi may lead to a paradigm shift in the financial industry and potentially contribute toward a more robust, open, and transparent financial infrastructure.
for the full article:research.stlouisfed.org/publications/r… thanks for prof @chainomics

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Amr Ali

Amr Ali Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @amrali0fx

May 26
#Week_3: #P2E, Day 2: Level 2: Game Monetization, The Promise of Play-And-Earn by @0xRyze

A glance into Game Monetization & how to keep games running

@AxieInfinity has been making headlines in the news for variety of reasons: its token’s price action, how it creates work- Image
2- For people globally and its incredible profit surge, surpassing the revenue of big projects (84.9 million USD in funds for its treasury! as of jul 2021)

Games as Products, server costs, the cost of hiring engineers and developers to build them, etc.
3- Keeping a (Game’s) Engine Running;

Game developers have a choice of how to monetize and fund their games. They must find ways to (1) fund initial development, (2) make revenue from the game that outstrips expenses.

Breaking down different incentives to monetize it;
Read 25 tweets
May 24
#Week_3: #P2E, Day 1: Crypto Gaming, a thought piece
by @QuirkyQwerty_

"How to think about crypto games"

One of the greatest takeaways for crypto natives from the bull market of 2021 is that the next million crypto users will be onboarded through “consumerism”, not DeFi,
2- Meaning the stuff which are consumed, used regularly, that the average person in the street can understand it; unlike finance.

So there will be a generational opportunity to participate in this paradigm shift, for those who pay close attention.

Here are some thoughts
3- The state of crypto gaming | What does crypto gaming look like today?

*the player point of view (POV);
-P2E for now is just yield farming with extra steps.
-Gaming Guilds resemble factories hiring laborers to perform small tasks

*Game POV;
-Asset A is used to farm Token X
Read 13 tweets
May 22
#Week_2: #DeFi Day 4: Decentralized Finance: On Blockchain- and Smart Contract-Based Financial Markets by @chainomics, will break it into 2 parts

A very good read coming from an academic professor!

This article highlights opportunities and potential risks of the DeFi ecosystem.
2- DeFi uses smart contracts on top of blockchains to create open protocols that replicate existing financial services in a permissionless, interoperable, and transparent way,
Agreements are enforced by code (no middleman) transactions are executed in a secure and verifiable way.
3- So the adv here: unprecedented transparency, equal access rights, and little need for custodians, central clearing houses, or escrow services, as most of these roles can be assumed by "smart contracts."

So The backbone of all DeFi protocols and applications is smart contracts
Read 27 tweets
May 20
#Week_2: #DeFi, Day 3: A Beginner’s Guide to (DeFi) by @sid_coelho

Actually it has a lot in common with yesterday's article, so i will try to focus on the new angels.

Crypto promises to make money and payments universally accessible, no matter where they are in the world.
2-DeFi takes that promise a step further. Imagine a global, open alternative to every financial service you use today -savings, loans, trading, insurance and more- accessible to anyone in the world with a smartphone and internet connection.
This is now possible by smart contracts
3- Smart contracts are programs running on the blockchain that can execute automatically when certain conditions are met. Not only that, it has the composability function: meaning we can build on top of it, more sophisticated products, which is called: decentralized apps or dapps
Read 16 tweets
May 17
#Week_2: #DeFi, Day 1: Decentralized Finance - the High Level Basics - by DeFi Education

In a sentence, banks can be replaced by software code

Long-term the majority of transactions will be done with smart contracts. Similar to how e-mail displaced the majority of snail mail,
2- Smart contracts will replace middlemen.

Before Defi, Bitcoin and other major crypto currencies like Ethereum were *unproductive assets* in your portfolio,

With smart contracts, you can now take loans against it *or* loan it out, and some other Utilities.
3- Collateralized Loan: Imagine a world where you could lend out money, knowing that there was collateral staked (avoid total loss),

On the borrower side, imagine a world where you can take out a loan for stable coins without interacting with a bank. This is what exists today.
Read 15 tweets
May 16
#Week_1: #Tokenomics Day 5: On the meme of market caps & unlocks by @cobie

terms repeated in the previous summaries: Mcap: price multiplied by the amount of tokens that are currently in circulation.

FDV: price multiplied by the total amount of tokens that will ever exist
2- Smth interesting here, we can consider Market Cap as a measure of public $ buying= demand, while FDV is a measure of supply.

As demand increases for unlocked coins= market cap UP, FDV increases proportionally, even though demand for the locked ones didn't necessarily increase
3- let's introduce a new term: Bullish unlock?
if unlocks increase supply but not demand, how does a bullish unlock happens?

locked tokens can have an active market of their own, ppl buy or sell locked coins with a discount to the market price, Consider it OTC for an allocation,
Read 19 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(