I am trying to study CAKE of Pancakeswap source code. I don't seem to grasp how does the owner or users burn the tokens(CAKE) since all burn functions in the source code are internal functions. on of the them:

function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
            _allowances[account][_msgSender()].sub(amount, 'BEP20: burn amount exceeds allowance')

The entire source code can be found here : Cake source code


I don't think that the burn function is used. Pancakeswap does it by sending tokens to burn address which is 0x000000000000000000000000000000000000dead

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.