forked from Nicca42/BondingCurveFactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1125 lines (1106 loc) · 45.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<!-- This site was created in Webflow. http://www.webflow.com -->
<!-- Last Published: Sun May 24 2020 05:56:15 GMT+0000 (Coordinated Universal Time) -->
<html data-wf-page="5ec2eb48d7c5d8b361390275" data-wf-site="5ec2eb48d7c5d8719b390274">
<meta charset="utf-8">
<title>Liquorice Gen - Generate liquidity for your DeFi project</title>
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta content="Webflow" name="generator">
<link href="css/normalize.css" rel="stylesheet" type="text/css">
<link href="css/webflow.css" rel="stylesheet" type="text/css">
<link href="css/liquorice-gen.webflow.css" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js" type="text/javascript"></script>
<script
type="text/javascript">WebFont.load({ google: { families: ["Exo:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic", "Open Sans:300,300italic,400,400italic,600,600italic,700,700italic,800,800italic", "Droid Serif:400,400italic,700,700italic"] } });</script>
<!-- [if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js" type="text/javascript"></script><![endif] -->
<script
type="text/javascript">!function (o, c) { var n = c.documentElement, t = " w-mod-"; n.className += t + "js", ("ontouchstart" in o || o.DocumentTouch && c instanceof DocumentTouch) && (n.className += t + "touch") }(window, document);</script>
<link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon">
<link href="images/webclip.png" rel="apple-touch-icon">
<body>
<div class="container" id="vue-app">
<div class="nmenudesktop">
<div class="nnavbar">
<div class="nnavbarcontents">
<div class="navbaritems">
<div class="navblockitemstrigger">
<div class="text-block"><a href="https://www.linumlabs.com/research" contactform="#Contactform"
target="_blank" class="navlink">Research</a></div>
</div>
<div class="navblockitemstrigger">
<div class="text-block"><a href="#About" contactform="#Contactform" class="navlink">About</a></div>
</div>
<div class="navblockitemstrigger">
<div class="text-block"><a href="#Generate" contactform="#Contactform" class="navlink">Generate</a></div>
</div>
</div>
</div>
<div class="useraddress"><img src="images/metamask.svg" alt="" class="iconimage">
<div id="userAddressSet" class="addressblock">{{account}}</div>
</div>
</div>
</div>
<main class="main">
<header class="headerwrapper">
<div class="aboutportion header"><img src="images/Liq-Wordmark.svg" alt="" class="logoimageheader">
<div class="headertitle w-container">
<h5>become <strong>liquid</strong> rich.</h5>
<p class="headerpara">Bootstrap liquidity though our all-in-one bonding curve tool service</p>
<div class="buttonembed w-embed"><button type="button" style="color:#FF500B;
background-color:FFFFFF;
min-width: 150px;
padding-left: 20px;
padding-right: 20px;
padding-top: 10px;
padding-bottom: 10px" @click="connect()">
Connect your Wallet
</button></div>
</div>
</div>
</header>
<header id="About" class="aboutwrapper">
<div connected class="aboutportion">
<div class="stepcontainer w-container">
<div class="rich-text-block w-richtext">
<h1>How it works</h1>
<p><strong>Using a bonding curve to collect liquidity, Liquorice Gen will take your token from 0 to hero,
and allow you to launch a Uniswap market for your freshly funded token.</strong></p>
<p>Below are the various parameters that can be set and fiddled with in order to design your token.</p>
<ul role="list">
<li>The first set of parameters are the basic ERC20 token parameters</li>
<li>This is followed by the advanced set up for the thresholds for transitioning your token from the
bonding curve to a Uniswap market.</li>
<li>Finally the parameters for the bonding curve - which will determine the price of your token until
the
transition to the open market.</li>
<li>You can edit any of these fields and see the results in the summary.</li>
<li>When you are happy with the results, you can generate your bonding curve at the end of this page.
</li>
</ul>
</div>
</div>
</div>
</header>
<header class="sectionwrapper">
<div class="stepcontainer w-container">
<h1>1. Design your Token</h1>
<p>These parameters set up the basics of your ERC20 token.</p>
<div class="inputfieldswrapper">
<article id="TokenName" class="inputfieldwrapper double">
<article id="TokenName" class="inputfieldwrapper name">
<div class="labeltextblock">Token Name</div>
<div class="code-embed name w-embed"><input v-model="tokenSettings.tokenNameInput" style="
color:##e2e2e2;
background-color:#1E1E1E;
padding-left: 10px;
padding-right: 10px;
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
height: 40px;
border-top-style: solid;
border-top-color: #232323;
border-top-width: 1px;
border-left-style: solid;
border-left-color: #232323;
border-left-width: 1px;
border-right-style: solid;
border-right-color: #232323;
border-right-width: 1px;
border-bottom-style: solid;
border-bottom-color: #232323;
border-bottom-width: 1px;
" type="text" maxlength="15" id="tokenNameInput"></div>
</article>
<article id="TokenSymbol" class="inputfieldwrapper symbol">
<div class="labeltextblock">Symbol</div>
<div class="code-embed symbol w-embed"><input v-model="tokenSettings.tokenSymbolInput" style="
color:##e2e2e2;
background-color:#1E1E1E;
padding-left: 10px;
padding-right: 10px;
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
height: 40px;
border-top-style: solid;
border-top-color: #363636;
border-top-width: 1px;
border-left-style: solid;
border-left-color: #232323;
border-left-width: 1px;
border-right-style: solid;
border-right-color: #232323;
border-right-width: 1px;
border-bottom-style: solid;
border-bottom-color: #232323;
border-bottom-width: 1px;
" type="text" maxlength="3" id="tokenSymbolInput"></div>
</article>
</article>
<article id="TokenCollateral" class="inputfieldwrapper collateral">
<div class="labeltextblock">Collateral Address</div>
<div class="code-embed w-embed"><input v-model="collateralToken" style="
color:##e2e2e2;
background-color:#1E1E1E;
padding-left: 10px;
padding-right: 10px;
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
height: 40px;
border-top-style: solid;
border-top-color: #232323;
border-top-width: 1px;
border-left-style: solid;
border-left-color: #232323;
border-left-width: 1px;
border-right-style: solid;
border-right-color: #232323;
border-right-width: 1px;
border-bottom-style: solid;
border-bottom-color: #232323;
border-bottom-width: 1px;
" type="text" id="tokenCollateralInput"></div>
</article>
</div>
</div>
<div class="stepcontainer w-container">
<h1>2. Advanced Token Setup</h1>
<p>For the magic of Liquorice Gen to work you need to fill in a few more advanced parameters for your Token
collateral. The threshold inputs will be scaled by 1e18 for you.</p>
<div class="inputfieldswrapper">
<article id="TokenName" class="inputfieldwrapper collateral">
<div class="labeltextblock">Token Threshold</div>
<div class="code-embed curve w-embed"><input v-model="tokenSettings.tokenThresholdInput" style="
color:##e2e2e2;
background-color:#1E1E1E;
padding-left: 10px;
padding-right: 10px;
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
height: 40px;
border-top-style: solid;
border-top-color: #232323;
border-top-width: 1px;
border-left-style: solid;
border-left-color: #232323;
border-left-width: 1px;
border-right-style: solid;
border-right-color: #232323;
border-right-width: 1px;
border-bottom-style: solid;
border-bottom-color: #232323;
border-bottom-width: 1px;
" type="text" maxlength="30" id="tokenThresholdInput"></div>
</article>
<article id="TokenCollateral" class="inputfieldwrapper collateral">
<div class="labeltextblock">Timeout <br></div>
<div class="code-embed curve w-embed"><input v-model="tokenSettings.tokenTimeOutInput" style="
color:##e2e2e2;
background-color:#1E1E1E;
padding-left: 10px;
padding-right: 10px;
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
height: 40px;
border-top-style: solid;
border-top-color: #232323;
border-top-width: 1px;
border-left-style: solid;
border-left-color: #232323;
border-left-width: 1px;
border-right-style: solid;
border-right-color: #232323;
border-right-width: 1px;
border-bottom-style: solid;
border-bottom-color: #232323;
border-bottom-width: 1px;
" type="text" maxlength="3" id="tokenTimeOutInput"></div>
</article>
<article id="TokenCollateral" class="inputfieldwrapper collateral">
<div class="labeltextblock">Minimum Token<br>Threshold</div>
<div class="code-embed curve w-embed"><input v-model="tokenSettings.minTokenThresholdInput" style="
color:##e2e2e2;
background-color:#1E1E1E;
padding-left: 10px;
padding-right: 10px;
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
height: 40px;
border-top-style: solid;
border-top-color: #232323;
border-top-width: 1px;
border-left-style: solid;
border-left-color: #232323;
border-left-width: 1px;
border-right-style: solid;
border-right-color: #232323;
border-right-width: 1px;
border-bottom-style: solid;
border-bottom-color: #232323;
border-bottom-width: 1px;
" type="text" maxlength="35" id="minTokenThresholdInput"></div>
</article>
</div>
</div>
<div class="stepcontainer w-container">
<h1>3. Curve Parameters</h1>
<p><strong>To determine the price of the token, the bonding curve needs to be configured.
</strong><br><br>This
configuration will affect the price of the token, as well as how much collateral will be in your token when
it
transitions to the free market. The collateral values can be seen in much more detail in the results section
of this page once you have configured the curve.</p>
<h1 class="heading-7">How does the bonding curve smart contract work?</h1>
<p>All of these numbers are scaled to 1e18. This means that if you enter 400 you are really entering 0 . 000
000
000 000 000 400. Each parameter has a max limit that it cannot be greater than (or you are going to run into
some overflows). These limits are determined by your token threshold.</p><img
src="images/Equationweb-01.svg" alt="" class="image-18">
<div class="inputfieldswrapper">
<article id="TokenCollateral" class="inputfieldwrapper collateral">
<div class="labeltextblock">Curve Input A</div>
<div class="code-embed curve w-embed"><input v-model="tokenSettings.curveParamAInput" style="
color:##e2e2e2;
background-color:#1E1E1E;
padding-left: 10px;
padding-right: 10px;
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
height: 40px;
border-top-style: solid;
border-top-color: #232323;
border-top-width: 1px;
border-left-style: solid;
border-left-color: #232323;
border-left-width: 1px;
border-right-style: solid;
border-right-color: #232323;
border-right-width: 1px;
border-bottom-style: solid;
border-bottom-color: #232323;
border-bottom-width: 1px;
" type="text" maxlength="35" id="curveParamAInput"></div>
</article>
<article id="TokenCollateral" class="inputfieldwrapper collateral">
<div class="labeltextblock">Curve Input B</div>
<div class="code-embed curve w-embed"><input v-model="tokenSettings.curveParamBInput" style="
color:##e2e2e2;
background-color:#1E1E1E;
padding-left: 10px;
padding-right: 10px;
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
height: 40px;
border-top-style: solid;
border-top-color: #232323;
border-top-width: 1px;
border-left-style: solid;
border-left-color: #232323;
border-left-width: 1px;
border-right-style: solid;
border-right-color: #232323;
border-right-width: 1px;
border-bottom-style: solid;
border-bottom-color: #232323;
border-bottom-width: 1px;
" type="text" maxlength="35" id="curveParamBInput"></div>
</article>
<article id="TokenCollateral" class="inputfieldwrapper collateral">
<div class="labeltextblock">Curve Input C</div>
<div class="code-embed curve w-embed"><input v-model="tokenSettings.curveParamCInput" style="
color:##e2e2e2;
background-color:#1E1E1E;
padding-left: 10px;
padding-right: 10px;
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
height: 40px;
border-top-style: solid;
border-top-color: #232323;
border-top-width: 1px;
border-left-style: solid;
border-left-color: #232323;
border-left-width: 1px;
border-right-style: solid;
border-right-color: #232323;
border-right-width: 1px;
border-bottom-style: solid;
border-bottom-color: #232323;
border-bottom-width: 1px;
" type="text" maxlength="35" id="curveParamCInput"></div>
</article>
</div>
<div class="protipwrapper left step2">
<div class="protipiconholder left"><img src="images/Liquorice-Gen-Assets-06.svg" alt=""
class="protipicon left">
<div class="protipiconp">i</div>
</div>
<p class="protippara"><span><strong
class="protiphead">Protip</strong></span><strong></strong><br><br><strong>Holding the others
constant,
a, b & c represent the following:</strong><br><br>a sets the curvature of the line. Setting a >
0
will make the price of your token exponential, and climb very quickly.<br><br>b sets the gradient of the
line, i.e how steeply it rises. If b > 0 then your curve will be tilted upwards, and the price will
steadily increase.<br><br>c sets how high the price starts. This variable has more flexibility and does
not
affect over/under flows as much so long as c < 1e18.</p>
</div>
</div>
<div class="protipwrapper right">
<div class="protipiconholder"><img src="images/Liquorice-Gen-Assets-08.svg" alt="" class="protipicon">
<div class="protipiconp">i</div>
</div>
<p class="protippara"><span><strong class="protiphead">Protip</strong></span><strong><br></strong><br><span
class="underline"><strong>Name of Token:</strong></span><br>This will be the name of your
token.<br><br><span class="underline"><strong>Symbol:</strong></span><br>This will be the shorthand that is
used to display the name of your token.Collateral <br><br><span
class="underline"><strong>Address:</strong></span><br>The address of the ERC20 token you want the cost of
your token to be set in. I.e enter the DAI address and the price of your token will be expressed as a DAI
value.<br><br><strong>Note:</strong> Eth is not supported as a collateral token, you will need to use
wrapped
Eth. It is recommended you use a stable coin, as a token with a volatile price will heavily affect the
opportunity cost of buying your token.<br></p>
</div>
<div class="protipwrapper left">
<div class="protipiconholder left"><img src="images/Liquorice-Gen-Assets-06.svg" alt=""
class="protipicon left">
<div class="protipiconp">i</div>
</div>
<p class="protippara"><span><strong class="protiphead">Protip</strong></span><strong><br></strong><br><span
class="underline"><strong>Token threshold:</strong></span><br>How many tokens do you want to be minted
before moving across to the free market. Remember that you will not be able to mint more tokens than this
number, so it's better for this to be high with a low bonding curve price.<br><br><span
class="underline"><strong>Timeout:</strong></span><br>This will determine how long your token will wait
before it starts checking against the minimum threshold rather than the max threshold. Your bonding curve
will
not shut down or stop functioning after this timeout, Its rather a way to lower the barrier for
transitioning
after expiry.<br><br><span class="underline"><strong>Minimum Token Threshold</strong></span><br>The minimum
number of tokens you want to be minted before transitioning your token into the free market. This value will
only be checked against after the contract has timed out.</p>
</div>
</header>
<div class="summarysecition">
<div class="titlesection">
<h1 class="heading-4">4. Summary</h1>
<p>Given the parameters you set, here is how your curve is going to behave, and how much funding is going to
be available when you move over to a Uniswap pool.</p>
<div class="buttonwrapper">
<div class="buttonembed w-embed"><button type="button" style="color:#FFFFFF;
background-color:#FF500B;
padding-left: 20px;
padding-right: 20px;
padding-top: 10px;
padding-bottom: 10px" @click="showSummary()">
Show Summary
</button></div>
</div>
</div>
<div class="summarycontents address">
<div class="scriptinfowrapperaddress">
<div class="itemwrapper">
<div id="tokenInfoCO" class="textblock address">{{collateralToken}}</div>
<h4>Token Collateral Address</h4>
</div>
</div>
</div>
<div class="summarycontents">
<div class="scriptinfowrapper _01">
<div class="itemwrapper">
<div id="tokenInfoSY" class="textblock big">{{tokenResults.synb}}</div>
<div id="tokenInfoNA" class="textblock medium">{{tokenResults.name}}</div>
</div>
</div>
<div class="scriptinfowrapper _03">
<div class="itemwrapper">
<div id="tokenInfoTT" class="textblock medium-number">{{tokenResults.maxToken}}</div>
<h4>Token Threshold</h4>
</div>
</div>
<div class="scriptinfowrapper _05b">
<div class="itemwrapper">
<div id="tokenInfoMTT" class="textblock medium-number">{{tokenResults.minToken}}</div>
<h4>Minimum Token <br>Threshold</h4>
</div>
</div>
<div class="scriptinfowrapper _06">
<div class="itemwrapper">
<div id="tokenInfoTO" class="textblock medium-number">{{tokenResults.timeout}}</div>
<h4>Collateral Time Out<br>(months)</h4>
</div>
</div>
</div>
<div class="summarycontents">
<div class="scriptinfowrapper _07">
<div class="itemwrapper">
<div id="curveInfoA" class="textblock medium-number">{{tokenResults.curveA}}</div>
<h4>curve Parameter</h4>
<div class="textblock small">a</div>
</div>
</div>
<div class="scriptinfowrapper _08">
<div class="itemwrapper">
<div id="curveInfoB" class="textblock medium-number">{{tokenResults.curveB}}</div>
<h4>curve Parameter</h4>
<div class="textblock small">B</div>
</div>
</div>
<div class="scriptinfowrapper _08">
<div class="itemwrapper">
<div id="curveInfoC" class="textblock medium-number">{{tokenResults.curveC}}</div>
<h4>curve Parameter</h4>
<div class="textblock small">C</div>
</div>
</div>
</div>
</div>
<div class="resultssecition">
<div class="titlesection">
<h1 class="heading-4">5. Full Results</h1>
<p>Given the parameters you set, here is how your curve is going to behave, and how much funding is going to
be available when you move over to a Uniswap pool <span class="emojitextsmall">🦄</span></p>
</div>
<div class="summarycontents">
<div class="scriptinfowrapper _09">
<div class="textblock small">MAX</div>
<div class="itemwrapper">
<div id="tokenMaxResult" class="textblock medium-number">{{tokenResults.maxCollateral}}</div>
<h4>how much collateral there will be at the token threshold</h4>
</div>
</div>
<div class="spacer"></div>
<div class="scriptinfowrapper _10">
<div class="textblock small">Min</div>
<div class="itemwrapper">
<div id="tokenMinResult" class="textblock medium-number">{{tokenResults.minCollateral}}</div>
<h4>how much collateral there will be at the min token threshold</h4>
</div>
</div>
</div>
<div class="summarycontents">
<div class="scriptinfowrapper _11">
<div class="itemwrapper">
<div id="tokenNumberMaxResult" class="textblock medium-number">{{tokenResults.maxToken}}</div>
<h4>MAX number of tokens</h4>
</div>
</div>
<div class="scriptinfowrapper _11">
<div class="itemwrapper">
<div id="tokenPriceMaxResult" class="textblock medium-number">{{tokenResults.maxTokenStartPrice}}</div>
<h4>MAX Token Start Price</h4>
</div>
</div>
<div class="scriptinfowrapper _11">
<div class="itemwrapper">
<div id="tokenNumberMaxResult" class="textblock medium-number">{{tokenResults.minToken}}</div>
<h4>Min Number of Tokens</h4>
</div>
</div>
<div class="scriptinfowrapper _11">
<div class="itemwrapper">
<div id="tokenPriceMinResult" class="textblock medium-number">{{tokenResults.minTokenStartPrice}}</div>
<h4>Min Token Start Price</h4>
</div>
</div>
</div>
</div>
<div id="Generate" class="generatesection">
<div class="titlesection">
<h1 class="heading-4">6. Generate</h1>
<p><strong>Are you ready to create your IBCO? </strong><br><br>Selecting I am ready below will generate your
transaction.</p>
<h2 class="heading-5"><span class="orangetext">Warning: </span><br>This will generate your IBCO contract. Your
token address will be given to you, and from there you are on your own, good luck!<br><span
class="emojitext big">🚀</span></h2>
<div class="buttonwrapper">
<div class="buttonembed w-embed"><button type="button" style="color:#FFFFFF;
background-color:#FF500B;
padding-left: 20px;
padding-right: 20px;
padding-top: 10px;
padding-bottom: 10px" @click="deployMarket()">
Yes I am Ready!
</button></div>
</div>
</div>
</div>
<div v-if="txPending">
<img src="./images/load.gif">
</div>
<div v-if="createdTokenAddress != null" id="Generate" class="productsection">
<div class="titlesection">
<h1 class="heading-4">7. Get New Token Address</h1>
<p>Click to see it on Etherscan</p><a id="newTokenAddress"
:href="`https://rinkeby.etherscan.io/address/${createdTokenAddress}`" target="_blank"
class="newaddresslink">{{createdTokenAddress}}</a>
</div>
</div>
</main>
<div class="footersection">
<div id="TopLevelFooter" class="footer-top-level-content">
<div class="footer-logo"><img
src="https://uploads-ssl.webflow.com/5e2957ba64852b9941d95ef8/5e2af00a47a6a2ddf4605eda_LinumLabs%20Official%20Long%20Logo%20WHITE.svg"
alt="" class="image-17">
<div class="footer-copyright-2">Linum Labs AG.</div>
</div>
<ol role="list" class="list01-2">
<li class="link-footer box"><a href="#" class="link-footer">About</a></li>
<li class="link-footer box"><a href="#" class="link-footer">Services</a></li>
<li class="link-footer box"><a href="#" class="link-footer">Use Cases</a></li>
</ol>
<div class="social-media-icons-2"><a href="https://t.me/joinchat/H0o-axGcUUH2Y8Ty3KOieA"
class="social-link-block-2 w-inline-block"></a><a href="https://twitter.com/Molecule_to" target="_blank"
class="social-link-block-2 w-inline-block"><img
src="https://uploads-ssl.webflow.com/5d4c40858620ae319d34e1e5/5d57d7fb1e1398834a1b95b2_IconswebCyan_twitter.svg"
alt="" class="social01-2"></a><a href="https://medium.com/molecule-blog" target="_blank"
class="social-link-block-2 w-inline-block"><img
src="https://uploads-ssl.webflow.com/5d4c40858620ae319d34e1e5/5d57d7ec8602db1e02921e33_IconswebCyan_medium.svg"
alt="" class="social01-2"></a><a href="https://www.linkedin.com/company/molecule-protocol/"
target="_blank" class="social-link-block-2 w-inline-block"><img
src="https://uploads-ssl.webflow.com/5d4c40858620ae319d34e1e5/5d57d82483100bf15dff7648_IconswebCyan_linkedin.svg"
alt="" class="social01-2"></a><a href="https://gitlab.com/linumlabs" target="_blank"
class="social-link-block-2 w-inline-block"><img src="images/IconswebMOL_gitlab.svg" alt=""
class="social01-2"></a><a href="https://discord.gg/KPqEZmQ" target="_blank"
class="social-link-block-2 w-inline-block"></a></div>
</div>
</div>
</div>
<script src="https://d3e54v103j8qbb.cloudfront.net/js/jquery-3.4.1.min.220afd743d.js?site=5ec2eb48d7c5d8719b390274"
type="text/javascript" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<script src="js/webflow.js" type="text/javascript"></script>
<!-- [if lte IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/placeholders/3.0.2/placeholders.min.js"></script><![endif] -->
<!-- <script>
//Basic Info
function tokenBasicInfo() {
var name = document.getElementById("tokenNameInput").value;
var symbol = document.getElementById("tokenSymbolInput").value;
var collateral = document.getElementById("tokenCollateralInput").value;
document.getElementById("tokenInfoNA").innerHTML = name;
document.getElementById("tokenInfoSY").innerHTML = symbol;
document.getElementById("tokenInfoCO").innerHTML = collateral;
}
//Advanced Info
function tokenAdvancedInfo() {
var tokenThreshold = document.getElementById("tokenThresholdInput").value;
var tokenTimeOut = document.getElementById("tokenTimeOutInput").value;
var minTokenThreshold = document.getElementById("minTokenThresholdInput").value;
document.getElementById("tokenInfoTT").innerHTML = tokenThreshold;
document.getElementById("tokenInfoTO").innerHTML = tokenTimeOut
document.getElementById("tokenInfoMTT").innerHTML = minTokenThreshold;
}
//Curve info
function curveParamInfo() {
var curveParamA = document.getElementById("curveParamAInput").value;
var curveParamB = document.getElementById("curveParamBInput").value;
var curveParamC = document.getElementById("curveParamCInput").value;
document.getElementById("curveInfoA").innerHTML = curveParamA;
document.getElementById("curveInfoB").innerHTML = curveParamB;
document.getElementById("curveInfoC").innerHTML = curveParamC;
}
//Summary of all inputs
function allInfo() {
tokenBasicInfo();
tokenAdvancedInfo();
curveParamInfo();
}
function resetInfo() {
// Reset all info in inputs
document.getElementById("tokenNameInput").value = "";
document.getElementById("tokenSymbolInput").value = "";
document.getElementById("tokenCollateralInput").value = "";
document.getElementById("tokenThresholdInput").value = "";
document.getElementById("tokenTimeOutInput").value = "";
document.getElementById("minTokenThresholdInput").value = "";
document.getElementById("curveParamAInput").value = "";
document.getElementById("curveParamBInput").value = "";
document.getElementById("curveParamCInput").value = "";
// Reset all info in summary
document.getElementById("tokenInfoNA").innerHTML = "Coolest Token";
document.getElementById("tokenInfoSY").innerHTML = "CLT";
document.getElementById("tokenInfoCO").innerHTML = "0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359";
document.getElementById("tokenInfoTT").innerHTML = "000 . 000 000 000 000 000 000";
document.getElementById("tokenInfoTO").innerHTML = "000";
document.getElementById("tokenInfoMTT").innerHTML = "000 . 000 000 000 000 000 000";
document.getElementById("curveInfoA").innerHTML = "000 000 000 000 000 000";
document.getElementById("curveInfoB").innerHTML = "000 000 000 000 000 000";
document.getElementById("curveInfoC").innerHTML = "000 000 000 000 000 000";
// Reset all info in results
document.getElementById("tokenMaxResult").innerHTML = "00 000 000 . 000 000 000 000 000 000";
document.getElementById("tokenMinResult").innerHTML = "00 000 000 . 000 000 000 000 000 000";
document.getElementById("tokenNumberMaxResult").innerHTML = "00 000 000 . 000 000 000 000 000 000";
document.getElementById("tokenPriceMaxResult").innerHTML = "00 000 000 . 000 000 000 000 000 000";
document.getElementById("tokenNumberMaxResult").innerHTML = "00 000 000 . 000 000 000 000 000 000";
document.getElementById("tokenPriceMinResult").innerHTML = "00 000 000 . 000 000 000 000 000 000";
}
//Generate
function Generate() {
tokenBasicInfo();
tokenAdvancedInfo();
curveParamInfo();
//add in extra math and info needed to create the bonding curve with all inputs on this page
}
</script> -->
<script src="https://cdn.ethers.io/scripts/ethers-v4.min.js" charset="utf-8" type="text/javascript">
</script>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
let vue = new Vue({
el: "#vue-app",
data() {
return {
connected: false,
ethers: null,
signer: null,
account: null,
bondingCurveFactory: null,
bondingCurveFactyoryAddress: "0xC6FBBE7924B3453d71EA68f02c1d2540853cE924",
curve: null,
curveAddress: "0x3d2623C0Cdd2ba942a30FED3C92902091FE0D9c1",
collateralToken: "0x95b58a6bff3d14b7db2f5cb5f0ad413dc2940658",
createdTokenAddress: null,
txPending: false,
txComplete: false,
tokenSettings: {
tokenNameInput: null,
tokenSymbolInput: null,
tokenThresholdInput: null,
},
tokenResults: {
name: "",
synb: "",
maxToken: "000 . 000 000 000 000 000 000",
minToken: "000 . 000 000 000 000 000 000",
maxCollateral: "000 . 000 000 000 000 000 000",
minCollateral: "000 . 000 000 000 000 000 000",
maxTokenStartPrice: "000 . 000 000 000 000 000 000",
minTokenStartPrice: "000 . 000 000 000 000 000 000",
curveA: "000 000 000 000 000 000",
curveB: "000 000 000 000 000 000",
curveC: "000 000 000 000 000 000",
timeout: "000",
},
bondingCurveFactoryABI: [
{
"inputs": [
{
"internalType": "address",
"name": "_uniswapRouter",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "curve",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "market",
"type": "address"
}
],
"name": "factorySetUp",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "string",
"name": "name",
"type": "string"
}
],
"name": "marketCreated",
"type": "event"
},
{
"inputs": [],
"name": "activeCurve",
"outputs": [
{
"internalType": "contract Curve",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "activeMarketTransition",
"outputs": [
{
"internalType": "contract MarketTransition",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "deployedMarkets",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "uniswapRouter",
"outputs": [
{
"internalType": "contract IUniswapV2Router01",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getFactorySetUp",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[3]",
"name": "_curveParameters",
"type": "uint256[3]"
},
{
"internalType": "string",
"name": "_name",
"type": "string"
},
{
"internalType": "string",
"name": "_symbol",
"type": "string"
},
{
"internalType": "address",
"name": "_underlyingCollateral",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenThreshold",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_minimumTokenThreshold",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_thresholdTimeout",
"type": "uint256"
}
],
"name": "createMarket",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_user",
"type": "address"
}
],
"name": "getDeployedMarkets",
"outputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
}
],
curveABI: [
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokens",
"type": "uint256"
}
],
"name": "getBuyPrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokens",
"type": "uint256"
}
],
"name": "getSellAmount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_a",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_b",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_c",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_threshold",
"type": "uint256"
}
],
"name": "getEndPrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_a",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_b",
"type": "uint256"