{"id":19414010,"url":"https://github.com/0xapp123/flower-spl-staking","last_synced_at":"2025-04-14T12:06:07.758Z","repository":{"id":232096133,"uuid":"781684555","full_name":"0xapp123/FLOWER-spl-staking","owner":"0xapp123","description":"This is the spl-token staking program for the FLOWERS utility tokens with Anchor on Solana.","archived":false,"fork":false,"pushed_at":"2024-04-09T09:33:57.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T12:05:58.911Z","etag":null,"topics":["anchor","solana","spl-token","staking","token","utility"],"latest_commit_sha":null,"homepage":"https://staking.solflowers.io/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xapp123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-03T21:01:49.000Z","updated_at":"2024-06-10T20:30:50.000Z","dependencies_parsed_at":"2024-04-08T02:07:21.777Z","dependency_job_id":"25ff6c41-d83a-461c-b19e-2cd1f10349c0","html_url":"https://github.com/0xapp123/FLOWER-spl-staking","commit_stats":null,"previous_names":["0xapp123/flower-spl-staking"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xapp123%2FFLOWER-spl-staking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xapp123%2FFLOWER-spl-staking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xapp123%2FFLOWER-spl-staking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xapp123%2FFLOWER-spl-staking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xapp123","download_url":"https://codeload.github.com/0xapp123/FLOWER-spl-staking/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877985,"owners_count":21176243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anchor","solana","spl-token","staking","token","utility"],"created_at":"2024-11-10T12:35:49.483Z","updated_at":"2025-04-14T12:06:07.731Z","avatar_url":"https://github.com/0xapp123.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FLOWERS-staking\nThis is the staking program for the FLOWERS utility tokens.\n\n## Install Dependencies\n- Install `node` and `yarn`\n- Install `ts-node` as global command\n- Confirm the solana wallet preparation: `/home/fury/.config/solana/id.json` in test case\n\n## Usage\n- Main script source for all functionality is here: `/cli/script.ts`\n- Program account types are declared here: `/cli/types.ts`\n- Idl to make the JS binding easy is here: `/cli/staking.json`\n\nAble to test the script functions working in this way.\n- Change commands properly in the main functions of the `script.ts` file to call the other functions\n- Confirm the `ANCHOR_WALLET` environment variable of the `ts-node` script in `package.json`\n- Run `yarn ts-node`\n\n## Features\n\n### As a Smart Contract Owner\nFor the first time use, the Smart Contract Owner should `initialize` the Smart Contract for global account allocation.\n- `initProject`\n \nRecall `initialize` function for update the Threshold values after change the constants properly\n- `initProject` \n\nMaintain the Reward token($PRMS) vault's balance\n- `REWARD_TOKEN_MINT` is the reward token mint (for test).\n- `rewardVault` is the reward token account for owner. The owner should have the token's `Mint Authority` or should `Fund` regularly.\n\nThis is current test value. Should be revised properly.\n\nMain Logic:\n\nYou can stake $FLWRs\n- For 4 months: receive reward- 103%, Before the staking period, penalty- 6%\n- For 6 months: receive reward- 106%, Before the staking period, penalty- 12%\n- For 12 months: receive reward- 110%, Before the staking period, penalty- 24%\n\nAll users can stake by calling the function `stake_flwr` and unstake by calling the function `unstake`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xapp123%2Fflower-spl-staking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xapp123%2Fflower-spl-staking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xapp123%2Fflower-spl-staking/lists"}