Giter Site home page Giter Site logo

vaipsm's Introduction

VAI PEG Stability Module UI

Introduction: The VAI PEG Stability Module UI offers an intuitive interface, built on the solid foundation of the Venus Protocol's VAI PEG Stability Module. Tailored for seamless cryptocurrency transactions, this interface allows users to interact effortlessly with the VAI PEG contracts. The underlying contract ensures that the VAI stablecoin remains pegged at a value of $1. This UI was crafted using JS React, WAGMI, and Antd.

UI Components:

  • Connect Wallet Button: This feature enables users to link their wallets to the platform, paving the way for secure blockchain transactions. With the WAGMI's Injected Mode, the system utilizes your default wallet credentials.

  • Swap Interface (Convert Functionality): Users can interchange VAI and USDT directly within this module. The Switch Button toggles between two primary functionalities: "Swap USDT for VAI" and "Swap VAI for USDT." Notably, the "You Swap" and "You Get" labels alternate. This design choice stems from the VAI PSM's smart contract, which always treats USDT as input. This slight deviation from the conventional swap UI is meticulously explained in the official VAI PSM documentation. Upon connecting your wallet, you'll be presented with your Wallet Balance for both USDT and VAI. Before executing a swap, you must authorize the USDT/VAI for trading on the VAI PSM contract. This is achieved by pressing the corresponding button. Once approved, you can commence the swap for your desired amount. After completing the transaction, you might wish to revoke the prior authorization. This can be swiftly done by clicking on the USDT/VAI logos.

Benefits:

A standout advantage of utilizing the VAI PSM over traditional swaps is the minimization of price impact, especially during large VAI/USDT swaps.

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.