OpenLeverageDev / districtone-contracts

MIT License
59 stars 8 forks source link

Node.js CI

About District One

Welcome to District One – your hub for Web3 social engagement where interaction sparks reward. Dive into a world where community and gamification converge, offering you a unique space to connect, share, and earn.

Main Contracts

LinkUp.sol

This contract manages the referral and rewards system for District One. It handles the registration of new users through referral links and distributes rewards for both direct and second-tier referrals.

SpaceShare.sol

This contract is responsible for managing shares of spaces within the District One platform. It allows users to buy, sell, and hold shares of different spaces, providing them with a stake in the platform's various social arenas.

BlastOLE.sol

BlastOLE.sol governs the distribution of the bridged OLE token on Blast.

OPZap.sol

The OPZap contract provides functionality for users to easily swap assets with OLE token within the District One ecosystem. It simplifies the process of converting one asset to another, increasing the platform's usability and accessibility.

RewardDistributor.sol

RewardDistributor.sol This contract is designed to distribute rewards in a linear fashion over a specified vesting duration.

Audits

Contract Deployments

Contract Blast Sepolia Blast Mainnet
BlastOLE 0x53B7765a53630e1AB480a201Fba04298ab3c404d 0x73c369F61c90f03eb0Dd172e95c90208A28dC5bc
LinkUp 0x99a10180ce9c795F6bA0D6f88E26749916092f34 0x768A55F26CD73e4569136c8249370D8bC96c3E3a
SpaceShare 0x6D27862759e4cF0F418169557BDDA4c4A35FD779 0x1c59529ba394427D9a18A3eF6B8CA38906b8E2dB
OPZap 0xF7eC0962110CFa2513C702e1a7AEd23C6eE3d8FC 0xb936dCd9035eCa0E958F67Bd553443Dfbc6153d4
RewardDistributor 0x4aA6818E6A6D9a0A30705b4Db62030016A1753E2 0x20EBf8D5C6CB3Ba26F5f5aeF993a78411457D183
SOLE 0xd837dDaBCAcaf60F73FE9e0F2Eb97cf638fe2105 0xde600C085CE67F756Bdab2aD2E6EF3E797688834
SpaceShareV2 - 0x77840848bce90e35172efe4644eb3f48a93565e9
OPZapV2 - 0x05B9f09a38f36C126D47420e210dB7FE8b5EC7ae

Build & Tests

Clone the repository and install dependencies:

git clone https://github.com/districtone/districtone-contracts.git
cd districtone-contracts
yarn

Compile the contracts:

npx hardhat compile

Run tests to ensure everything is set up correctly:

npx hardhat test

Security

If you have security concern of bug report, please contact us at security@districtone.io.

Disclaimer

Despite thorough reviews and audits, the provided contracts are offered without guarantees. Always do your own research (DYOR)!

Thank you for being part of District One — Spaces to connect, win, and earn in Web3.