Skip to content
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: add token approval draft #100

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

sarneijim
Copy link
Collaborator

No description provided.

@sarneijim sarneijim force-pushed the feat/token-approval-draft branch from 4b4a782 to e8b802a Compare January 28, 2025 15:26
@sarneijim sarneijim requested a review from a team January 28, 2025 15:27
@@ -199,15 +211,15 @@ export async function decodeSellPayloadAndPost(
export async function confirmFund(data: ConfirmFundRequest) {
const { orderId, ...payload } = data;
await sellAxiosClient.post(
`/webhook/v1/transaction/${orderId}/accepted`,
`/webhook/v1/transaction/fund/${orderId}/accepted`,

Choose a reason for hiding this comment

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

why do we need /fund here ?
is this going to be separate endpoint?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is what we discussed this morning.
I think it would be helpful to create different endpoints, as we can apply specific validations depending on the flow. For example, the "buy" flow could have a different "status" flow compared to the "sell" flow.

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