
Earn feature to a hypothetical wallet provider.
You can find the code on Github.
This single flow demonstrates
- Swapping between stablecoins within the Product Account
- Depositing into yield-generating vaults
- Gas sponsorship so user never needs ETH
- Embedded fees so you monetize the transaction
- Position monitoring for dashboards and risk management
- All bundled atomically in one user signature
Key takeaways
- For the end user, everything is fully abstracted away. They just sign on transactions, as always.
- The end user can deposit and withdraw, without requiring gas tokens
- We don’t require the user to sign token allowances
- The wallet provider earns a small fee on every vault deposit.
- Everything has been implemented fully using the Compass typescript SDK