{"id":50996192,"url":"https://github.com/casatrick/sui-staking-smart-contract","last_synced_at":"2026-06-20T09:35:18.161Z","repository":{"id":293963466,"uuid":"985621045","full_name":"casatrick/sui-staking-smart-contract","owner":"casatrick","description":"sui staking smart contract , enabling users to stake SUI tokens and earn rewards. Developed using the Move programming language.","archived":false,"fork":false,"pushed_at":"2025-05-18T07:10:08.000Z","size":5193,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-19T07:36:50.970Z","etag":null,"topics":["defi","move","smart-contract","staking","sui"],"latest_commit_sha":null,"homepage":"","language":"Move","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/casatrick.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,"zenodo":null}},"created_at":"2025-05-18T06:53:19.000Z","updated_at":"2025-05-18T07:15:07.000Z","dependencies_parsed_at":"2025-05-18T08:33:53.708Z","dependency_job_id":null,"html_url":"https://github.com/casatrick/sui-staking-smart-contract","commit_stats":null,"previous_names":["defaimaxi/sui-staking-smart-contract","0xzepdev/sui-staking-smart-contract","caterpillardev/sui-staking-smart-contract","roswelly/sui-staking-smart-contract","casatrick/sui-staking-smart-contract"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/casatrick/sui-staking-smart-contract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casatrick%2Fsui-staking-smart-contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casatrick%2Fsui-staking-smart-contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casatrick%2Fsui-staking-smart-contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casatrick%2Fsui-staking-smart-contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casatrick","download_url":"https://codeload.github.com/casatrick/sui-staking-smart-contract/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casatrick%2Fsui-staking-smart-contract/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34565240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["defi","move","smart-contract","staking","sui"],"created_at":"2026-06-20T09:35:17.509Z","updated_at":"2026-06-20T09:35:18.157Z","avatar_url":"https://github.com/casatrick.png","language":"Move","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sui Staking Smart Contract\n\n This project implements a robust staking mechanism on the Sui blockchain, enabling users to stake their SUI tokens and earn rewards over a specified duration.##Dev\n## Dev\n- Telegram: [@defai_maxi](https://t.me/defai_maxi)\n- Twitter: [@defai_maxi](https://x.com/defai_maxi)\n\n## Overview\n- RewardState: Tracks reward-related parameters such as duration, finish time, and reward rate.\n\n- UserState: Maintains individual user staking information, including balances and rewards.\n\nTreasury: Holds the total staked SUI tokens and manages reward distribution.\n## Features\n- Secure Staking Mechanism: Users can stake SUI tokens to earn rewards.\n\n- Reward Distribution: Implements a reward distribution system based on staking duration and amount.\n\n- User State Management: Tracks individual user stakes, rewards, and balances.\n\n- Treasury Management: Manages the pool of staked tokens and distributes rewards accordingly.\n\n- Admin Controls: Allows administrators to set reward durations and amounts.\n\n##  Usage\n- Staking Tokens:\nUsers can stake their SUI tokens by invoking the stake function, which updates their UserState and the global Treasury.\nGitHub\n\n- Claiming Rewards:\nAfter the reward duration, users can claim their rewards using the claim_rewards function, which calculates and transfers the appropriate amount based on their stake.\nGitHub\n\n- Unstaking Tokens:\nUsers can unstake their tokens at any time by calling the unstake function, which updates their UserState and the Treasury.\n\n\n##  Security Considerations\n- Access Control: Only authorized administrators can set reward durations and amounts.\n\n- Safe Math Operations: All calculations are performed using safe math to prevent overflows.\n\n- Audit: It's recommended to perform a thorough audit before deploying to the mainnet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasatrick%2Fsui-staking-smart-contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasatrick%2Fsui-staking-smart-contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasatrick%2Fsui-staking-smart-contract/lists"}