Skip to content

pegasys-fi/v3-core

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Pegasys V3

Lint Tests Fuzz Testing Mythx npm version

This repository contains the core smart contracts for the Pegasys V3 Protocol. For higher level contracts, see the v3-periphery repository.

Local deployment

In order to deploy this code to a local testnet, you should install the npm package @pollum-io/v3-core and import the factory bytecode located at @pollum-io/v3-core/artifacts/contracts/PegasysV3Factory.sol/PegasysV3Factory.json. For example:

import {
  abi as FACTORY_ABI,
  bytecode as FACTORY_BYTECODE,
} from '@pollum-io/v3-core/artifacts/contracts/PegasysV3Factory.sol/PegasysV3Factory.json'

// deploy the bytecode

This will ensure that you are testing against the same bytecode that is deployed to mainnet and public testnets, and all Pegasys code will correctly interoperate with your local deployment.

Using solidity interfaces

The Pegasys V3 interfaces are available for import into solidity smart contracts via the npm artifact @pollum-io/v3-core, e.g.:

import '@pollum-io/v3-core/contracts/interfaces/IPegasysV3Pool.sol';

contract MyContract {
  IPegasysV3Pool pool;

  function doSomethingWithPool() {
    // pool.swap(...);
  }
}

Addresses

Pegasys V3 is fully deployed on Rollux at the following addresses:

About

Core smart contracts of Pegasys v3 ๐ŸŽ ๐ŸŽ ๐ŸŽ 

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 56.1%
  • Solidity 43.9%