https://discourse.xion.burnt.com/t/deploy-first-thrive-contract-in-xion/39
https://github.com/lorentsinani
Lorent Sinani - Backend & Blockchain Engineer
ThriveProtocolNativeReward
https://github.com/ThriveCoin/tp-xion-reward-contract-rs/blob/main/src/ThriveProtocolNativeReward.rs
The ThriveNativeReward contract serves as a critical component in Thrive Protocol's ecosystem, enabling administrators to perform the following core functionalities:
Deposits: Securely handle token deposits from users. Rewards: Distribute rewards to individuals or multiple recipients (bulk rewards) with specified reasons for transparency. Withdrawals: Allow users to withdraw tokens, ensuring balances are accurately tracked and updated. Balance Queries: Provide real-time access to token balance data for any address, ensuring transparency and traceability. Key Features Access Control: The contracts implement owner-only privileges for administrative operations, ensuring only authorized entities can manage rewards and balances. Efficient Bulk Operations: Supports rewarding multiple recipients simultaneously, saving time and resources. Secure Transactions: Uses Cosmos SDK primitives to ensure the integrity and safety of token transfers. Customizability: Designed with modularity in mind, allowing easy adaptation to different token ecosystems or deployment environments.
https://discourse.xion.burnt.com/t/deploy-first-thrive-contract-in-xion/39/2?u=tavnik1
The Thrive smart contract allows users to deposit funds, get rewards, and withdraw these funds. The contract owner can distribute rewards and change the underlying token denomination used for the deposits, rewards and withdraws.
Deposit: you have to deposit a specific amount in order for users to be able to withdraw their rewards
Withdraw: users can withdraw their rewards from the contract, if the contract is funded.
https://testnet.xion.explorers.guru/contract/xion13w74gevcv5qcep5qvmmfnp493rxq5qgvynjtt7vmzsqzwg3sk9zs3lrslk