Skip to content
View MilosMicun's full-sized avatar

Block or report MilosMicun

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
MilosMicun/README.md

Miloš Mirković

Solidity / Smart Contract Engineer

I design and build DeFi protocol and execution systems with a focus on accounting correctness, explicit state transitions, security boundaries, and adversarial testing.

My independent portfolio covers collateralized lending, invoice financing, RFQ execution, and Solana-to-EVM settlement. I work across smart contracts, off-chain coordination, testing, deployment tooling, and documented execution evidence.

Selected Engineering Work

Lending Protocol Engine

An upgradeable overcollateralized lending protocol with indexed debt accounting and ERC-4626 collateral custody.

  • Interest checkpointing before liquidity changes, preserving accrued debt while applying new rates prospectively
  • Rounding-aware collateral accounting, oracle validation, health-factor enforcement, and liquidation
  • Atomic proxy initialization and locally tested V1.2 migration, with Safe upgrade preparation and verification tooling
  • Unit, fuzz, invariant, storage-layout, and upgrade-preservation tests

The public Sepolia proxy runs historical V1. The recorded local demonstration runs V1.2.

V1.2 public and merged; public proxy upgrade not executed.

Repository & demo · Sepolia V1 proxy · Deployment evidence

RWA Invoice Financing Protocol

Invoice financing through separate Senior and Junior ERC-4626 tranches, with explicit settlement and default accounting.

  • Non-transferable invoice claims, underwriting controls, and Buyer exposure limits
  • Separate invoice verification, permissioned and disputable oracle attestation, and economic execution
  • Junior-first loss recognition at default finalization, followed by resolution without a second NAV haircut
  • Independently reconstructed ghost accounting, fuzz tests, and stateful invariants

Six source-verified contracts were deployed on Ethereum Sepolia. The local demonstration shows paid settlement and partial-recovery default, including NAV, cash, and LP share-value checkpoints.

Repository & demo · Deployment evidence · Independent external-review record

RFQ Execution Coordinator

A TypeScript execution coordinator with a Solidity settlement boundary, focused on deterministic quote selection and recovery from ambiguous RPC transaction sends.

  • Validation and deterministic selection of external quotes
  • EIP-712 settlement terms, relayer-bound acceptance, and execution-ID and party-nonce replay protection
  • Persistence of the exact signed transaction and hash before broadcast
  • Final simulation that rejects stale allowance before broadcast, plus original-hash recovery in the demonstrated accepted-then-timeout scenario

The public showcase replays verified local Anvil evidence for both scenarios.

Repository · Recorded-evidence showcase · Correctness model

Cross-Chain Settlement Lab

A local Solana-to-EVM settlement prototype built with Rust/Anchor, Solidity, and TypeScript, using mock assets and a trusted operator.

  • Solana escrow with executor-funded EVM purchases
  • Execution/cancellation races and mutually exclusive settlement or refund outcomes
  • Atomic rollback within each chain and on-chain protection against repeated economic effects
  • Recovery through fresh application processes reading existing chain state

The repository includes a recorded local walkthrough and a verification map separating live integration coverage from offline checks.

Repository & demo · Verification map

Additional Work

Background

My background in law and entrepreneurship informs how I approach permissions, responsibilities, trust assumptions, and economic edge cases.

X / Twitter

Pinned Loading

  1. rwa-invoice-financing rwa-invoice-financing Public

    RWA invoice financing protocol with ERC-4626 senior/junior vaults, NFT-based receivables, oracle-driven settlement, waterfall accounting, and stateful invariant testing.

    Solidity 1

  2. lending-protocol-engine lending-protocol-engine Public

    Modular DeFi lending protocol with ERC-4626 collateral vaults, utilization-based RAY interest accrual, indexed debt, liquidation controls, oracle safety, invariant-tested solvency, and Safe-control…

    Solidity

  3. cross-chain-settlement-lab cross-chain-settlement-lab Public

    Solana-to-EVM settlement lab with escrow, executor-funded purchases, cancellation races, and process recovery.

    TypeScript

  4. rfq-execution-coordinator rfq-execution-coordinator Public

    Crash-safe RFQ execution coordinator with deterministic quote selection, EIP-712 settlement, final simulation, and identity-preserving RPC-timeout recovery.

    TypeScript

  5. solidity-security-patterns solidity-security-patterns Public

    Smart contract security patterns: exploit → fix → invariant, with Foundry tests and gas analysis.

    Solidity

  6. foundry-testing-patterns foundry-testing-patterns Public

    Solidity smart contract testing patterns using Foundry: unit, integration, fork, fuzz and invariant testing.

    Solidity