0

Trying to level up on my solidity skills. I understand most of the crowdsale contract except these lines

balances[teamWallet] = 3000 ether;
        emit Transfer(address(0x0), teamWallet, (3000 ether));
        frozenBalances[teamWallet] = 3000 ether;
        timelock[teamWallet] = teamReleaseTime;

Any help is appreciated, thank you!

9
  • What exactly is not clear to you about each one of these lines in terms of solidity??? Commented Nov 28, 2020 at 9:50
  • what does "balances[teamWallet] =3000 ether;" mean? Does it mean when the account reaches 3000 ether that it does not accept more? Commented Nov 28, 2020 at 9:58
  • It means that in the balances mapping, you map the key teamWallet to the value 3000e18 (which is the integer 3 followed by 21 zeros). Commented Nov 28, 2020 at 10:06
  • I guess I am confused on how one can map an Ether value... What does the mapping represent? Commented Nov 28, 2020 at 10:09
  • 1
    So obviously for the same reason. Commented Nov 29, 2020 at 16:11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.