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.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

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

Report abuse
MilosMicun/README.md

Milos Mirkovic

Solidity / Smart Contract Engineer ⚙️
Focused on protocol engineering: EVM internals → security → DeFi systems


Current Focus

Building a DeFi lending protocol from first principles:

  • oracle systems (Chainlink + custom RWA oracle)
  • AMM price formation and TWAP
  • lending pools and liquidation mechanics
  • utilization-based interest rate models
  • staking and reward distribution

Main repo:
https://github.com/MilosMicun/defi-lending-primitives


Protocol Engineering Approach

Each repository represents a core system component:

EVM Fundamentals

Understanding execution at opcode, memory, and storage level.

Testing & Verification

Unit, integration, fuzz, and invariant testing using Foundry.

Security

Exploring vulnerabilities and defenses:

  • reentrancy
  • access control
  • overflow
  • MEV / front-running

Oracle Design

Safe integration of external data:

  • staleness checks
  • deviation limits
  • round validation
  • stateful price model

Key Idea

Smart contracts are not just code.

They are:

  • state machines
  • accounting systems
  • adversarial environments

Correctness emerges from:

math + state + time

Pinned Loading

  1. defi-lending-primitives defi-lending-primitives Public

    Building core components of a DeFi lending protocol: oracles, AMM pricing, interest rate models, and liquidation mechanics.

    Solidity

  2. solidity-security-patterns solidity-security-patterns Public

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

    Solidity

  3. solidity-proxy-patterns solidity-proxy-patterns Public

    Delegatecall, storage layout, and proxy patterns in Solidity with tests and exploits.

    Solidity

  4. foundry-testing-patterns foundry-testing-patterns Public

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

    Solidity

  5. evm-simulator-js evm-simulator-js Public

    A minimal EVM simulator in JavaScript implementing stack, memory, storage and opcode execution to explore Ethereum Virtual Machine internals at the instruction level.

    JavaScript 1

  6. erc20-from-scratch erc20-from-scratch Public

    Protocol-level ERC20 built from scratch in Solidity using Foundry. Includes unit tests, fuzzing, invariant testing and gas optimizations.

    Solidity