A simple, static interface for a PoolTogether prize vault with extremely minimal dependencies and zero third party APIs, built with SvelteKit.
v0.2.3 (latest)
- HTTPS: classic.cabana.fi
- IPFS: bafybeicdmlomwiojl2o4gqydezetxarm22mpebnhusztsnr6i5ub4drgo4 (fleek, dweb)
v0.2.2
v0.2.0
- Connecting wallets compatible with EIP-6963 and/or EIP-1193
- Resolving ENS name and avatar for connected wallet
- Caches provider uuids for efficiently auto-reconnecting
- Depositing into the prize vault
- Withdrawing from the prize vault
- Zapping into the prize vault with any token
- Swap route lookups are entirely onchain (using DSKit)
- Displaying relevant token prices
- Token price lookups are entirely onchain (using DSKit)
- Displaying prizes available to be won
- Displaying amount deposited vs amount won
- Transfer and prize-related events are efficiently cached locally
- Gamified prize checking experience
- Dynamically generated plinko animation with relative odds
- Auto-compounding of prizes back into prize vault
- Easy in-app prize hook setup
- Simple in-app recovery in case of any contract failures
- Claiming bonus rewards
- Displaying claimed bonus rewards
pnpm i
- Install the app's dependenciespnpm dev
- Start the app's dev environment at localhost:5173pnpm build
- Build the app into the/build
folderpnpm preview
- Host the built app at localhost:4173pnpm check
- Check the app for any Svelte errors/warnings
The app can be pointed at any prize pool and vault combination, configurable through the src/lib/config.ts
file.
Note
The app queries other tokens' prices with respect to the prize vault's underlying token. If you indicate this is a USD-pegged stablecoin through the isUsdEquivalent
parameter, the app will append prices/values with "$", otherwise it will display the token's symbol.
The app builds statically, meaning it can easily be hosted on Github Pages, IPFS, IPNS, through an ENS's content hash, Arweave, etc.
Important
Accessing the app through a subpath (e.g. www.mysite.com/pt-classic/
) is not currently supported.