Giter VIP home page Giter VIP logo

button-wrappers's Introduction

Button Wrappers

ERC-20 Token wrappers for the button wood ecosystem.

Install

# Install project dependencies
yarn

Testing

# Run all unit tests (compatible with node v12+)
yarn test

Deployments

For the most up-to-date, please refer to: https://docs.prl.one/buttonwood/developers/deployed-contracts.

mainnet:
  ButtonTokenFactory: "0x84D0F1Cd873122F2A87673e079ea69cd80b51960"
  instances:
    - name: "Button WETH"
        - symbol: "bWETH"
        - underlying: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
        - address: "0x8f471e1896d16481678db553f86283eab1561b02"
    - name: "Button WBTC"
        - symbol: "bWBTC"
        - underlying: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"
        - address: "0x8e8212386d580d8dd731a2b1a36a43935250304e"
        
  UnbuttonTokenFactory: "0x75ff649d6119fab43dea5e5e9e02586f27fc8b8f"
  instances:
    - name: "Unbuttoned AAVE AMPL"
        - symbol: "ubAAMPL"
        - underlying: "0x1e6bb68acec8fefbd87d192be09bb274170a0548"
        - address: "0xF03387d8d0FF326ab586A58E0ab4121d106147DF"

avalanche:
  ButtonTokenFactory: "0x83f6392Aab030043420D184a025e0Cd63f508798"
    
  instances:
    - name: "Button WETH"
        - symbol: "bWETH"
        - underlying: "0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab"
        - address: "0x227d7A0e2586A5bFdA7f32aDF066d20D1bfDfDfb"
    - name: "Button WAVAX"
        - symbol: "bWAVAX"
        - underlying: "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"
        - address: "0x9f61aE42c01698aC35AedeF651B0FE5E407bC6A0"
    - name: "Button WBTC"
        - symbol: "bWBTC"
        - underlying: "0x50b7545627a5162f82a992c33b87adc75187b218"
        - address: "0x9bFE32D18e66ffAF6dcB0306AE7D24F768469f91"

Example script usage

Verifying ChainlinkOracle contract

yarn hardhat verify:ChainlinkOracle --network kovan --address 0x29636cE5b252a0F3C088BA1A70Bf936AA00ce7D4 --aggregator 0x6135b13325bfC4B00278B4abC5e20bbce2D6580e --staleness-threshold-secs 0x15180

Contribute

To report bugs within this package, create an issue in this repository. When submitting code ensure that it is free of lint errors and has 100% test coverage.

# Lint code
yarn lint

# Format code
yarn format

# Run solidity coverage report (compatible with node v12)
yarn coverage

# Run solidity gas usage report
yarn profile

License

GNU General Public License v3.0

Notes

Note that the ButtonToken contract does not work with fee-on-transfer (FoT) tokens. These tokens are not compatible with the accounting of the deposit/mint functions in ButtonToken.

Bug Bounty

Details

button-wrappers's People

Contributors

aalavandhan avatar socksnflops avatar brandoniles avatar ahnaguib avatar fiddlekins avatar marktoda avatar drc9702 avatar dependabot[bot] avatar thegostep avatar michalstachnik avatar tedwu13 avatar truncs 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.