Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Otoken: Burn and Mint #31

Merged
merged 29 commits into from Jul 25, 2020
Merged

Otoken: Burn and Mint #31

merged 29 commits into from Jul 25, 2020

Conversation

antoncoding
Copy link
Contributor

@antoncoding antoncoding commented Jul 23, 2020

Description

This PR add mintOtoken and burnOtoken functions
This should be reviewed after #24 is merged, and change the based branch to master.

Todos:

  • Add doc for each function
  • Make test caes 100% coverage

@antoncoding antoncoding changed the title Otoken: erc20 operations Otoken: Burn and Mint Jul 23, 2020
@antoncoding antoncoding changed the title Otoken: Burn and Mint [WIP] Otoken: Burn and Mint Jul 23, 2020
@antoncoding antoncoding changed the title [WIP] Otoken: Burn and Mint Otoken: Burn and Mint Jul 24, 2020
@antoncoding antoncoding changed the base branch from otoken-init to master July 24, 2020 10:07
expiry = _expiry;
isPut = _isPut;
(string memory name, string memory symbol) = _getNameAndSymbol();
__ERC20_init_unchained(name, symbol);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where are the decimals set?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is set in the __ERC20_init_unchained function

function __ERC20_init_unchained(string memory name, string memory symbol) internal initializer {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

contracts/Otoken.sol Outdated Show resolved Hide resolved
contracts/Otoken.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@aparnakr aparnakr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome work @antoncoding!! :)

@haythemsellami haythemsellami merged commit d4ad496 into master Jul 25, 2020
@antoncoding antoncoding deleted the otoken-erc20 branch August 17, 2020 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contract Smart contract implementations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants