Darwin-Coin / darwin-token-contracts

Darwin Protocol Smart Contracts
https://darwinprotocol.io
0 stars 0 forks source link

DarwinPresale: Properly calculate number of tokens to add liquidity alongside raised funds #32

Closed kingofclubstroyDev closed 1 year ago

kingofclubstroyDev commented 1 year ago

Need to calculate how many darwin tokens to send with raised bnb so it is the proper ratio/price when calling provideLpAndWithdrawTokens

thesios commented 1 year ago

lets work this along with 25

SomeTimesIInvent commented 1 year ago

So the ratio we have is:

This equates to 15,873.01587 Darwin per BNB.

If we assume a price of $280 per BNB that would give us a Darwin per token value of $0.01764.

Now while I would like to keep that ratio, the issue becomes what happens to our giveaway winners? At a large BNB raise they aren't an issue. But we are looking at giving away around 35million tokens valued at $600k or so. Do we need to adjust the value of the token to be worth less up to a certain price point so as not to hurt the pool at launch via competition winner dumps?

SomeTimesIInvent commented 1 year ago

I just realised that we already have numbers we can use for this.

We can just use our pre-sale stage numbers as so:

1 | 50,000.00 per 1 BNB 2 | 47,000.00 per 1 BNB 3 | 44,000.00 per 1 BNB 4 | 41,000.00 per 1 BNB 5 | 38,000.00 per 1 BNB 6 | 35,000.00 per 1 BNB 7 | 32,000.00 per 1 BNB 8 | 29,000.00 per 1 BNB 9 | 26,131.00 per 1 BNB Launch | 15,873 per 1 BNB

So the aim is to finish Stage 9 and then set the value at 15,873 per 1 BNB.

But lets say we only get to stage 3, then we would set the LP at the value of stage 4 which 41,000 per 1 BNB. And so on.

If you all think that is too small a margin for investors, then we could go by 2 or 3 stages instead. So if we reach stage 3 then the LP will be set at say stage 6 which would be 35,000 per 1 BNB. If they get to Stage 7 or above then when it finishes they do the launch BNB regardless.

What do you all think?

thesios commented 1 year ago

regardless of the stage, there is a known ratio per bnb raised, why not use dat

Unless we want to peg a value

SomeTimesIInvent commented 1 year ago

That is what I am using, the ratio of Darwin to BNB. I only use $ value when making estimates to people of what to expect. In our numbers such as above I always go by Darwin to BNB ratio.

So I think using the pre-sale stages as our LP is good, just need to decide whether to go by what the value would be on the next stage, or a couple more stages up.

kingofclubstroyDev commented 1 year ago

In my new pull request i take the ratio of (Hardcap bnb / total bnb Raised) * darwin Max Lp Amount, which will give us the proper ratio irrelevent of the amount raised

SomeTimesIInvent commented 1 year ago

So you will always apply the 1 billion Darwin in the lp if I am reading that right?

If so yeah that should be fine

thesios commented 1 year ago

So you will always apply the 1 billion Darwin in the lp if I am reading that right?

If so yeah that should be fine

he is not

thesios commented 1 year ago

the ratio of darwin / bnb is a constant atm

unless we want to tweak the price of the token at launch time

SomeTimesIInvent commented 1 year ago

We 100% do not want it to be constant. If we don't sell enough Darwin the token will crash in the first day too heavily from just a few sellers cashing out.

kingofclubstroyDev commented 1 year ago

how so? ratio = price, if we use a constant lp amount then the price per darwin will vary based on the amount of bnb raised. It would be really cheap if we didn't raise that much funding, and potentially cheaper than the price people purchased at in the presale

SomeTimesIInvent commented 1 year ago

Ok just spoke to George and it seems what I was saying wasn't clear.

So basically we are doing 9 levels of pre-sale. The people that buy in at say pre-sale stage 1 or 2 are doing so with the idea to sell the token as soon as it launches. Those in the later stages are buying to hold on for longer term. So we set the ratio of 45% raised BNB against 1 billion darwin with that in mind, that some will sell and most will hold.

BUT that only works if there is enough BNB raised. If we don't have enough BNB in the pool because we don't reach a high enough stage, yet still keep the same ratio which gives us the same price of $0.01764 (assuming $280 per BNB), then those people who bought in are going to see the huge profits and sell immediately. Nearly everyone in stages 1 and 2 will do that. And if we only reach stage 2 then we lose all our holders and the value of the token will be near on zero.

We therefore HAVE to devalue the token if we don't have enough BNB to support dumps. We can't have an LP of say $1million in BNB and then let holders have $10million in Darwin between them.

Due to that we need the ratio to change and follow the presale pattern:

1 | 50,000.00 per 1 BNB 2 | 47,000.00 per 1 BNB 3 | 44,000.00 per 1 BNB 4 | 41,000.00 per 1 BNB 5 | 38,000.00 per 1 BNB 6 | 35,000.00 per 1 BNB 7 | 32,000.00 per 1 BNB 8 | 29,000.00 per 1 BNB 9 | 26,131.00 per 1 BNB Launch | 15,873 per 1 BNB

If we only reach pre-sale stage 1 then we want the ratio of token to BNB to match pre-sale stage 2 in the LP. If we reach pre-sale stage 2, then we want the ratio of token to BNB to match pre-sale stage 3 and so on.

We have to protect the token by not making it so tempting to dump as soon as we launch. If we reach like stage 7 or something then it won't matter as we will have enough BNB to take the dumps and keep going. Below that, we won't.

kingofclubstroyDev commented 1 year ago

So you want the ratio to be current stage + 1?

SomeTimesIInvent commented 1 year ago

Yes please.

kingofclubstroyDev commented 1 year ago

resolved