# Smart contract

### **Smart Contract Overview**

The **Degen Duels** smart contract ensures a decentralized, secure, and transparent system for managing player bets and distributing rewards. The contract is deployed on the **Base blockchain** with fast and cheap transactions.

### **Functions**

* **Bet Storage:** The smart contract securely holds players' bets during the matchmaking and dueling process, ensuring that no external entity has access to the funds.
* **Reward Distribution:** Once a winner is determined in a duel, the smart contract automatically transfers the total reward to the victor's wallet, doubling their original stake.
* **Withdrawals:** Players can withdraw their placed bets anytime **before the duel starts** without any interference.

### **Security**

* **Decentralized Control:** Neither the project team nor any third party can access the players' funds directly. The funds are securely managed by the smart contract itself.
* **Automated Payouts:** All rewards are distributed through a predetermined algorithm written within the smart contract, ensuring fairness and transparency.
* **Player Safety:** Players have full control over their funds and can withdraw their bets prior to the duel if needed.

### **Contract Address**

* **Contract Address (CA):** 0xdeC1662c272a833eBf194b2BC073FAB18bF4664F
