-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add 1DEX volume #2967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 1DEX volume #2967
Conversation
Hi |
The 1dex adapter exports:
|
i was looking at docs for contract but couldn't find it, can we get more information like smart contracts, and information about trading fees(users pay on each trade)? if it's already in docs then only just send the doc link. |
We haven’t consolidated all contract addresses into the Docs yet. In the meantime, you can check the transactions that occurred on our DEX through the portal.1dex contract. |
we need the volume to be pulled from onchain data, so it's easily verifiable, instead of relying on the direct APIs |
But calculating trading volume directly from the contract requires significant computational resources. |
That's fine, as 1dex is not very big dex, so we should be fine |
hi @valiant-coder Also, can you give us a bit of technical info on how this dex operates, I tried looking at the docs but it was not clear, because users can deposit in EOS or in exsat evm network? |
Hi, please take a look at the emitfilled action in the event.velox contract — it shows trading volume. I tried writing a script to call the contract’s API, but since there are so many transaction records, the execution takes too long. |
… daily transaction volume
The 1dex adapter exports:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm, I am able to pull the events faster if I up the limit to 1000, but the api returns max 10k records? also, you havent answered my question
The upper limit of limit is 100. There are currently two places on the UI that display transaction records. One is "Order History", which only displays the transaction records of the currently logged-in account. The other is Latest Trades on the right, but this does not display detailed information such as the on-chain transaction ID. The underlying matching logic of dex is in the dex.velox contract, and the pools.velox contract records the supported trading pair information. The user entrance is app.1dex, and the user places an order by transferring to the app.1dex contract. The contract identifies the transfer memo to determine the user's order behavior and calls the dex.velox contract. portal.1dex is an asset charging and withdrawal contract that supports the charging and withdrawal of EOS native assets and exsat evm assets. In short, portal.1dex is responsible for the charging and withdrawal of assets, and dex.velox is responsible for matching transactions. |
The 1dex adapter exports:
|
No description provided.