CryptoFly.us | CRYPTOCURRENCY BITCOIN SHIRTS CLOTHING APPAREL HATS

CRYPTO NEWS

NFTs allow people to ‘interact with crypto in a hands-on way’ — Shaq

NFT art and sales dominated headlines all throughout 2021, and now that crypto has gone mainstream, Shaq says the sector is primed for expansion.

How to pass IERC20 as argument in solidity?

i’m trying to deploy sushiSwap on my local machine. but i don’t know what should i pass a argument in constructor… code is like… pragma solidity 0.6.12; import "./IERC20.sol"; import "./ERC20.sol"; import "./SafeMath.sol"; contract SushiBar is ERC20("SushiBar", "xSUSHI"){ using SafeMath for uint256; IERC20 public sushi; constructor(IERC20 _sushi) public { sushi = _sushi; } // Enter::Listen

i’m trying to deploy sushiSwap on my local machine. but i don’t know what should i pass a argument in constructor… code is like…

pragma solidity 0.6.12;  import "./IERC20.sol"; import "./ERC20.sol"; import "./SafeMath.sol";   contract SushiBar is ERC20("SushiBar", "xSUSHI"){     using SafeMath for uint256;     IERC20 public sushi;      constructor(IERC20 _sushi) public {         sushi = _sushi;     }      // Enter the bar. Pay some SUSHIs. Earn some shares.     function enter(uint256 _amount) public {         uint256 totalSushi = sushi.balanceOf(address(this));         uint256 totalShares = totalSupply();         if (totalShares == 0 || totalSushi == 0) {             _mint(msg.sender, _amount);         } else {             uint256 what = _amount.mul(totalShares).div(totalSushi);             _mint(msg.sender, what);         }         sushi.transferFrom(msg.sender, address(this), _amount);     }.. 

. so on

NFTs allow people to ‘interact with crypto in a hands-on way’ — Shaq

Shopping cart
There are no products in the cart!
Continue shopping
0