Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [1inch-dex-aggregator]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
33 views

How to foundry test a function which uses 1Inch Swapping functionality?

I'm working on a protocol's Adapter contract. The Adapter contract have a function, which let users sell their PortalEnergy (assume tokens) to get ETH. They use 1Inch Swapping functionality to get ...
DevABDee's user avatar
  • 473
0 votes
0 answers
34 views

What are the correct units and parameters for generating swap calldata using the 1inch API?

I using the 1inch API to build a dex and am struggling to execute a swap correctly. I believe the problem may have to due with when to use WEI and when to use the actual number of tokens I am desiring ...
user23470409's user avatar
2 votes
1 answer
56 views

1inch spot price aggregator fails for some historic blocks but not others

I am trying to price arbitrary ERC-20 tokens at past blocks, and it turns out this is a challenging problem. Currently, I query the Uniswap v3 subgraph at a past block, but this doesn't always return ...
Cooper Maira's user avatar
0 votes
0 answers
66 views

1 inch has Solidity interfaces for smart contract interactions?

As of my last knowledge 1inch provides a set of APIs for interacting with its services, but it may not have a direct Solidity interface for smart contract interactions. Instead, developers typically ...
user103592's user avatar
0 votes
1 answer
177 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 ...
Biruk Damte's user avatar
1 vote
0 answers
136 views

Can we rely on 1inch Swap API price feeds

It is not clear to me how 1inch swagger API is getting the prices from different dexes. Can we rely on them? As they are not open-sourced. I tried using the aggregator but faced this issue RPC timeout ...
Saikat Karmakar's user avatar
0 votes
1 answer
105 views

RPC timeout while doing multicall on `1inch aggregator` on local forks

I may be doing this wrong but I think there is an issue when performing multicall Spot price aggregator contract.But when it comes to multicall ganache/hardhat all make Time out error. Poc: Performed ...
Saikat Karmakar's user avatar
1 vote
0 answers
25 views

Uniswap: Why is there an intermediary when swapping?

I am trying to understand why sometimes when a wallet buys a token the Uniswap pool sends the token through an intermediary address before it gets sent to the buyer. Here's an example of such ...
Martin's user avatar
  • 11
0 votes
1 answer
52 views

I want to fetch live Feed's From Dex's like Uniswap sushi and pancake

I'm working on a project where we need to get prices from 3 to 4 dex on the Ethereum chain and the Solana chain. What is the best way to get a live feed from Ethereum dex? I want to fetch the live ...
Anwar's user avatar
  • 51
2 votes
1 answer
830 views

Get all liquidity in all dex of a token

Is there a way to get all the liquidity of a token? Also locked and burned liquidities, actually my aim is to build something similar to token sniffer, thanks for your help
Mehran Ra's user avatar
  • 590
1 vote
1 answer
299 views

Call Requests Limit

I made a bot swap on bsc network using 1inch 0x and para swap.. everything is great except one thing which is Call requests I can’t make call every 1 sec for more than 1 token when make 2 tokens my ip ...
Nashwan Salah's user avatar
0 votes
0 answers
265 views

Fork a dex aggregator

I'm trying to build a dex aggregator for myself, but dex aggregators are not open source so they cant be easily forked, actually I don't want to use the sdk, my goal is to build a complete dex ...
Mehran Ra's user avatar
  • 590
0 votes
1 answer
228 views

How does 0x V4 proxy handle the ERC20 trade in smart contract level?

I am trying to review a integration code. The protocol integrate with ZeroEx, and use the code like address(ZeroExSwapTarget).call(tradeCallData) the zeroExSwapTarget is https://etherscan.io/...
ladboy233's user avatar
1 vote
0 answers
101 views

Is there an API to create/remove Liquidity Pools on different DEXes?

I'm looking for a way to automate liquidity allocation into the most profitable pools, for this, I need the ability to create/remove liquidity pools on the most popular DEXes. At a low level to do ...
vach's user avatar
  • 111
1 vote
1 answer
77 views

Contract function only works on array with one item

I have created a contract to loop over an array of token addresses and call the 1inch oracle. It only works when the token array is of length 1. Have been testing on remix. when inputting the token ...
D10001's user avatar
  • 23
1 vote
1 answer
949 views

Can i use the data returned from 1inch's api swap, to perform a swap from a smart contract? (i.e for flashloans)

I'm trying to use the data returned from 1inch's Swap API endpoint, to essentially perform a swap from a smart contract instead of from an EOA. The old oneSplit contract provided an easy way to do ...
Bitme TenTimes's user avatar
1 vote
0 answers
1k views

1inch aggregation protocol v4 - basic example of swap

I'm trying to figure out how I can use 1inch AggregationRouterV4 as a smart contract and not as an API. I have experience with ethers , but I can't find any example and tests on how to work with a ...
Melixion's user avatar
  • 111
0 votes
1 answer
268 views

How to use EIP-1559 gas instead of legacy gas in 1inch APIs?

I'm developing a web application (both frontend and backend) that executes swaps through the 1Inch APIs. When executing a transaction, it looks like it's using the legacy gas. However, I would like to ...
Javier Jordan's user avatar
0 votes
1 answer
1k views

How does 1inch do gasless swaps without any ETH?

Reference: https://blog.1inch.io/the-1inch-limit-order-protocol-v2-is-released-81c6802db1bd 1inch DEX aggregator has limit orders, but they offer a way to do gasless swaps for erc20 tokens. If a ...
Patoshi パトシ's user avatar