Questions tagged [sushiswap]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

PanckageRouter, SushiSwapRouter - swap of some tokens results in 32603 - execution reverted

In my smart contract I have the following line of code that is supposed to talk to the router contract on the respective chain and swap a specific amount of inputToken to outputToken. There is a list ...
user avatar
0 votes
0 answers
69 views

SushiSwapRouter. getAmountsOut. 1inch / dai. Incorrect price

I'm interract with SushiSwapRouter at 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F. I want to know how much 1inch I get for 1 Dai, and how much Dai I get for 1 1inch. 1inch address ...
user avatar
  • 1
0 votes
1 answer
126 views

How to get Sushiswap and Uniswap prices from API for WETH/DAI on KOVAN?

Where can I find APIs to query data of WETH/DAI Prices on Uniswap and Sushiswap? For the mainnet, there is thegraph.com where one can query price data with pre-defined GraphQL queries, but I can't ...
user avatar
  • 1
1 vote
0 answers
39 views

swapExactTokensForTokensSupportingFeeOnTransferTokens

According to Uniswap, we need to use swapExactTokensForTokensSupportingFeeOnTransferTokens for tokens that take a fee on transfer. My question is, when does this token fee paid? Also, how does this ...
user avatar
  • 1,039
0 votes
1 answer
64 views

0x API showing a different price than what is shown on matcha.xyz

When I run the below it shows a price that is different from what I see on matcha. Trying to figure out how the price on matcha is derived. https://api.0x.org/swap/v1/quote?buyToken=ETH&sellToken=...
user avatar
0 votes
1 answer
312 views

Prices from Uniswap and SushiSwap inconstistent

I wrote a simple script in python to get real-time prices from both UniSwap V2 and SushiSwap. The prices I am getting are inconsistent. I'm trying to get an estimate of USDT to USDC swap and the ...
user avatar
0 votes
1 answer
28 views

How sushiswap exchange price between token, native token?

I am new to blockchain dev. so the first learning I fork sushiswap from github, so the code very not clear for me The difficulty understanding is how to get price tokens to exchange? example 1BNB will ...
user avatar
0 votes
1 answer
35 views

0xAPI is failing to return best price for a token pair versus Sushiswap

We are using the 0xAPI to search price quotes on different exchanges for one of our native index tokens at Piedao (PLAY - 0x33e18a092a93ff21aD04746c7Da12e35D34DC7C4) vs. ETH. The current quote for 1 ...
user avatar
  • 11
0 votes
0 answers
17 views

How to decode a wallet's trading activity?

I've seen a big buyer of a token and am curious to track when/how he sells his position back out. I've decided to track all of his transactions and search for when he starts to sell it back out. How ...
user avatar
1 vote
0 answers
56 views

How does "MasterChef (V2/3)" work in terms of rewards? What does it reward to a provider?

Talking about Sushiswap, Uniswap and similar projects: Suppose, I've deposited tokenA and tokenB into a liquidity pool and received "TokenAB LP" tokens. When I send my "TokenAB LP" ...
user avatar
0 votes
1 answer
135 views

How's Liquidity Pool ID obtained from?

When programming Yield Farming, particularly in JS, MasterChefV3 requires an ID of liquidity pool, in order to make a deposit(...) into it. Where or how does one get a liquidity pool ID? it's not ...
user avatar
0 votes
1 answer
85 views

Is there a grid trading option for Ethereum DEX'es like uniswap and sushiswap?

Currently DEX'es like uniswap and sushiswap can only do basic swap orders, but is there a service or way to do grid trading using these types of DEX'es? Or is there another L2 that can do this? ...
user avatar
1 vote
3 answers
367 views

How to make the basic DEX operations in SushiSwap in Solidity? (internals of SushiSwap)

As a developer who wants to try out and possibly will want to adjust some functionality, how would I: create a liquidity pool create a farm pool do a swap add to / witdraw from liquity pool ...in ...
user avatar
1 vote
0 answers
127 views

How does Sushi deal with limit orders? (Conceptually)

On Sushi.com it is possible to set limit orders. From their documentation: When the user creates a limit order for a purchase or a sale on SushiSwap, the order is sent to an AWS server[...] And in ...
user avatar
0 votes
1 answer
434 views

EIP 1559 transaction for and swapExactTokensForTokens (Web3.py)

path = [TETHER, wAVAX, TIME] contract_txn = contract_TJ_ROUTER.functions.swapExactTokensForTokens( Web3.toWei(380.27, 'ether'), Web3.toWei(0, 'ether'), path , address_wallet, block['timestamp']+30 )....
user avatar
0 votes
0 answers
40 views

UniswapV2Router02 contract's function are failing on forked mainnet

I have forked the mainnet with the ganache-cli --fork <node_url> and I am trying to interact with the UniswapV2Router02 (for eg. the Sushiswap's one), however when I try to do a swap as follows: ...
user avatar
0 votes
1 answer
66 views

When upgrading the smart contract to v0.7.6 of masterchef v2 getting this error TypeError: The "using for" directive is not allowed inside interfaces

interface IRewarder { using BoringERC20 for IERC20; function onSushiReward(uint256 pid, address user, address recipient, uint256 sushiAmount, uint256 newLpAmount) external; function pendingTokens(...
user avatar
  • 61
0 votes
0 answers
329 views

Why I cannot connect SushiSwap to Binance Chain Wallet?

SushiSwap lists Binance Chain Wallet as an option. In Binance Chain Wallet, I already changed the network to Ethereum network as below: then I connect SushiSwap to Binance Chain Wallet but it show ...
user avatar
  • 101
0 votes
1 answer
78 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 ...
user avatar
  • 1
0 votes
0 answers
249 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', ...
user avatar
0 votes
2 answers
621 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.
user avatar
0 votes
1 answer
445 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 ...
user avatar
1 vote
0 answers
90 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 ...
user avatar
1 vote
1 answer
335 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 ...
user avatar
2 votes
2 answers
1k 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 ...
user avatar
3 votes
1 answer
531 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 ...
user avatar
  • 315
2 votes
1 answer
2k 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 ...
user avatar