Skip to content

Bump Feat: Csi 1413 create UI for exchange - #328

Draft
irshadCypherock wants to merge 9 commits into
stagingfrom
CSI-1413_Create-UI-for-exchange
Draft

Bump Feat: Csi 1413 create UI for exchange#328
irshadCypherock wants to merge 9 commits into
stagingfrom
CSI-1413_Create-UI-for-exchange

Conversation

@irshadCypherock

Copy link
Copy Markdown
Collaborator

No description provided.

Integrated the API calls for the Swap Token functionality
Added a new method that downloads a JS object as a CSV file.
It is used to download the swap transactions that took place.
In the Swap History panel, a drop down
will list all the wallet that are
available and selecting them will list
only the transactions in that wallet
Comment on lines +170 to +172
const { data } = await axios.get(`${baseUrl}/exchangeDetails`, {
params: { from: fromToken.slug, to: toToken.slug, amount: amountToSend }
});

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error handling missing

Comment on lines +186 to +194
const { data } = await axios.get(`${baseUrl}/transaction`, {
params: {
walletId,
from: fromToken.slug,
to: toToken.slug,
amount: amountToSend,
address: receiveAddress
}
});

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error handling missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants