{"id":24667991,"url":"https://github.com/vvizardev/flowers-staking-contract","last_synced_at":"2026-05-11T16:16:45.413Z","repository":{"id":257804434,"uuid":"823583606","full_name":"vvizardev/flowers-staking-contract","owner":"vvizardev","description":"This is the staking program for the FLOWERS utility tokens.","archived":false,"fork":false,"pushed_at":"2024-09-17T20:57:21.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T17:19:03.976Z","etag":null,"topics":["contract","solana","staking","token"],"latest_commit_sha":null,"homepage":"","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/vvizardev.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-07-03T10:01:27.000Z","updated_at":"2024-09-20T01:21:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"547e7036-1792-447e-a3f7-86dc18c2ba3a","html_url":"https://github.com/vvizardev/flowers-staking-contract","commit_stats":null,"previous_names":["wizasol/flowers-staking-contract","vvizardev/flowers-staking-contract"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fflowers-staking-contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fflowers-staking-contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fflowers-staking-contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvizardev%2Fflowers-staking-contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vvizardev","download_url":"https://codeload.github.com/vvizardev/flowers-staking-contract/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244795520,"owners_count":20511521,"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":["contract","solana","staking","token"],"created_at":"2025-01-26T08:25:11.847Z","updated_at":"2026-05-11T16:16:40.389Z","avatar_url":"https://github.com/vvizardev.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%2Fvvizardev%2Fflowers-staking-contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvvizardev%2Fflowers-staking-contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvizardev%2Fflowers-staking-contract/lists"}