# xswap-lib

[![Tests](https://github.com/xswap/xswapxswap-lib/workflows/Tests/badge.svg)](https://github.com/xswap/xswap-lib/actions?query=workflow%3ATests)
[![Static Analysis](https://github.com/xswap/xswap-lib/workflows/Static%20Analysis/badge.svg)](https://github.com/xswap/xswap-lib/actions?query=workflow%3A%22Static+Analysis%22)
[![Lint](https://github.com/xswap/xswap-lib/workflows/Lint/badge.svg)](https://github.com/xswap/xswap-lib/actions?query=workflow%3ALint)
[![npm](https://img.shields.io/npm/v/@xswap/lib)](https://unpkg.com/@xswap/lib@latest/)

Solidity libraries that are shared across Elite Swap contracts. These libraries are focused on safety and gas efficiency.

## Install

Run `yarn` to install dependencies.

## Test

Run `yarn test` to execute the test suite.

## Usage

Install this in another project via `yarn add @xswap/lib`

Then import the contracts via:

```solidity
import '@xswap/lib/contracts/libraries/Babylonian.sol';

```
