Giter VIP home page Giter VIP logo

gato-gusd-stablecoin's Introduction

GUSD stable coin

GUSD is a stable coin for GATO token

Installation

# Clone the repo
    git clone https://github.com/stackpower103/gato-gusd-stablecoin.git
# Install all dependencies
    npm install

Compile contract

npx hardhat compile

Test contract

npx hardhat test

Deploy contract

npx hardhat run scripts/deploy.js

Deployed Address

# BSC mainnet

# BSC testnet
    https://testnet.bscscan.com/address/0x427e46f8c93C0F7D9A8E7064Ae3c0A16d9185050

Modifiers

onlyOwner
Executes only by owner

Functions

Mutable
mint(uint256 amount) - mint the GUSD by owner(onlyOwner)
burn(uint256 amount) - burn the GUSD 
transfer(address recipient, uint256 amount) - transfer tokens to user
    recipient - address of receiver
    amount - transfered amount
transferFrom(address sender, address recipient, uint256 amount) - transfer tokens to user
    Approve must be done before transferFrom.
    sender - address of sender
    recipient - address of receiver
    amount - transfered amount
approve(address spender, uint256 amount) - approve token for user
    spender - address of spender
    amount - allowed amount
increaseAllowance(address spender, uint256 addedValue) - increase the allowed amount
    spender - address of spender
    addedValue - added amount
decreaseAllowance(address spender, uint256 subtractedValue) - decrease the allowed amount
    spender - address of spender
    subtractedValue - added amount
View
getOwner() - returns the address of owner(address)
name() - returns coin diplay name(string)
symbol() - returns coin ticker(string)
decimals() - returns coin decimal(uint8) 
allowance(address owner, address spender) - returns the allowed amount sent from owner to spender(uint256)
    owner - owner of coin
    spender - address of spender
totalSupply() - returns the total supply of coin(uint256)
balanceOf(address account) - returns the balance of user(uint256)

gato-gusd-stablecoin's People

Contributors

smartdevb16 avatar hyperworld103 avatar

Stargazers

Takeshi Suzuki avatar dotmaker avatar

Watchers

 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.