Binance Square

uniswapv3

13,102 views
18 Discussing
Phoenix Group
--
--
Bullish
👆👆👆You can generate commissions by providing liquidity to different DEXs. Decentralized Exchanges (DEXs) have surged in popularity by supporting trading practices and generating over $500 billion in volume. A liquidity pool is essentially a collection of cryptocurrencies, that serves as a digital repository of tokens or cryptocurrencies within a DEX, providing a mechanism for investors or contributors to earn passive income.  #AMM s utilize algorithms and pricing formulas to determine token prices based on the proportion of assets in the pools. Instead of distributing liquidity evenly across an infinite range as in traditional Automated Market Makers (AMMs), #CLMM s allow for the pooled funds to be utilized more efficiently within the market or exchange. CLMM, a new generation mechanism!👍👍 Platforms using CLMMs! #Solana $SOL Orca Whirlpools #UniswapV3 Cetus MoveEX $SUI
👆👆👆You can generate commissions by providing liquidity to different DEXs. Decentralized Exchanges (DEXs) have surged in popularity by supporting trading practices and generating over $500 billion in volume.
A liquidity pool is essentially a collection of cryptocurrencies,
that serves as a digital repository of tokens or cryptocurrencies within a DEX, providing a mechanism for investors or contributors to earn passive income. 
#AMM s utilize algorithms and pricing formulas to determine token prices based on the proportion of assets in the pools.

Instead of distributing liquidity evenly across an infinite range as in traditional Automated Market Makers (AMMs), #CLMM s allow for the pooled funds to be utilized more efficiently within the market or exchange. CLMM, a new generation mechanism!👍👍

Platforms using CLMMs!
#Solana $SOL
Orca Whirlpools
#UniswapV3
Cetus
MoveEX $SUI
--
Bullish
(banteg) our resident @FP_Crypto has reminded me of a great feature in #uniswapv3 pools when doing low-level trades. read the first snippet carefully. when you trade directly with a pool, it first sends you the swap output. then it makes a callback to your contract, and only when the control is returned, it checks you have sent it the input tokens. this little time travel trick allows for things like leveraging/deleveraging. for example, here i used it to unwind a baseline position by swapping yet to be unlocked collateral for weth. unfortunately, it doesn't work in this case, because of the reentrancy lock. the repay call instantly deposits the recovered weth into the floor position by reminting it, and we are still in the callback when this happens. i have coded a different version with a backup flashloan facility, so stay tuned! p.s. thruster (uni v3 on blast) has removed the flash function but has overlooked the flash feature in swap.
(banteg)

our resident @FP_Crypto has reminded me of a great feature in #uniswapv3 pools when doing low-level trades.

read the first snippet carefully. when you trade directly with a pool, it first sends you the swap output. then it makes a callback to your contract, and only when the control is returned, it checks you have sent it the input tokens.

this little time travel trick allows for things like leveraging/deleveraging. for example, here i used it to unwind a baseline position by swapping yet to be unlocked collateral for weth.

unfortunately, it doesn't work in this case, because of the reentrancy lock. the repay call instantly deposits the recovered weth into the floor position by reminting it, and we are still in the callback when this happens.

i have coded a different version with a backup flashloan facility, so stay tuned!

p.s. thruster (uni v3 on blast) has removed the flash function but has overlooked the flash feature in swap.
Login to explore more contents
Explore the latest crypto news
⚡️ Be a part of the latests discussions in crypto
💬 Interact with your favorite creators
👍 Enjoy content that interests you
Email / Phone number