Closed valieff closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
foz | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 10, 2024 0:43am |
lios | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 10, 2024 0:43am |
moos | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 10, 2024 0:43am |
traditionaldreamfactory | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 10, 2024 0:43am |
The recent changes in the checkout.tsx
file removed the redirection feature for when the wallet is not ready. Instead, a new API call has been added to log token sales information before posting metrics. This helps automate accounting by gathering detailed information about each token sale for reporting purposes.
File | Change Summary |
---|---|
packages/closer/pages/token/checkout.tsx |
Removed wallet readiness redirection, added an API call to log token sales data. |
sequenceDiagram
participant User
participant Wallet
participant CheckoutPage as Checkout Page
participant SalesAPI as Sales API
User->>CheckoutPage: Initiate Token Purchase
CheckoutPage-->>Wallet: Check Wallet Readiness (removed)
CheckoutPage->>SalesAPI: Post Token Sales Log
SalesAPI-->>CheckoutPage: Acknowledge Receipt of Data
CheckoutPage->>SalesAPI: Post Metrics Related to Token Sales
SalesAPI-->>CheckoutPage: Acknowledge Metrics Posted
CheckoutPage-->>User: Confirm Purchase
Objective | Addressed | Explanation |
---|---|---|
Collect and store detailed information for each token sale (#425) | ✅ |
In a code forest dense and grand,
A change was made by the dev's hand.
No more checks if wallets sleep,
Logs of sales, our data keep.
Tokens traded, metrics told,
Accounting now, a story bold. 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Added new api route call to log token sale data.
works with BE: https://github.com/closerdao/closer-api/pull/181
Closes #425