Lesson 2: Distribute shares
Difficulty: low.
These Aira DAO Modules will be used:
Lesson Description
Some shareholder tokens
were emitted when DAO was created. Now you need to distribute them to your team members.
You can do that in 2 different ways:
- Send the tokens directly;
- Call an
Aira BuilderShareholder
builder to create aShareholder
contract. When theSign
function is called, it will automatically withdraw a specified number of tokens from thefounder
to therecipient
(specified during contract creation).
The main difference is that, in the first case, the recipient
becomes a shareholder automatically, without any approval. The second option requires explicit approval. The function sign
is used for that.
Notice: do not forget to call the
approve
function (seeShareholder token
contract) to enable token withdrawal byShareholder
contract.
Skill test
Complete this lesson and get 50
ABT
tokens!
Instructions:
- Allow the
Airalab learning center
address to withdraw 1 share of theShareholder token
. - Call the
Execute()
function from theLesson 2
contract.