Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/balmy-protocol/swappers
This contract will work as a proxy towards other swappers like dexes or transformers
https://github.com/balmy-protocol/swappers
Last synced: 5 days ago
JSON representation
This contract will work as a proxy towards other swappers like dexes or transformers
- Host: GitHub
- URL: https://github.com/balmy-protocol/swappers
- Owner: Balmy-protocol
- License: gpl-3.0
- Created: 2022-07-06T21:49:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-06T17:00:55.000Z (9 months ago)
- Last Synced: 2024-10-02T09:05:29.735Z (about 2 months ago)
- Language: Solidity
- Size: 1.17 MB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Lint](https://github.com/Mean-Finance/swappers/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/Mean-Finance/swappers/actions/workflows/lint.yml)
[![Tests](https://github.com/Mean-Finance/swappers/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/Mean-Finance/swappers/actions/workflows/tests.yml)
[![Slither Analysis](https://github.com/Mean-Finance/swappers/actions/workflows/slither.yml/badge.svg?branch=main)](https://github.com/Mean-Finance/swappers/actions/workflows/slither.yml)# Mean Finance Swappers
This repository holds Mean's swapping infra:
## 1. The Swap Proxy
This contract act as a proxy and use the Permit2 Adapter as the backend, but with a way to take funds from the user with an ERC20 Approval.
## Usage
This is a list of the most frequently needed commands.
### Build
Build the contracts:
```sh
$ forge build
```### Clean
Delete the build artifacts and cache directories:
```sh
$ forge clean
```### Compile
Compile the contracts:
```sh
$ forge build
```### Coverage
Get a test coverage report:
```sh
$ forge coverage
```### Format
Format the contracts:
```sh
$ forge fmt
```### Gas Usage
Get a gas report:
```sh
$ forge test --gas-report
```### Lint
Lint the contracts:
```sh
$ pnpm lint
```### Test
Run the tests:
```sh
$ forge test
```