Guys, how do i code that certain number of tokens be released periodically ?
I was thinking , 2 contracts :-
1 token contract
2 - lock contract, where preset address can claim their appropriate amount daily.
[ I will have to set the daily cumulative amounts in an array]
Any issues with my solution ?
Any better way of doing this ?
Grateful for any help.
Mar 8, 2022, 12:56 PM
Why don’t you use a token locker and you lock them for the time you want and transfer people the locks?
Mar 8, 2022, 12:57 PM
Coz ,i want it to release some tokens daily.
Mar 8, 2022, 12:58 PM
Oh
Mar 8, 2022, 12:58 PM
For example ,
100 tokens are locked .
And there are 5 investors, who must get 2 tokens daily until the 100 tokens are fully used up.
100 tokens are locked .
And there are 5 investors, who must get 2 tokens daily until the 100 tokens are fully used up.
Mar 8, 2022, 12:59 PM
Then you’ve got to do a second contract as you said (make it as a dapp, and release the tokens every 24 hours to the following addresses, and they can claim whenever they want).
Mar 8, 2022, 12:59 PM
I want to acheive something like this
Yeah, even i thought of the same,
Problem is my array will be very big and i will have to precalculate daily amounts.
Correct ?
Any way to avoid this ?😅
Problem is my array will be very big and i will have to precalculate daily amounts.
Correct ?
Any way to avoid this ?😅
Mar 8, 2022, 1:01 PM
Like automatic airdrop to the following addresses, or make the following thing, take those addresses and put them in the actual smart contract, the only ones who can claim those tokens, are those addresses.
Mar 8, 2022, 1:01 PM
My array =[2,4,6,8,....20]
Daily cumulative amounts
At index 0, i e day 1 , no address coukd have withdrawn more than 2 token and so on...
At index 0, i e day 1 , no address coukd have withdrawn more than 2 token and so on...
At index 1, day 2, no address could have withdrawn more than 4.
I will also have to keep track of how much each investor has withdrawn already
I will also have to keep track of how much each investor has withdrawn already
Mar 8, 2022, 1:05 PM