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: 8 months 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 (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-10T12:59:30.000Z (about 1 year ago)
- Last Synced: 2025-04-18T18:09:36.476Z (about 1 year ago)
- Language: Solidity
- Size: 1.19 MB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/Balmy-Protocol/swappers/actions/workflows/lint.yml)
[](https://github.com/Balmy-Protocol/swappers/actions/workflows/tests.yml)
[](https://github.com/Balmy-Protocol/swappers/actions/workflows/slither.yml)
# Balmy Swappers
This repository holds Balmy'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
$ yarn lint
```
### Test
Run the tests:
```sh
$ forge test
```