Coder Social home page Coder Social logo

stargate-bridger's Introduction

Stargate-Bridger

My Profile | My projects | 🍩Donate: 0x27512edc51cAd8a5277090183858677915CC95c4

Simple script to bridge USDC from Polygon to Fantom and back on Stargate.finance

❗You need to have Python 3.10+ installed❗

  1. Fund your wallet in the Polygon network with USDC and some Matic for transaction fees, and Fantom network with some FTM for transaction fees.

  2. Clone repository to yours system.

Open your development environment, such as VSCode or Pycharm. Select the option to clone repo by link and paste the link to this repo.

  1. Open terminal in the same folder as main.py and run this commands:
python3.10 -m venv .venv
source .venv/bin/activate
pip install web3
  1. In the main.py file, on line 379 inside the list, create a transaction to suit your needs. You can find an example of how to do this there as well. Specify the number of min and max amounts for the transaction on lines 393 and 394 in the main.py Slippage - line 400.

Put your private keys in private_keys.txt

  1. Now you're ready to start:
python main.py

👨‍💻 All of my projects are available here

🍩Donate: 0x27512edc51cAd8a5277090183858677915CC95c4

stargate-bridger's People

Contributors

tmlnv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.