Swaap Protocol is building the first market neutral AMM. This repository contains its core smart contracts.
For an in-depth documentation of Swaap, see our docs.
$ yarn # install all dependencies
$ yarn build # compile all contracts
$ yarn test # run all tests
To deploy the Factory contract to an EVM-compatible chain:
$ yarn deploy:$NETWORK
Where $NETWORK corresponds to a target network as defined in the truffle-config.js file.
The Swaap Core v1 interfaces are available for import into solidity smart contracts via the npm artifact @swaap-labs/swaap-core-v1
, e.g.:
import '@swaap-labs/swaap-core-v1/contracts/interfaces/IPool.sol';
contract MyContract {
IPool pool;
function doSomethingWithPool() {
// pool.joinPool(...);
}
}
Error messages are formated as SWAAP#$ERROR_ID
strings.
Corresponding human readable messages can be found here: contracts/Errors.sol.
Swaap Protocol Core module have been audited by Chainsecurity and Runtime Verification. The audit reports can be found in the audits folder of this repository.
All core smart contracts are immutable, and cannot be upgraded.
Solidity source code is licensed under the GNU General Public License Version 3 (GPL v3): see LICENSE
.