/v2-matching

Primary LanguageSolidityOtherNOASSERTION

Lyra Matching Contracts

codecov

This repository contains a set of smart contracts designed to enable sequential matching by our back-end on v2 protocol. The contracts facilitate the execution of transactions based on a trusted keeper (trade-executor), while giving user full custody of funds.

Main components:

Matching: Process signed actions and additional "actionData" from the orderbook, ensuring whitelisted modules can execute actions within specified rules. Inherits ActionVerifier and SubAccountManager

Other Modules: contract that take ownership of user's subAccounts from the matching contract, and then execute accordingly base on what users signed.

For detailed information about the contracts, modules, and installation instructions, please refer to Notion.

Installation:

git submodule update --init --recursive --force

Building and Testing:

forge build

Run tests

forge test