You are viewing a single comment's thread from:RE: Introducing Wrapped Hive - Hive on Ethereum!View the full contextView the direct parentcardboard (65)in #hive • 4 years ago I don't have any particular plans for providing liquidity (yet). I wanna help with that :)
Hey @fbslo, I assumed the
burn
action need to be carried out in the website, if someone did it onchain using burn method, it won't work. I read through the code, is really simple and straight forward on the smart contract code.I used to have some code written back in the days when Hive first released, https://github.com/superoo7/BSwap
I created a method call
burnToBC
, where the params acceptusername
so that the token can be transfer back on blockchain/** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. * * Requirements: * * - Blockchain `username` */ function burnToBC(uint256 amount, string memory username) public { _burn(_msgSender(), amount); emit TokenBurnToBC(amount, username); }