Questions tagged [sushiswap]
The sushiswap tag has no usage guidance.
50
questions
0
votes
1
answer
16
views
Why do i get 0ETH from transaction of 2k
When I swap my KVAI to ETH and it says it successed. I loose nothing of my KVAI and get send 0ETH to my wallet. What is happening and why?
https://arbiscan.io/tx/...
0
votes
1
answer
48
views
Sushi V3Pool smart contract - what to put in "bytes calldata data" parameter of "swap" method? Or how to perform swap programmatically?
Hey guys thanks in advance!
I'm using Sushi.com V3 liquidity pools manually, but I like to automate everything. So I'm trying to create liquidity manager in Go, I use Geth as Golang-Eth SDK but my ...
0
votes
0
answers
30
views
FlashLoanWithSwap
Question: I have tried to flashloan with Solidity using Aave code. The issue occurred when calling the _flashloan function with the token address and amount as arguments.
Steps:
Convert the pool ...
0
votes
0
answers
22
views
Is this token a scam? (ABYS)
I was recently browsing the list of new pools on arbitrum and came across this coin: https://arbiscan.io/address/0xd7d39c9fa965b8b2458f2f6100f78e5ad1b318fe
Without looking too much into it, I saw a ...
0
votes
0
answers
30
views
Ideal cross chain swaps
What will be the ideal scenario for swapping assets in different chains? It's not possible to transfer any asset to a different chain.
What if we make a separate token for the swap? Mint a token ...
1
vote
1
answer
72
views
Is it possible to check the gas fees for a contract before executing the contract itself?
Is it possible to check the overall gas price of a transaction before executing the contract? I'm trying to implement some arbitrage trade through a smart contract that would find me price ...
1
vote
1
answer
36
views
unable to get trade data using @sushiswap/core-sdk
I am trying to get trade information based on user provided information, but code is failing at building Trade.
here is code
const sellAssetValue = {
decimal: 18,
symbol: 'ETH',
}
const ...
0
votes
1
answer
287
views
getAmountIn equivalent of uniswapV3 or how to calculate it?
I was exploring uniswap V3 router, quoter and factory contracts, but it doesn't have getAmountIn function to calculate the minimum amount I must input to get the desired amount. On some thread, I ...
1
vote
2
answers
258
views
How to know base token from the pool
here is quick question. From uniswap pool, which one is base token? token0 or token1?
0
votes
0
answers
75
views
approve spender to swap
i'm trying to swap using 1inch aggregator api and when i try to swap, it says
"Not enough allowance. Amount: 4600000000000000. Allowance: 0. Spender: 0x1111111254eeb25477b68fb85ed929f73a960582&...
0
votes
1
answer
204
views
1Inch with flashloan provider
Is there a way to trade on 1Inch using the API and flash-loaned balance. If it is possible please give me some info. I was seeing the DOC to find how to integrate the flash-loan provider with 1Inch ...
0
votes
1
answer
447
views
getAmountsOut and sushiswap user interface shows different result
Hello eth communities..
I am trying to interact with ethereum chain using programming and I'm using getAmountsOut to get swap path quote using sushiswap's contract. But the result in my vscode and ...
1
vote
2
answers
239
views
What are the things MEV bots can MEV?
Suppose I'm performing swaps form Uniswap, sushiswap etc Can they MEV my funds? What are the things MEV bots can do?
1
vote
0
answers
74
views
After successfully deploying a subgraph via The Graph to Mumbai it suddenly stops working for no apparent reason
so I have succesfully deployed a subgraph to a fork of the masterchef contract from sushiswap. Before beeing able to sync up properly, the subgraph suddenly throws an error and stops. The error ...
2
votes
1
answer
459
views
How can I get all tokens listed on `Sushiswap`
How can I get all tokens listed on Sushiswap. For uniswap we can call factory.getTokenWithId(id) with the token id. But how can we do the same for Sushiswap ?
1
vote
0
answers
104
views
How can I make a flashloan bot
How Can I make a flash loan bot which can operate on Aave, uniswap, sushiswap etc? I know a furucombo, but this is too complicated for me. My Idea is the bot will keep an eye on certain tokens & ...
0
votes
1
answer
674
views
Sushiswap Router Contract Address on Sepolia Public Testnet?
I'm trying to interact with Sushiswap on the Sepolia public testnet, and I already found the Uniswap Router contract address. However, I can't seem to locate the Sushiswap Router contract address for ...
2
votes
1
answer
529
views
SushiSwap contract RouteProcessor: Unknown command code
Im trying to swap tokens on sushiswap from python. For example im trying to swap 1 MATIC for 1 USDC. I have generated a route based on other answers on stackexchange but it didnt work to me and throws ...
0
votes
1
answer
122
views
How to estimate input amount for sushiswap?
For estimation of input amount of tokens while calling quoteExactOutputSingle I use following for uni v2
const pair = await Fetcher.fetchPairData(tokenFrom, tokenTo, provider);
const route = new ...
1
vote
0
answers
231
views
SwapExactTokensForTokens not working properly
I'm building an arbitrage bot that swaps tokens from uniswap and sushiswap (or vice versa). To build it i used the swapExactTokensForTokens() function from uniswap and sushiswap, when i try to swap ...
0
votes
1
answer
570
views
processRoute SushiSwap
I have a problem, this transaction with SushiRouter does not work, and it also writes an error ImportError: cannot import name 'encode' from 'eth_abi' (C:\Users\PC\AppData\Local\Packages\...
2
votes
2
answers
1k
views
Generate route for Sushi Swap Route Processor processRoute contract method
I'm trying to programically use RouteProcessor smart contract by Sushi Swap.
Here you can see contract https://etherscan.io/address/0xF70c086618dcf2b1A461311275e00D6B722ef914.
I gathered information ...
1
vote
0
answers
141
views
Sushi swap Flash swap [closed]
I'm trying to arbitrage between sushi and uniswap whats the smart contract to arbitrage from sushi swap to uniswap , [fl
ash loan from sushi]
1
vote
1
answer
143
views
Member "swapExactTokensForTokens" not found or not visible - Solidity trading bot
I've been working on a arbitrage solidity bot on Uni- and SushiSwap and I have a strange error:
TypeError: Member "swapExactTokensForTokens" not found or not visible after argument-dependent ...
0
votes
1
answer
898
views
Swap not possible, default gas extremely high
EDIT : Problem solve, 10% slippage via Metamask swap
I haven't been able to swap for several hours on Arbitrium. Initially going through the ShushiSwap interface which cannot estimate the gas then not ...
0
votes
2
answers
929
views
Get pair reserves on Uniswap and Sushiswap using the same contract in Remix
i created a contract in Remix to get the reserves of a pair on Uniswap, and it works fine, but when i try to do the same thing using the Sushiswap factory address the function gives me a "...
1
vote
1
answer
484
views
Testing uniswapV2 swap function with hardhat
I wrote a smart contract in solidity and want to test it with hardhat, but I don't know how to solve this issue and sorry at the beginning, it could be a very long post.
My smart contract looks like ...
0
votes
2
answers
2k
views
Interact with swap function for Sushiswap contract
I want to test swapping some ETH for DPX like so:
https://app.sushi.com/swap?inputCurrency=ETH&outputCurrency=0x6C2C06790b3E3E3c38e12Ee22F8183b37a13EE55&chainId=42161
However, when looking at ...
1
vote
0
answers
150
views
sushiswap flash loan never makes a profitable trade?
Any ideas as to why this flashloan contract isn't working?
getting prices from a pricing aggregator
I've verified the prices are accurate
Thought that maybe it was because of slippage/liquidity but ...
0
votes
1
answer
908
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 ...
1
vote
0
answers
211
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 ...
0
votes
1
answer
128
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=...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
231
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 ...
0
votes
1
answer
77
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 ...
1
vote
0
answers
185
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" ...
0
votes
1
answer
819
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 ...
0
votes
1
answer
528
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? ...
1
vote
3
answers
2k
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 ...
1
vote
0
answers
208
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 ...
0
votes
1
answer
1k
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 )....
0
votes
1
answer
107
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(...
0
votes
1
answer
89
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
2
answers
2k
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 them to a user.
0
votes
1
answer
1k
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 ...
1
vote
0
answers
155
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 ...
1
vote
1
answer
625
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 ...
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 ...
3
votes
1
answer
767
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 ...
2
votes
1
answer
3k
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 ...