Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.97 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.97 KB

Uniswap V2 Fork

Credits

This is a fork of several repositories from https://github.com/Uniswap/

All tests passed.

Disclaimer

Redistributions of source code must retain this list of conditions and the following disclaimer.

Neither the name of VeChain (VeChain Foundation) nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

For Developers

make install # install dependencies.
make compile # Compile all contracts.
make test # Run all the tests.

Notice on branches in this repo:

main branch

Specific tweaks:

  • Change variable names of LP token symbol and name.
  • CREATE2 hash.
  • chainId() OPCODE call remains the same
  • Compiler option istanbul remains the same.

This will NOT enable to be run on VeChain now because the EVM doesn't support it, yet.

But eventually it is the unified set of code that is deployed on VeChain after the EVM support istanbul is in place.

testnet branch

Based on main branch.

Specific tweaks:

  • chainId() tweak (fixed value) for different network: “testnet”.
  • istanbul compiler option change to constantinpole.
  • CREATE2 hash change of respective files.