# Smart Contracts

### StrongHodl Smart Contracts

The StrongHodl protocol relies on a secure and modular suite of smart contracts deployed on Ethereum and Solana. These contracts govern the minting, management, and bridging of synthetic BTC (shBTC) and ensure a seamless, decentralized experience for users. StrongHodl’s smart contracts are designed for security, transparency, and efficiency, providing a foundation for DeFi integrations and robust staking functionality.

**Overview of Key Smart Contracts**

**1. Minting Contract**

**• Purpose:** This contract enables users to mint sthBTC by locking BTC as collateral, following a 1:1 backing model. It also facilitates the redemption of shBTC, allowing users to convert synthetic assets back to BTC.

**• Functions:**

&#x20;     • mintShBTC: Allows users to mint shBTC by depositing BTC collateral.

&#x20;     • redeemShBTC: Facilitates the redemption of shBTC for BTC at a 1:1 ratio.

**• Security:** Audited to ensure the safety of locked collateral and prevent unauthorized minting or redemption.

**2. Cross-Chain Bridge Contract**

**• Purpose:** This contract allows users to transfer shBTC seamlessly between Ethereum and Solana. It maintains liquidity and ensures that assets retain their value as they move across chains.

**• Functions:**

&#x20;       • transferToChain: Enables users to move shBTC from Ethereum to Solana and vice versa.

&#x20;        • receiveFromChain: Receives shBTC from the other chain and credits it to the user.

**• Security:** Uses secure bridging protocols and cryptographic verification to maintain asset integrity across chains.

**3. Role Management Contract**

**• Purpose:** Manages user roles and access within the protocol, assigning different permissions based on activity and staking levels. Roles such as Apostol, Profeta, and Sacerdote unlock privileges and rewards.

**• Functions:**

&#x20;         • assignRole: Assigns a role to a user based on their staking level.

&#x20;         • upgradeRole: Allows users to upgrade to higher roles by increasing their stake or activity level.

**• Security:** Ensures that role assignments are transparent, with on-chain records of user activity and contributions.

**4. Rewards Distribution Contract**

**• Purpose:** Distributes staking rewards, incentives, and other benefits to shBTC holders based on their role and contribution. This contract manages yield earned through Babylon Protocol and StrongHodl’s DeFi integrations.

**• Functions:**

&#x20;         • calculateRewards: Calculates rewards based on user roles, activity, and protocol earnings.

&#x20;         • distributeRewards: Distributes accumulated rewards to eligible users.

**• Security:** Operates transparently, with public records of reward calculations and distributions.

**5. Governance Contract**

**• Purpose:** Governs protocol decisions through the StrongHodl DAO, allowing token holders to vote on key proposals, including fee structures, partnerships, and protocol updates.

**• Functions:**

&#x20;         • createProposal: Enables token holders to propose changes to the protocol.

&#x20;         • voteOnProposal: Allows token holders to vote on active proposals.

&#x20;         • implementProposal: Executes approved proposals within the protocol.

**• Security:** Fully decentralized, allowing the community to participate in protocol governance securely.

**6. Fee Switch (Future Implementation)**

**• Purpose:** Pending regulatory approval, this contract will enable a fee-sharing mechanism where a portion of protocol fees is distributed to StrongHodl governance token holders.

**• Functions:**

&#x20;          • activateFeeSwitch: Activates the fee-sharing mechanism upon DAO approval.

&#x20;          • distributeFees: Allocates fees to eligible token holders based on their holdings.

**• Security:** Will be implemented with a multi-signature approval process to ensure compliance and safety.

**Security and Audits**

All StrongHodl smart contracts are thoroughly audited by top-tier security firms to ensure the highest standards of safety and reliability. The protocol also incorporates a Security Control Center for real-time monitoring and response, safeguarding assets from potential threats and vulnerabilities.

**Contract Addresses**

StrongHodl smart contract addresses for Ethereum and Solana will be published here after deployment. Users can verify all contract addresses to ensure interaction with the official, secure contracts only.

• Ethereum Contract Address: TBD

• Solana Contract Address: TBD

**How to Interact with StrongHodl Smart Contracts**

StrongHodl smart contracts are open-source, allowing users, developers, and third-party protocols to interact and integrate seamlessly. The contracts support integration through APIs and SDKs, enabling DeFi applications to leverage shBTC for lending, staking, and liquidity provision.

The StrongHodl smart contract suite provides the backbone for a secure, flexible, and community-driven protocol, setting the stage for a new era of Bitcoin utility in DeFi.
