# Templar Protocol Smart Contracts [![Test](https://github.com/Templar-Protocol/contracts/actions/workflows/test.yml/badge.svg)](https://github.com/Templar-Protocol/contracts/actions/workflows/test.yml) [![Coverage](https://codecov.io/gh/Templar-Protocol/contracts/branch/dev/graph/badge.svg)](https://codecov.io/gh/Templar-Protocol/contracts) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) Templar Protocol is a chain-agnostic overcollateralized lending DeFi protocol. ## Structure - `common` \ Most of the pure logic governing the protocol. - `contract` \ Protocol smart contract source code. - `market` \ Smart contract representing a single asset pair `COLLATERAL`→`BORROW`. - `registry` \ Smart contract that manages and deploys market WASM binaries. - `docs` \ Detailed documentation pertaining to specific use-cases. - `mock` \ Smart contracts for testing. - `script` \ Shell scripts for testing and CI/CD. - `service` \ Standalone executable services. - `relayer` \ The relayer pays for transaction fees on behalf of users who submit signed delegate actions. ## Build and run tests ```bash ./script/test.sh ``` ## Links - [Website](https://templarfi.org/) - [Testnet](https://testnet.templarfi.org/) - [X (Twitter)](https://x.com/TemplarProtocol) - [Discord](https://discord.gg/KAvMtYpbep) - [Telegram](https://t.me/templarprotocol)