Skip to content

Lesson 12 Doubts #1671

Answered by krakxn
adityabhattad2021 asked this question in Q&A
Aug 10, 2022 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

1 and 2:

DSA will help in such cases.

mapping(address => mapping(address => uint256)) public allowance; basically maps the address key to the mapping(address => uint256) mapping.

Going deeper, that mapping(address => uint256) itself has a key which points to a uint256 type -- which here is our allowance.

3 and 4:

uint8 public decimals = 18;
totalSupply = initialSupply * 10**uint256(decimals);

Refer here for the above: https://github.com/ethereumjs/ethereumjs-units/blob/master/units.json

After going through it you can answer it yourself. If not, of course, reply and I will help. But try by yourself first.

5:

Stablecoins are cryptocurrencies backed 1:1 to their native currency, for example:…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@adityabhattad2021
Comment options

@aman-webdev
Comment options

Comment options

You must be logged in to vote
4 replies
@adityabhattad2021
Comment options

@krakxn
Comment options

@adityabhattad2021
Comment options

@krakxn
Comment options

Answer selected by adityabhattad2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants