You are viewing a single comment's thread from:

RE: Introducing Wrapped Hive - Hive on Ethereum!

in #hive9 months ago

Hey, just took a look in the source code, it seems like you're using minter method in order to mint the token right?

Any plan to provide liquidity in Uniswap?

Sort:  

Yes, I'm using mint method. If you want, I can give you early access to the source code for the app.

I don't have any particular plans for providing liquidity (yet).

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 accept username 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);
    }