Marat Nusurov

reBaked DAO

Company: Merehead
Role: Senior Solidity Developer
Stack: Solidity · ERC-20 · AccessControl · ReentrancyGuard · Truffle
Period: 06/2021 - 12/2021

Overview

Architected and implemented a decentralized project management and payment protocol enabling transparent, milestone-driven collaboration between initiators, contributors, and observers. The system enforces payment terms on-chain, eliminating intermediaries and payment disputes in remote, project-based work.

Technical Scope

Project & Package Lifecycle

Dual Payment Model

Flexible Token Support

Multi-Actor Role System

Key Engineering Decisions

Decision Rationale
Library-based contract architecture Business logic in ProjectLibrary, PackageLibrary, CollaboratorLibrary enables independent testing and reuse
Collision-resistant ID generation keccak256(msg.sender + blockhash(block.number - 1) + nonce) provides unpredictable IDs without counters, reduces front-running
Triple-nested mapping state collaboratorData[projectId][packageId][address] enables O(1) lookups and clean deletion across thousands of concurrent projects
Reentrancy-safe payment claims All six claim functions guarded with nonReentrant modifier + SafeERC20 transfers
Cascading budget validation Rejecting a collaborator auto-refunds their MGP allocation back up the chain, preventing budget leaks

Technical Insights

See Merehead page for additional context.