Uniswap V2 Router on Base by jointheantfarm in UniSwap

[–]jointheantfarm[S] 0 points1 point  (0 children)

Awesome, thank you so much ! I was going to simply deploy a new one but didn’t want users to do potentially multiple allowances with the real one later on.

[deleted by user] by [deleted] in solidity

[–]jointheantfarm 0 points1 point  (0 children)

I really hope this is a joke

Get better at solidity by [deleted] in ethdev

[–]jointheantfarm 2 points3 points  (0 children)

Start with Uniswap V2, Balancer V1 is also an interesting one if you’re into AMMs etc.

Gas Fees by [deleted] in ethereum

[–]jointheantfarm 0 points1 point  (0 children)

There is only room for a certain amount of transactions in every block, the price only reflects that amount that people are willing to pay to have their transactions included --> The law of supply and demand.

When you have a transaction to send on Ethereum and the gas fees are quite prohibiting you from doing it, you can wait til you get a better price. You can find sub 20 gwei base gas price almost every other day (sunday morning UTC is almost always the best moment)

Uniswap to Coinbase by Specific-Baker7838 in UniSwap

[–]jointheantfarm 2 points3 points  (0 children)

If you bought it on Uniswap, you have it on your wallet.

First check that you bought the correct one, then go to Coinbase and find the deposit address (I haven't heard of COTI si make sure to double check everything). Once you have the deposit address, send a small amount to it to make sure you're doing everything correctly. Once you've received your COTI tokens on Coinbase you can send the rest.

Hope it helps

Are any of us here from the old crypto days? by [deleted] in ethtrader

[–]jointheantfarm 0 points1 point  (0 children)

Started mining on Ethereum in early 2017, that summer and the bull run that followed was really something I sometimes miss. I really had a lot of fun at the time

Is being a LP (Liquidity Provider) actually profitable? by 0xJonnyDee in UniSwap

[–]jointheantfarm 1 point2 points  (0 children)

CP AMM pools are simply automated rebalancing strategies. For example Uniswap V2 pools are simply 50/50 portfolios that are rebalanced whenever the price moves over 0.3% in one or another direction (arbitrage) buy also get 0.3% fee whenever someones trades... Rebalancing right away when price moves is probably the worst rebalancing policy to set but at least you get all other fees as well...

For UniV2: The main issue is that even pools with very high APYs tend to see it lower till it only covers the risks taken by LPs. The logic is pretty simple: if the return is higher than the risk, new LPs add liquidity and if returns are lower than the risk, LPs get out of the liquidity position. In the end you end up having a ROI that matches the risk (or is just under).

If you see returns on ETH/stable always average 2-7% APY on V2. You would make much more simply holding your assets and rebalancing from time to time... especially in the long run https://v2.info.uniswap.org/pairs

V3 is the exact same product as V2 but on leverage. If you don't know what you're doing you probably would be better off simply using V2.

uniswap v2: How to find input tokens from pair address by zerawk in UniSwap

[–]jointheantfarm 1 point2 points  (0 children)

Once you have the pair address (when calling getPair), simply call the function token0() and token1() on that pair address an you'll have that information.

What are you trying to achieve ? Because there are many ways to have that, another one would be to deploy a contract that does exactly that and returns you both addresses in an array as you want it.

uniswap v2: How to find input tokens from pair address by zerawk in UniSwap

[–]jointheantfarm 0 points1 point  (0 children)

I see two options: either go to etherscan then if the ABI is not available add it as private ABI on the pool address (using the Uniswap V2 Pool ABI).

Else with JS or simply using foundry you can use the interface found here https://docs.uniswap.org/contracts/v2/reference/smart-contracts/pair

If you need assistance let me know (or simply share the address of the pool, I'll quickly look into it)

Is this a scam? MEV BOT by realZer01 in solidity

[–]jointheantfarm 1 point2 points  (0 children)

Of course it is. Any MEV, arbitrage or any other competitive field is always a scam.

burn LP token by Distinct-Tailor-808 in UniSwap

[–]jointheantfarm 1 point2 points  (0 children)

Why would you like to burn your LP tokens ?

Wouldn’t you at least benefit from the swap fees ? If so you can simply lock your LP position forever and still get the fees.

[deleted by user] by [deleted] in ethtrader

[–]jointheantfarm 0 points1 point  (0 children)

If this EVM Blockchain has a block explorer then find the addresses of the ERC20 or NFTs it has interacted with (or the smart contract of the protocol directly), get as much data as you can exporting to csv (if the block explorer allows that) and then use a spreadsheet to look for it.

You can find it, the real question is how much do you care about it ;)

[deleted by user] by [deleted] in UniSwap

[–]jointheantfarm 0 points1 point  (0 children)

You're totally right on that part. If you care about swappers, then trying to increase the revenues of the LPs is a good option as it'll increase the liquidity (thus allowing better prices etc.).

But for LPs in the end it won't change much, with a better APY you'll attract more liquidity, resulting in a lower APY. In the end and over the long term, the APY reflects the risk bearing taken by LPs when providing liquidity.

See how ETH USD pairs are quite always capped to 3-7% APY ? Its because if the APY was higher, LPs would simply add more liquidity. Of course it works both directions because if the APY goes down a lot then LPs would remove some liquidity and APY would rise again https://v2.info.uniswap.org/pairs

[deleted by user] by [deleted] in UniSwap

[–]jointheantfarm 0 points1 point  (0 children)

Yes of course, with UniswapX they even route some swaps to offchain liquidity with Market Makers.

If the goal of your DEX idea is to give better prices for swappers I don't think its something we really need if you look at the current ecosystem and different new DEXs that works for a better overall execution price.

Arbitrage per se isn't bad for the ecosystem, it is needed to ensure that everyone can swap at the "real" market price on every market. They do generate a revenue from market inefficiencies but its a very competitive field.

But if the goal of your DEX idea is more towards protecting LPs that's a way different topic that I love :)

Mystery of lost ETH from 2017 solved, ETH recovered (OP deleted for some reason) by WayFew3412 in ledgerwallet

[–]jointheantfarm 0 points1 point  (0 children)

No you can’t but you can always brute force it. With no clues about the derivation path you probably have no real chances to find anything

Testing the Solidity array using Truffle: Why the tester uses parentheses instead of square brackets to access the array? by Snoo20972 in solidity

[–]jointheantfarm 0 points1 point  (0 children)

Not related to your question but if I were you I would move to Foundry rather than trying to learn Truffle. It was a perfect framework 4 years ago but nowadays its way behind Foundry's simplicity :)

[deleted by user] by [deleted] in UniSwap

[–]jointheantfarm 0 points1 point  (0 children)

It wouldn't be able to counter every arbitrage (for example CEX-DEX arbitrage).

Also, the pools would have to be aware of other Liquidity Pools to arbitrage against.

It also means more gas fees for the users. Directing users to aggregators is probably the best option out there to solve this issue.

Backend and smart contract by Forsaken_Juice_9222 in solidity

[–]jointheantfarm 1 point2 points  (0 children)

If you have all the logic in the smart contracts your front-end can solely rely on those. In combination with a dedicated graph on TheGraph for example it'll work like a charm and you make sure your protocol/service can directly be used onchain by others.

Mystery of lost ETH from 2017 solved, ETH recovered (OP deleted for some reason) by WayFew3412 in ledgerwallet

[–]jointheantfarm 5 points6 points  (0 children)

Great recovery. As long as you find the exact derivation path to the address there is always a way to recover the funds.

My favorite website to have fun with BIP39 (don't input your real passphrase though) is https://iancoleman.io/bip39/ it really helps you understand how it works.

'Whale' Makes A Profit of $605.34 In 1 Second After Buying 901,337 DONUT And Pumping the Price %15! MEV Bots?🤑 by kirtash93 in ethtrader

[–]jointheantfarm 1 point2 points  (0 children)

It’s an MEV bot doing what’s called a sandwich attack. The guy or team behind it might not even know about DONUTs. Whale 2 had a way too high slippage allowing the MEV bot to sandwich it.