Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/generationsoftware/pt-classic
A simple, static interface for a PoolTogether prize vault with extremely minimal dependencies and zero third party APIs, built with SvelteKit.
https://github.com/generationsoftware/pt-classic
blockchain crypto defi ethereum pooltogether prizes savings svelte sveltekit typescript viem wagmi
Last synced: 27 days ago
JSON representation
A simple, static interface for a PoolTogether prize vault with extremely minimal dependencies and zero third party APIs, built with SvelteKit.
- Host: GitHub
- URL: https://github.com/generationsoftware/pt-classic
- Owner: GenerationSoftware
- Created: 2024-08-31T02:33:31.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-01T23:37:05.000Z (about 1 month ago)
- Last Synced: 2024-10-13T00:03:43.447Z (27 days ago)
- Topics: blockchain, crypto, defi, ethereum, pooltogether, prizes, savings, svelte, sveltekit, typescript, viem, wagmi
- Language: TypeScript
- Homepage:
- Size: 3.5 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PT Classic
A simple, static interface for a PoolTogether prize vault with extremely minimal dependencies and zero third party APIs, built with [SvelteKit](https://kit.svelte.dev/).
---
### Deployments
#### Base USDC
- `v0.2.2 (latest)`
- HTTPS: [classic.cabana.fi](https://classic.cabana.fi/)
- IPFS: bafybeidp7nfqmjgzk3ipd4u42bag6mrygy6hta7ebzoxyo5hegbullku6m ([fleek](https://bafybeidp7nfqmjgzk3ipd4u42bag6mrygy6hta7ebzoxyo5hegbullku6m.ipfs.flk-ipfs.xyz/), [dweb](https://bafybeidp7nfqmjgzk3ipd4u42bag6mrygy6hta7ebzoxyo5hegbullku6m.ipfs.dweb.link/))
- `v0.2.0`
- IPFS: bafybeiegri6nww56z6jefcyn4tudh4fflfx4wjonfytjzur5yytzzjz5cu ([fleek](https://bafybeiegri6nww56z6jefcyn4tudh4fflfx4wjonfytjzur5yytzzjz5cu.ipfs.flk-ipfs.xyz/), [dweb](https://bafybeiegri6nww56z6jefcyn4tudh4fflfx4wjonfytjzur5yytzzjz5cu.ipfs.dweb.link/))---
### App Features
- Connecting wallets compatible with [EIP-6963](https://eips.ethereum.org/EIPS/eip-6963) and/or [EIP-1193](https://eips.ethereum.org/EIPS/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](https://github.com/Ncookiez/dskit))
- Displaying relevant token prices
- Token price lookups are entirely onchain (using [DSKit](https://github.com/Ncookiez/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---
### Dev Commands
- `pnpm i` - Install the app's dependencies
- `pnpm dev` - Start the app's dev environment at [localhost:5173](localhost:5173)
- `pnpm build` - Build the app into the `/build` folder
- `pnpm preview` - Host the built app at [localhost:4173](localhost:4173)
- `pnpm check` - Check the app for any Svelte errors/warnings---
### Customization
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.---
### Hosting
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.