Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.4%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: Sureshp509
  • License: gpl-3.0
  • Language: TypeScript
  • Default Branch: main
  • Size: 1.21 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme License Citation

README.md

Customized Uniswap V2 AMM Model

Understanding of Uniswap V2

Uniswap V2 is a decentralized exchange protocol that utilizes an Automated Market Maker (AMM) model. The core components include the UniswapV2Pair, UniswapV2Factory, and the Router contract.

Modifications Made

  • Changed the trading fee from 0.3% to 0.5%.
  • Added support for dynamic fee adjustments.

How to Change the Trading Fee

  • Modified the swap function in UniswapV2Pair.sol to change the fee from 0.3% to 0.5%.

Additional Features

  • Implemented a dynamic fee adjustment mechanism, allowing the fee to be updated based on market conditions.

Summary

  • 1.Initialize npm: npm init -y
  • 2.Install Hardhat Locally: npm install --save-dev hardhat
  • 3.Initialize Hardhat: npx hardhat
  • 4.Install Additional Dependencies: npm install --save-dev @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs/hardhat-ethers ethers
  • 5.Move Contracts: Ensure contracts are in the contracts directory
  • 6.Update Config: Edit hardhat.config.js

- 7.Compile Contracts: npx hardhat compile

Compiled 2 Solidity files successfully.


  • 8.Create Deployment Script: scripts/deploy.js
  • 9.Deploy Contracts: npx hardhat run scripts/deploy.js --network sepolia

------------Result---------------
Deploying contracts with the account: 0xd989d4d96361B40d3BffeD03696F4BD214537268
UniswapV2ERC20 deployed to: 0xfd33eEe3BE6458B0ed8e0b70773e6e553Dd68F8b
UniswapV2Factory deployed to: 0xB8EF2e5545d928Ec3253D982baC42495e936FE8a
UniswapV2Pair deployed to: 0x93545A92017c06907120FF1Dc7F436B1057Bd98C


  • 10.Create Interact Script: scripts/interact.js
  • 11.Interact with Contracts: npx hardhat run scripts/interact.js --network sepolia

-------------Result---------------
UniswapV2ERC20 name: Uniswap V2
UniswapV2Factory feeToSetter: 0xd989d4d96361B40d3BffeD03696F4BD214537268
UniswapV2Pair dynamicFee: 5


https://sepolia.etherscan.io/address/0x93545A92017c06907120FF1Dc7F436B1057Bd98C

Owner

  • Login: Sureshp509
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Zinsmeister"
  given-names: "Noah"
- family-names: "Adams"
  given-names: "Hayden"
- family-names: "Robinson"
  given-names: "Dan"
- family-names: "Salem"
  given-names: "Moody"
title: "v2-core"
version: 1.0.1
date-released: 2019-05-03
url: "https://github.com/Uniswap/v2-core"

GitHub Events

Total
Last Year

Dependencies

.github/workflows/CI.yml actions
  • actions/cache v1 composite
  • actions/checkout v1 composite
  • actions/setup-node v1 composite
package-lock.json npm
  • 1065 dependencies
package.json npm
  • @types/chai ^4.2.6 development
  • @types/mocha ^5.2.7 development
  • chai ^4.2.0 development
  • ethereum-waffle ^2.4.1 development
  • ethereumjs-util ^6.2.0 development
  • hardhat ^2.22.6 development
  • mocha ^6.2.2 development
  • prettier ^1.19.1 development
  • rimraf ^3.0.0 development
  • solc 0.5.16 development
  • ts-node ^8.5.4 development
  • typescript ^3.7.3 development
yarn.lock npm
  • 1045 dependencies