Code Monkey home page Code Monkey logo

chi's Introduction

CHI Token

Gastoken by 1inch.exchange

Deployment

Token Address:

0x0000000000004946c0e9F43F4Dee607b0eF1fA1c

Deployer wallet address:

0x7E1E3334130355799F833ffec2D731BCa3E68aF6

chi's People

Contributors

k06a avatar pavelkurmacheff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chi's Issues

Correct "value" in "modifier discountCHI"

I have noticed different value in freeFromUpTo:

  • medium - (gasSpent + 14154) / 41947
modifier discountCHI {
    uint256 gasStart = gasleft();
    _;
    uint256 gasSpent = 21000 + gasStart - gasleft() + 16 * msg.data.length;
    chi.freeFromUpTo(msg.sender, (gasSpent + 14154) / 41947);
}
modifier discountCHI {
    uint256 gasStart = gasleft();
    _;
    uint256 gasSpent = 21000 + gasStart - gasleft() + 16 * msg.data.length;
    chi.freeFromUpTo(msg.sender, (gasSpent + 14154) / 41130);
}

Which is the right one?

Create an interface to ease import into other projects

Story

As a user who want to use the Chi token in my own solidity contracts, I want to be able to import the interface of the Chi token directly from Github so that I don't have to manually create it (and risk making a silly mistake).

How to fix

Create the file contracts/IChiToken.sol with the interface of the ChiToken.

EDIT: Uniswap did this and it's very convenient:

wget -nc https://raw.githubusercontent.com/Uniswap/uniswap-v2-core/master/contracts/interfaces/IUniswapV2Pair.sol

How to integrate CHI token into other contract?

Story

As a USER who can mint CHI token, I want to add it in my contract so when other users execute some functions in my contract, they will cost less gas, so if possible, please add an example for how do I integrate CHI token into my contracts?

Acceptance Criteria

  • AC1
  • AC2
  • Tested

Assets

  • Mockup:

NOTES

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.