This is a simple React app which showcases the usage of Marinade TS SDK to help you build your own applications based on Marinade!
This application can be tested here (devnet)!
- Clone the repo and install dependencies
git clone git@github.com:marinade-finance/liquid-staking-referral-app.git
cd liquid-staking-referral-app
npm run install
- Set the
Referral Code
insrc/components/marinade/MarinadeProvider.tsx
so the code reads as:
...
const referralCode = new web3.PublicKey('<<YOUR REFERRAL CODE>>')
const config = new MarinadeConfig({ connection, publicKey, referralCode })
const marinade = new Marinade(config)
...
- Run it:
npm run dev
Now a new tab in your browser should be opened with the example app loaded.