1
Add the two contracts
contracts.ts
2
Show the customer's position
One call returns everything your screen needs.
position.ts
3
Let them stake
Two transactions, both signed by the customer.The customer receives sUSDh in the same wallet that signed.
stake.ts
4
Check where they are
Before you show the stake button, make sure staking is offered where your customer is. See Rules for offering staking.
Next
- Unstaking and claiming: Stake and unstake from code
- Showing rewards: Show balances and rewards