-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: Dex Trades per Token #876
base: develop
Are you sure you want to change the base?
Conversation
00f6474
to
7ebfae4
Compare
478d2d9
to
b75faf8
Compare
Regression, waiting for aeternity/ae_mdw#1815 (comment) to be resolved |
c2611a7
to
5488339
Compare
@@ -9,10 +9,10 @@ | |||
</template> | |||
|
|||
<script setup> | |||
import { useAppStore } from '@/stores/app' | |||
import { useUiStore } from '@/stores/ui' |
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.
not related to the feature, renamed confusing store name. App is too general
@@ -13,8 +13,7 @@ export const useDexStore = defineStore('dex', () => { | |||
return 1 | |||
} | |||
|
|||
const { data } = await axios.get(`${DEX_BACKEND_URL}/pairs/swap-routes/${tokenId}/${AE_TOKEN_ID}`) | |||
|
|||
const { data } = await axios.get(`${DEX_BACKEND_URL}/swap-routes/${tokenId}/${AE_TOKEN_ID}`) |
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.
dex changed link just today
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.
In general LGTM.
But I have a question regarding test tokens. For example if nobody was trading token there would be no trade activity. When I open Trades tab the page will be in endless loading:
https://pr-876-aescan-testnet.stg.service.aepps.com/tokens/ct_25e9fYcVxp8qHhiHE3ZZKv1qsRZ8knvJefcUmTchZi33WANgt7?type=trades
2024-11-25.5.36.51.mov
@Liubov-crypto good catch! Finally got it fixed. |
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.
Looks good, just one http call seems can be optimised.
tokenPromise.then(() => fetchTokenPrice()), | ||
Promise.allSettled([ | ||
fetchTotalSupply(), | ||
tokenPromise.then(() => fetchTokenPrice()), |
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.
Isn't tokenPromise
called two times?
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.
EDIT:
I just noticed that the button "Newer" seems to always be disabled? https://pr-876-aescan.stg.service.aepps.com/tokens/ct_2U1usf3A8ZNUcZLkZe5rEoBTxk7eJvk9fcbRDNqmRiwXCHAYN?type=trades
dex-trades.mov
Good catch, ser. There was FE wrong implementation + its a blocking MDW issue. |
Description
resolves #522
Demo
Checklist: