SDK Demo App Update – Referral System Integration
We have an update to our SDK demo app! In addition to showcasing swap functionality, the app fully supports the STON.fi referral system – supporting developers to manage and claim referral fees directly.
What’s New:
Referral Integration on Swap Page:
Define referral addresses and set referral fee percentages for swaps.
Vault Page for Fee Claims:
Switch to the Vault page, paste a pool address which the swap was made, and claim referral fees from 1 or 2 vaults.
Note: The vault function is only for v2 contracts. For v1 contracts the referral fee goes directly to the wallet as part of the swap operation.
Read more about the vault contract - link
Use deep links to claim from specific pools effortlessly. Example - link
Try it out:
Swap Demo: sdk-demo-app.ston.fi/swap
Vault Demo: sdk-demo-app.ston.fi/vault
This update streamlines referral fee management and vault interactions – enhancing developer flexibility.
We hope this improves your workflow. Any questions, feel free to reach out.
Post #11
457