Questions tagged [sushiswap]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
35 views

Transaction failed due to lack of gas

https://etherscan.io/tx/0x7851409abf52ed8b239e0cdc5af0a2f0f43de93f401a53319375bc976df903e0 Hi, My trx failed due to lack of gas. I want to provide liquidity on sushiswap. I transferred both erc tokens ...
0
votes
0answers
40 views

Call to sushiswapRouter.getAmountsOut fails

I am using sushiswapRouter at address 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F to find amountOut for swapping a token pair. I keep getting this error: reason: 'processing response error', ...
0
votes
2answers
65 views

Send lp tokens to burn address

is there any repo or links where i can learn how to burn lp tokens. If someone added liquidity i want the contract itself to burn the lp tokens instead of sending it to user.
0
votes
0answers
61 views

getReserves() function does not provide the information of the swap price

I've made a function to get swap prices of the Sushiswap rates using getReserves() function. As I have learned, in order to get the current swap price of 2 tokens, I need to divide the amount of ...
0
votes
0answers
38 views

Uniswap - Sushiswap arbitrage TX fail?

can someone help me understand why when calling doMySwap to swap WETH to USDT on Uniswap, and then USDT to WETH on Sushiswap, the tx fails? I'm sure the first swap happens correctly, but for some ...
1
vote
0answers
36 views

Are all of these Dexes just frontend interface to coin swapping contracts? Uniswap, 1inch, balance defi-swap, shibaswap, etc

I'm still wrapping my head around all these swapping services like Uniswap, sushiswap, etc... Uniswap Sushiswap 1 Inch Balancer Defiswap Shibaswap Are all those above just front end interface to ...
0
votes
0answers
29 views

Swap with different pairs on different dexes

I'm currently using web3.js to play with the blockchain. I've already been able to swap an asset for another one using a router, but now I would like to swap an assetA for an assetB on a dex, and the ...
1
vote
1answer
147 views

How does flash loan lender know you are not able to pay it back?

Basically I am wondering how does it know when the loan is not paid back. I understand this is easy to check but how can it revert the transaction? For example let's say I borrow 1M USDT, and then I ...
1
vote
2answers
674 views

Can I avoid impermanent loss if I only as a LP of BETH/ETH pair in binance?

Can I avoid impermanent loss if I only stake ETH as a LP of BETH/ETH in Binance? Is BETH's price stable? If I don't want to hold any crypto assets except ETH,what are the best DEFI options to improve ...
3
votes
1answer
256 views

How is uniswap/sushiswap distributing their fees?

As i know, Sushiswap is collecting a 0.3% fee that is then divided into two parts 0.25% goes to LP providers 0.05% goes to treasury for burn note, 0.5% isn't indicated but I suppose that's the case ...
0
votes
0answers
13 views

Does Dapps such as Uniswap and Sushiswap transactions are made 100% on-chain?

I'm just wondering, it looks like Dapps such as Uniswap and Sushiswap transactions are made 100% on-chain, because some claimed those apps are 100% decentralized. Is it true that all transactions are ...
2
votes
1answer
1k views

uniswap solidity contract: swapExactTokensForTokens Failed in my own smart contract

I am using sushiswap to transfer weth to dai. Everything goes fine when I use web3.js to call swapExactTokensForTokens directory. However, thing goes wrong when I try to include the ...