Create Reflective ERC20 Token

Hi Openzepplin,

I am getting started with Solidity, Truffle and ERC20 tokens and was wondering whether you could assist in providing easy to follow steps to implement the following features on a token:

  • X% of tokens should go into liquidity (on sell/buy)
  • Y% of tokens redistributed to token holders (on sell/buy)
  • Z% of tokens should go into the owner wallet/address (on sell/buy)

Thanks in advance,
aress31

Hi @aress31,

Welcome to the community :wave:

OpenZeppelin Contracts doesn’t include functionality for actions on transfer, though you could use hooks to potentially add these in. https://docs.openzeppelin.com/contracts/4.x/extending-contracts#using-hooks

1 Like