tx · fGN9aG2rcSyJ6vuK5wbkfnX2AaZ7WB43NbSfVvcSvgc 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA: -0.02500000 Waves 2023.08.14 17:27 [2710346] smart account 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA > SELF 0.00000000 Waves
{ "type": 13, "id": "fGN9aG2rcSyJ6vuK5wbkfnX2AaZ7WB43NbSfVvcSvgc", "fee": 2500000, "feeAssetId": null, "timestamp": 1692023260605, "version": 2, "chainId": 84, "sender": "3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA", "senderPublicKey": "CiRX9ubobzbD36ZwTyuBFiPnPkmzMQ7GDsF3hMoVbcVR", "proofs": [ "Wax6winmsmRJqmsA5X57jE5DtMaDftPvCNpCjNSoXCcbQ38MyvJy68keMwcFn88MKusjzU6B7fc3FGNekZzhmSb" ], "script": "base64:AAIFAAAAAAAAACMIAhIICgYBAQEBAQQSAwoBARIDCgEBEgMKAQESBAoCCAgSAAAAABEAAAAAI3ByZXNhbGVfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AQAAACDjrdey1Io21qI8AxObYBZMNWPHMCK947HpXHsKae68IwAAAAASY29udHJvbGxlcl9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAACNwcmVzYWxlX3RpbWVzdGFtcF9jb250cm9sbGVyX3B1YmtleQAAAAAOZXhwaXJlZHRzZXJyb3ICAAAAOFN0YXJ0IFRpbWVzdGFtcCBjYW4ndCBiZSBsZXNzIHRoYW4gbGFzdCBibG9jayBUaW1lc3RhbXAuAAAAAAd0c2Vycm9yAgAAADxFbmQgVGltZXN0YW1wIGNhbid0IGJlIGxlc3MgdGhhbiBvciBlcXVhbCB0byBTdGFydCBUaW1lc3RhbXAAAAAACnByaWNlZXJyb3ICAAAAJlRva2VuIFByaWNlIGNhbid0IGJlIGxlc3MgdGhhbiBvciBaZXJvAAAAAAhjYXBlcnJvcgIAAAAzU29mdC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HRpb24EAAAABWFzc2V0CQAEQgAAAAUFAAAACVRva2VuTmFtZQUAAAAQVG9rZW5EZXNjcmlwdGlvbgAAAAAAAAAAAQAAAAAAAAAACAYEAAAAB2Fzc2V0SWQJAAQ4AAAAAQUAAAAFYXNzZXQDCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIFAAAAEmNvbnRyb2xsZXJfYWRkcmVzcwkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAlVGhpcyBBZGRyZXNzIGlzIG5vdCBBdXRob3JpemVkLiBPbmx5IAkABCUAAAABBQAAABJjb250cm9sbGVyX2FkZHJlc3MCAAAAIiBpcyBBdXRob3JpemVkIEFkZHJlc3MgdG8gU2lnbiBpdC4JAARMAAAAAgUAAAAFYXNzZXQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAALQk1MX1Rva2VuSUQJAAJYAAAAAQUAAAAHYXNzZXRJZAkABEwAAAACCQEAAAAEQnVybgAAAAIFAAAAB2Fzc2V0SWQAAAAAAAAAAAEFAAAAA25pbAAAAAFpAQAAAAZEZWxldGUAAAAACQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAECAAAAC0JNTF9Ub2tlbklEBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlecCNTpY=", "height": 2710346, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GmhXspFmSsPEvftYUxYC6c7hAMqXJXS71Qq6uGbSemQm Next: 9bRmPr2Jf4AUW4RWvokUZLd7wmrWx6t8LsGbVMwbHWY2 Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr' | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = addressFromPublicKey(a) | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = "Start Timestamp can't be less than last block Timestamp." | |
9 | 9 | ||
10 | - | let d = " | |
10 | + | let d = "End Timestamp can't be less than or equal to Start Timestamp" | |
11 | 11 | ||
12 | - | let e = " | |
12 | + | let e = "Token Price can't be less than or Zero" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "Soft Cap Amount can't be more than Hard Cap Amount." | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = "<h1>Presale Order Submitted Successfully!</h1><br>" | |
17 | 17 | ||
18 | - | let h = "<h1> | |
18 | + | let h = "<h1>PreSale Parameters Submitted Successfully!</h1><br>" | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "DApp Need WAVES Token as Attach payment[1]." | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "Attached payment[1] is less than token price " | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "Dapp will start Pre-Sale at Timestamp " | |
25 | 25 | ||
26 | - | let l = " | |
26 | + | let l = "Minimum 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address to place order." | |
27 | 27 | ||
28 | - | let m = " | |
28 | + | let m = "Pre-Sale is over for this Round." | |
29 | 29 | ||
30 | - | let n = "Pre-Sale is over for this Round." | |
30 | + | let n = "Pre-Sale is not over for this Round." | |
31 | 31 | ||
32 | - | let o = " | |
32 | + | let o = "Softcap or Hard Cap already Reached or probably PreSale was Set with False to Refund, so no Refund allowed for this Round." | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "<h1>Refund Received Successfully!.</h1><br>" | |
35 | 35 | ||
36 | - | let q = " | |
36 | + | let q = "The BML token could not be found. Please use the Create_BML function to issue a BML token." | |
37 | 37 | ||
38 | 38 | @Callable(r) | |
39 | 39 | func SetPreSaleParameters (s,t,u,v,w,x) = { | |
49 | 49 | else 0 | |
50 | 50 | } | |
51 | 51 | let D = (A + 1) | |
52 | - | if ((r.caller != | |
53 | - | then throw((("This Address is not Authorized. Only " + toString( | |
52 | + | if ((r.caller != b)) | |
53 | + | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
54 | 54 | else if ((lastBlock.timestamp > s)) | |
55 | - | then throw( | |
55 | + | then throw(c) | |
56 | 56 | else if ((size(toString(s)) != 13)) | |
57 | 57 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
58 | 58 | else if ((size(toString(t)) != 13)) | |
59 | 59 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
60 | 60 | else if ((1 > u)) | |
61 | - | then throw( | |
61 | + | then throw(e) | |
62 | 62 | else if ((y >= z)) | |
63 | - | then throw( | |
63 | + | then throw(d) | |
64 | 64 | else if ((v > w)) | |
65 | - | then throw( | |
66 | - | else [IntegerEntry("Current_Funding_Round", D), IntegerEntry((toString(D) + "_Presale_Start_TimeStamp"), y), IntegerEntry((toString(D) + "_Presale_End_TimeStamp"), z), IntegerEntry((toString(D) + "_Token_Price"), u), IntegerEntry((toString(D) + "_Soft_Cap_Amount"), v), IntegerEntry((toString(D) + "_Hard_Cap_Amount"), w), IntegerEntry((toString(D) + "_Initiated_Height"), height), BooleanEntry((toString(D) + "_Allow_Refund"), x), StringEntry("message", | |
65 | + | then throw(f) | |
66 | + | else [IntegerEntry("Current_Funding_Round", D), IntegerEntry((toString(D) + "_Presale_Start_TimeStamp"), y), IntegerEntry((toString(D) + "_Presale_End_TimeStamp"), z), IntegerEntry((toString(D) + "_Token_Price"), u), IntegerEntry((toString(D) + "_Soft_Cap_Amount"), v), IntegerEntry((toString(D) + "_Hard_Cap_Amount"), w), IntegerEntry((toString(D) + "_Initiated_Height"), height), BooleanEntry((toString(D) + "_Allow_Refund"), x), StringEntry("message", h)] | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
80 | 80 | let M = toBase58String(r.caller.bytes) | |
81 | 81 | let N = if ((size(r.payments) == 1)) | |
82 | 82 | then r.payments[0] | |
83 | - | else throw( | |
83 | + | else throw(i) | |
84 | 84 | let O = { | |
85 | 85 | let B = getInteger(this, (toString(E) + "_Funds_Collection")) | |
86 | 86 | if ($isInstanceOf(B, "Int")) | |
124 | 124 | let W = (I - P) | |
125 | 125 | let X = (J - P) | |
126 | 126 | if (isDefined(N.assetId)) | |
127 | - | then throw( | |
127 | + | then throw(i) | |
128 | 128 | else if ((F > N.amount)) | |
129 | - | then throw(((( | |
129 | + | then throw((((j + "[") + toString(F)) + "/10^8.]")) | |
130 | 130 | else if ((G > lastBlock.timestamp)) | |
131 | - | then throw(( | |
131 | + | then throw((k + toString(G))) | |
132 | 132 | else if ((lastBlock.timestamp > H)) | |
133 | - | then throw( | |
133 | + | then throw(m) | |
134 | 134 | else if (if ((W > 0)) | |
135 | 135 | then (X > 0) | |
136 | 136 | else false) | |
137 | - | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), Q), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "No"), StringEntry((toString(E) + "_hardcap_status"), "No"), BooleanEntry((toString(E) + "_Allow_Refund"), K), StringEntry("message", | |
137 | + | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), Q), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "No"), StringEntry((toString(E) + "_hardcap_status"), "No"), BooleanEntry((toString(E) + "_Allow_Refund"), K), StringEntry("message", g)] | |
138 | 138 | else if (if (if ((0 >= W)) | |
139 | 139 | then (X > 0) | |
140 | 140 | else false) | |
141 | 141 | then (R == 1) | |
142 | 142 | else false) | |
143 | - | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "No"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer( | |
143 | + | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "No"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer(b, P, unit), StringEntry("message", g)] | |
144 | 144 | else if (if (if ((0 >= W)) | |
145 | 145 | then (X > 0) | |
146 | 146 | else false) | |
147 | 147 | then (R > 1) | |
148 | 148 | else false) | |
149 | - | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "No"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer( | |
149 | + | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "No"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer(b, N.amount, unit), StringEntry("message", g)] | |
150 | 150 | else if (if (if ((0 >= W)) | |
151 | 151 | then (0 >= X) | |
152 | 152 | else false) | |
153 | 153 | then (R == 1) | |
154 | 154 | else false) | |
155 | - | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "Yes"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer( | |
155 | + | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "Yes"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer(b, P, unit), StringEntry("message", g)] | |
156 | 156 | else if (if (if ((0 >= W)) | |
157 | 157 | then (0 >= X) | |
158 | 158 | else false) | |
159 | 159 | then (R > 1) | |
160 | 160 | else false) | |
161 | - | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "Yes"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer( | |
161 | + | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "Yes"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer(b, N.amount, unit), StringEntry("message", g)] | |
162 | 162 | else throw("Error.") | |
163 | 163 | } | |
164 | 164 | ||
186 | 186 | let ae = ((Y + fraction(ac, 1, ab)) + ad) | |
187 | 187 | let af = (Z - U) | |
188 | 188 | if ((ae > lastBlock.height)) | |
189 | - | then throw(((( | |
189 | + | then throw((((n + " Please Wait Until ~") + toString(ae)) + " Height is reached.")) | |
190 | 190 | else if ((K == false)) | |
191 | - | then throw( | |
191 | + | then throw(o) | |
192 | 192 | else if ((U == 0)) | |
193 | 193 | then throw("Refund has been Already Claimed by this Address.") | |
194 | 194 | else if (if ((W > 0)) | |
195 | 195 | then (X > 0) | |
196 | 196 | else false) | |
197 | - | then [ScriptTransfer(addressFromStringValue(M), U, L), IntegerEntry(((toString(E) + "_") + "Pending_Refund"), af), IntegerEntry(((toString(E) + "_") + M), 0), StringEntry("message", | |
197 | + | then [ScriptTransfer(addressFromStringValue(M), U, L), IntegerEntry(((toString(E) + "_") + "Pending_Refund"), af), IntegerEntry(((toString(E) + "_") + M), 0), StringEntry("message", p)] | |
198 | 198 | else if (if ((0 >= W)) | |
199 | 199 | then (X > 0) | |
200 | 200 | else false) | |
210 | 210 | ||
211 | 211 | @Callable(r) | |
212 | 212 | func Claim_Tokens (E) = { | |
213 | + | let ag = valueOrErrorMessage(fromBase58String(getStringValue(this, "BML_TokenID")), q) | |
213 | 214 | let M = toBase58String(r.caller.bytes) | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
215 | + | let ah = 100000000 | |
216 | + | let ai = valueOrErrorMessage(getString(this, (toString(E) + "_softcap_status")), "SoftCap Status not Found for this Presale Round.") | |
217 | + | let aj = valueOrErrorMessage(getString(this, (toString(E) + "_hardcap_status")), "HardCap Status not Found for this Presale Round.") | |
217 | 218 | let F = valueOrErrorMessage(getInteger(this, (toString(E) + "_Token_Price")), "Token Price not Found for this Presale Round.") | |
218 | 219 | let U = valueOrErrorMessage(getInteger(this, ((toString(E) + "_") + M)), "No Deposit was made by this Address for this Presale Round.") | |
219 | - | let | |
220 | - | let | |
221 | - | let | |
220 | + | let ak = fraction(U, ah, F) | |
221 | + | let al = fraction(U, ah, F) | |
222 | + | let am = { | |
222 | 223 | let B = getInteger(this, (toString(E) + "_Tokens_Claimed")) | |
223 | 224 | if ($isInstanceOf(B, "Int")) | |
224 | 225 | then { | |
227 | 228 | } | |
228 | 229 | else 0 | |
229 | 230 | } | |
230 | - | let | |
231 | - | let | |
232 | - | if (( | |
231 | + | let an = (am + al) | |
232 | + | let ao = (ak - al) | |
233 | + | if ((ai == "No")) | |
233 | 234 | then throw("No Tokens Claim,as SoftCap Amount didn't reach numbers for this Round.") | |
234 | - | else if (if (( | |
235 | + | else if (if ((ai == "Yes")) | |
235 | 236 | then true | |
236 | - | else ( | |
237 | - | then [IntegerEntry((toString(E) + "_Tokens_Claimed"), | |
237 | + | else (aj == "Yes")) | |
238 | + | then [IntegerEntry((toString(E) + "_Tokens_Claimed"), an), IntegerEntry((toString(E) + "_Pending_Tokens_To_Claim"), ao), ScriptTransfer(addressFromStringValue(M), al, ag)] | |
238 | 239 | else throw("Wrong Entry Found.") | |
239 | 240 | } | |
240 | 241 | ||
241 | 242 | ||
242 | 243 | ||
243 | 244 | @Callable(r) | |
244 | - | func Mint_BML ( | |
245 | - | let | |
246 | - | let | |
247 | - | if ((r.caller != | |
248 | - | then throw((("This Address is not Authorized. Only " + toString( | |
249 | - | else [ | |
245 | + | func Mint_BML (ap,aq) = { | |
246 | + | let ar = Issue(ap, aq, 1, 8, true) | |
247 | + | let as = calculateAssetId(ar) | |
248 | + | if ((r.caller != b)) | |
249 | + | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
250 | + | else [ar, StringEntry("BML_TokenID", toBase58String(as)), Burn(as, 1)] | |
250 | 251 | } | |
251 | 252 | ||
252 | 253 | ||
255 | 256 | func Delete () = [DeleteEntry("BML_TokenID")] | |
256 | 257 | ||
257 | 258 | ||
258 | - | @Verifier( | |
259 | - | func | |
259 | + | @Verifier(at) | |
260 | + | func au () = sigVerify(at.bodyBytes, at.proofs[0], at.senderPublicKey) | |
260 | 261 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr' | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = addressFromPublicKey(a) | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = "Start Timestamp can't be less than last block Timestamp." | |
9 | 9 | ||
10 | - | let d = " | |
10 | + | let d = "End Timestamp can't be less than or equal to Start Timestamp" | |
11 | 11 | ||
12 | - | let e = " | |
12 | + | let e = "Token Price can't be less than or Zero" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "Soft Cap Amount can't be more than Hard Cap Amount." | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = "<h1>Presale Order Submitted Successfully!</h1><br>" | |
17 | 17 | ||
18 | - | let h = "<h1> | |
18 | + | let h = "<h1>PreSale Parameters Submitted Successfully!</h1><br>" | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "DApp Need WAVES Token as Attach payment[1]." | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "Attached payment[1] is less than token price " | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "Dapp will start Pre-Sale at Timestamp " | |
25 | 25 | ||
26 | - | let l = " | |
26 | + | let l = "Minimum 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address to place order." | |
27 | 27 | ||
28 | - | let m = " | |
28 | + | let m = "Pre-Sale is over for this Round." | |
29 | 29 | ||
30 | - | let n = "Pre-Sale is over for this Round." | |
30 | + | let n = "Pre-Sale is not over for this Round." | |
31 | 31 | ||
32 | - | let o = " | |
32 | + | let o = "Softcap or Hard Cap already Reached or probably PreSale was Set with False to Refund, so no Refund allowed for this Round." | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "<h1>Refund Received Successfully!.</h1><br>" | |
35 | 35 | ||
36 | - | let q = " | |
36 | + | let q = "The BML token could not be found. Please use the Create_BML function to issue a BML token." | |
37 | 37 | ||
38 | 38 | @Callable(r) | |
39 | 39 | func SetPreSaleParameters (s,t,u,v,w,x) = { | |
40 | 40 | let y = s | |
41 | 41 | let z = t | |
42 | 42 | let A = { | |
43 | 43 | let B = getInteger(this, "Current_Funding_Round") | |
44 | 44 | if ($isInstanceOf(B, "Int")) | |
45 | 45 | then { | |
46 | 46 | let C = B | |
47 | 47 | C | |
48 | 48 | } | |
49 | 49 | else 0 | |
50 | 50 | } | |
51 | 51 | let D = (A + 1) | |
52 | - | if ((r.caller != | |
53 | - | then throw((("This Address is not Authorized. Only " + toString( | |
52 | + | if ((r.caller != b)) | |
53 | + | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
54 | 54 | else if ((lastBlock.timestamp > s)) | |
55 | - | then throw( | |
55 | + | then throw(c) | |
56 | 56 | else if ((size(toString(s)) != 13)) | |
57 | 57 | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
58 | 58 | else if ((size(toString(t)) != 13)) | |
59 | 59 | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
60 | 60 | else if ((1 > u)) | |
61 | - | then throw( | |
61 | + | then throw(e) | |
62 | 62 | else if ((y >= z)) | |
63 | - | then throw( | |
63 | + | then throw(d) | |
64 | 64 | else if ((v > w)) | |
65 | - | then throw( | |
66 | - | else [IntegerEntry("Current_Funding_Round", D), IntegerEntry((toString(D) + "_Presale_Start_TimeStamp"), y), IntegerEntry((toString(D) + "_Presale_End_TimeStamp"), z), IntegerEntry((toString(D) + "_Token_Price"), u), IntegerEntry((toString(D) + "_Soft_Cap_Amount"), v), IntegerEntry((toString(D) + "_Hard_Cap_Amount"), w), IntegerEntry((toString(D) + "_Initiated_Height"), height), BooleanEntry((toString(D) + "_Allow_Refund"), x), StringEntry("message", | |
65 | + | then throw(f) | |
66 | + | else [IntegerEntry("Current_Funding_Round", D), IntegerEntry((toString(D) + "_Presale_Start_TimeStamp"), y), IntegerEntry((toString(D) + "_Presale_End_TimeStamp"), z), IntegerEntry((toString(D) + "_Token_Price"), u), IntegerEntry((toString(D) + "_Soft_Cap_Amount"), v), IntegerEntry((toString(D) + "_Hard_Cap_Amount"), w), IntegerEntry((toString(D) + "_Initiated_Height"), height), BooleanEntry((toString(D) + "_Allow_Refund"), x), StringEntry("message", h)] | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | ||
71 | 71 | @Callable(r) | |
72 | 72 | func PlacePresaleOrder (E) = { | |
73 | 73 | let F = valueOrErrorMessage(getInteger(this, (toString(E) + "_Token_Price")), "Token Price not Found for this Presale Round.") | |
74 | 74 | let G = valueOrErrorMessage(getInteger(this, (toString(E) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.") | |
75 | 75 | let H = valueOrErrorMessage(getInteger(this, (toString(E) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.") | |
76 | 76 | let I = valueOrErrorMessage(getInteger(this, (toString(E) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.") | |
77 | 77 | let J = valueOrErrorMessage(getInteger(this, (toString(E) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.") | |
78 | 78 | let K = valueOrErrorMessage(getBoolean(this, (toString(E) + "_Allow_Refund")), "Refund is not set for this Presale Round.") | |
79 | 79 | let L = unit | |
80 | 80 | let M = toBase58String(r.caller.bytes) | |
81 | 81 | let N = if ((size(r.payments) == 1)) | |
82 | 82 | then r.payments[0] | |
83 | - | else throw( | |
83 | + | else throw(i) | |
84 | 84 | let O = { | |
85 | 85 | let B = getInteger(this, (toString(E) + "_Funds_Collection")) | |
86 | 86 | if ($isInstanceOf(B, "Int")) | |
87 | 87 | then { | |
88 | 88 | let C = B | |
89 | 89 | C | |
90 | 90 | } | |
91 | 91 | else 0 | |
92 | 92 | } | |
93 | 93 | let P = (O + N.amount) | |
94 | 94 | let Q = { | |
95 | 95 | let B = getInteger(this, (toString(E) + "_total_auto_withdraw_txns")) | |
96 | 96 | if ($isInstanceOf(B, "Int")) | |
97 | 97 | then { | |
98 | 98 | let C = B | |
99 | 99 | C | |
100 | 100 | } | |
101 | 101 | else 0 | |
102 | 102 | } | |
103 | 103 | let R = (Q + 1) | |
104 | 104 | let S = { | |
105 | 105 | let B = getInteger(this, (toString(E) + "_total_txns")) | |
106 | 106 | if ($isInstanceOf(B, "Int")) | |
107 | 107 | then { | |
108 | 108 | let C = B | |
109 | 109 | C | |
110 | 110 | } | |
111 | 111 | else 0 | |
112 | 112 | } | |
113 | 113 | let T = (S + 1) | |
114 | 114 | let U = { | |
115 | 115 | let B = getInteger(this, ((toString(E) + "_") + M)) | |
116 | 116 | if ($isInstanceOf(B, "Int")) | |
117 | 117 | then { | |
118 | 118 | let C = B | |
119 | 119 | C | |
120 | 120 | } | |
121 | 121 | else 0 | |
122 | 122 | } | |
123 | 123 | let V = (U + N.amount) | |
124 | 124 | let W = (I - P) | |
125 | 125 | let X = (J - P) | |
126 | 126 | if (isDefined(N.assetId)) | |
127 | - | then throw( | |
127 | + | then throw(i) | |
128 | 128 | else if ((F > N.amount)) | |
129 | - | then throw(((( | |
129 | + | then throw((((j + "[") + toString(F)) + "/10^8.]")) | |
130 | 130 | else if ((G > lastBlock.timestamp)) | |
131 | - | then throw(( | |
131 | + | then throw((k + toString(G))) | |
132 | 132 | else if ((lastBlock.timestamp > H)) | |
133 | - | then throw( | |
133 | + | then throw(m) | |
134 | 134 | else if (if ((W > 0)) | |
135 | 135 | then (X > 0) | |
136 | 136 | else false) | |
137 | - | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), Q), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "No"), StringEntry((toString(E) + "_hardcap_status"), "No"), BooleanEntry((toString(E) + "_Allow_Refund"), K), StringEntry("message", | |
137 | + | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), Q), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "No"), StringEntry((toString(E) + "_hardcap_status"), "No"), BooleanEntry((toString(E) + "_Allow_Refund"), K), StringEntry("message", g)] | |
138 | 138 | else if (if (if ((0 >= W)) | |
139 | 139 | then (X > 0) | |
140 | 140 | else false) | |
141 | 141 | then (R == 1) | |
142 | 142 | else false) | |
143 | - | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "No"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer( | |
143 | + | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "No"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer(b, P, unit), StringEntry("message", g)] | |
144 | 144 | else if (if (if ((0 >= W)) | |
145 | 145 | then (X > 0) | |
146 | 146 | else false) | |
147 | 147 | then (R > 1) | |
148 | 148 | else false) | |
149 | - | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "No"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer( | |
149 | + | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "No"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer(b, N.amount, unit), StringEntry("message", g)] | |
150 | 150 | else if (if (if ((0 >= W)) | |
151 | 151 | then (0 >= X) | |
152 | 152 | else false) | |
153 | 153 | then (R == 1) | |
154 | 154 | else false) | |
155 | - | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "Yes"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer( | |
155 | + | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "Yes"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer(b, P, unit), StringEntry("message", g)] | |
156 | 156 | else if (if (if ((0 >= W)) | |
157 | 157 | then (0 >= X) | |
158 | 158 | else false) | |
159 | 159 | then (R > 1) | |
160 | 160 | else false) | |
161 | - | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "Yes"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer( | |
161 | + | then [IntegerEntry((toString(E) + "_Funds_Collection"), P), IntegerEntry(((toString(E) + "_") + M), V), IntegerEntry((toString(E) + "_total_auto_withdraw_txns"), R), IntegerEntry((toString(E) + "_total_txns"), T), IntegerEntry((toString(E) + "_pending_softcap_status"), W), IntegerEntry((toString(E) + "_pending_hardcap_status"), X), StringEntry((toString(E) + "_softcap_status"), "Yes"), StringEntry((toString(E) + "_hardcap_status"), "Yes"), BooleanEntry((toString(E) + "_Allow_Refund"), false), ScriptTransfer(b, N.amount, unit), StringEntry("message", g)] | |
162 | 162 | else throw("Error.") | |
163 | 163 | } | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | ||
167 | 167 | @Callable(r) | |
168 | 168 | func Refund (E) = { | |
169 | 169 | let L = unit | |
170 | 170 | let M = toBase58String(r.caller.bytes) | |
171 | 171 | let Y = valueOrErrorMessage(getInteger(this, (toString(E) + "_Initiated_Height")), "Initiated Height not Found for this Presale Round.") | |
172 | 172 | let F = valueOrErrorMessage(getInteger(this, (toString(E) + "_Token_Price")), "Token Price not Found for this Presale Round.") | |
173 | 173 | let G = valueOrErrorMessage(getInteger(this, (toString(E) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.") | |
174 | 174 | let H = valueOrErrorMessage(getInteger(this, (toString(E) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.") | |
175 | 175 | let I = valueOrErrorMessage(getInteger(this, (toString(E) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.") | |
176 | 176 | let J = valueOrErrorMessage(getInteger(this, (toString(E) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.") | |
177 | 177 | let Z = valueOrErrorMessage(getInteger(this, (toString(E) + "_Funds_Collection")), "Total Funds Collection not Found for this Presale Round.") | |
178 | 178 | let U = valueOrErrorMessage(getInteger(this, ((toString(E) + "_") + M)), "No Deposit was made by this Address for this Presale Round.") | |
179 | 179 | let K = valueOrErrorMessage(getBoolean(this, (toString(E) + "_Allow_Refund")), "Allow_Refund has no Boolen Entry for this Presale Round.") | |
180 | 180 | let W = (I - Z) | |
181 | 181 | let X = (J - Z) | |
182 | 182 | let aa = 1000 | |
183 | 183 | let ab = (60 * aa) | |
184 | 184 | let ac = (H - G) | |
185 | 185 | let ad = 10 | |
186 | 186 | let ae = ((Y + fraction(ac, 1, ab)) + ad) | |
187 | 187 | let af = (Z - U) | |
188 | 188 | if ((ae > lastBlock.height)) | |
189 | - | then throw(((( | |
189 | + | then throw((((n + " Please Wait Until ~") + toString(ae)) + " Height is reached.")) | |
190 | 190 | else if ((K == false)) | |
191 | - | then throw( | |
191 | + | then throw(o) | |
192 | 192 | else if ((U == 0)) | |
193 | 193 | then throw("Refund has been Already Claimed by this Address.") | |
194 | 194 | else if (if ((W > 0)) | |
195 | 195 | then (X > 0) | |
196 | 196 | else false) | |
197 | - | then [ScriptTransfer(addressFromStringValue(M), U, L), IntegerEntry(((toString(E) + "_") + "Pending_Refund"), af), IntegerEntry(((toString(E) + "_") + M), 0), StringEntry("message", | |
197 | + | then [ScriptTransfer(addressFromStringValue(M), U, L), IntegerEntry(((toString(E) + "_") + "Pending_Refund"), af), IntegerEntry(((toString(E) + "_") + M), 0), StringEntry("message", p)] | |
198 | 198 | else if (if ((0 >= W)) | |
199 | 199 | then (X > 0) | |
200 | 200 | else false) | |
201 | 201 | then throw("SoftCap Already Reached for this Round. Please Click on 'Claim Tokens' Function to Receive Your Tokens.") | |
202 | 202 | else if (if ((0 >= W)) | |
203 | 203 | then (0 >= X) | |
204 | 204 | else false) | |
205 | 205 | then throw("SoftCap and Hard Already Reached for this Round. Please Click on Claim to Receive Your Tokens.") | |
206 | 206 | else throw("Wrong Entry Found.") | |
207 | 207 | } | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | ||
211 | 211 | @Callable(r) | |
212 | 212 | func Claim_Tokens (E) = { | |
213 | + | let ag = valueOrErrorMessage(fromBase58String(getStringValue(this, "BML_TokenID")), q) | |
213 | 214 | let M = toBase58String(r.caller.bytes) | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
215 | + | let ah = 100000000 | |
216 | + | let ai = valueOrErrorMessage(getString(this, (toString(E) + "_softcap_status")), "SoftCap Status not Found for this Presale Round.") | |
217 | + | let aj = valueOrErrorMessage(getString(this, (toString(E) + "_hardcap_status")), "HardCap Status not Found for this Presale Round.") | |
217 | 218 | let F = valueOrErrorMessage(getInteger(this, (toString(E) + "_Token_Price")), "Token Price not Found for this Presale Round.") | |
218 | 219 | let U = valueOrErrorMessage(getInteger(this, ((toString(E) + "_") + M)), "No Deposit was made by this Address for this Presale Round.") | |
219 | - | let | |
220 | - | let | |
221 | - | let | |
220 | + | let ak = fraction(U, ah, F) | |
221 | + | let al = fraction(U, ah, F) | |
222 | + | let am = { | |
222 | 223 | let B = getInteger(this, (toString(E) + "_Tokens_Claimed")) | |
223 | 224 | if ($isInstanceOf(B, "Int")) | |
224 | 225 | then { | |
225 | 226 | let C = B | |
226 | 227 | C | |
227 | 228 | } | |
228 | 229 | else 0 | |
229 | 230 | } | |
230 | - | let | |
231 | - | let | |
232 | - | if (( | |
231 | + | let an = (am + al) | |
232 | + | let ao = (ak - al) | |
233 | + | if ((ai == "No")) | |
233 | 234 | then throw("No Tokens Claim,as SoftCap Amount didn't reach numbers for this Round.") | |
234 | - | else if (if (( | |
235 | + | else if (if ((ai == "Yes")) | |
235 | 236 | then true | |
236 | - | else ( | |
237 | - | then [IntegerEntry((toString(E) + "_Tokens_Claimed"), | |
237 | + | else (aj == "Yes")) | |
238 | + | then [IntegerEntry((toString(E) + "_Tokens_Claimed"), an), IntegerEntry((toString(E) + "_Pending_Tokens_To_Claim"), ao), ScriptTransfer(addressFromStringValue(M), al, ag)] | |
238 | 239 | else throw("Wrong Entry Found.") | |
239 | 240 | } | |
240 | 241 | ||
241 | 242 | ||
242 | 243 | ||
243 | 244 | @Callable(r) | |
244 | - | func Mint_BML ( | |
245 | - | let | |
246 | - | let | |
247 | - | if ((r.caller != | |
248 | - | then throw((("This Address is not Authorized. Only " + toString( | |
249 | - | else [ | |
245 | + | func Mint_BML (ap,aq) = { | |
246 | + | let ar = Issue(ap, aq, 1, 8, true) | |
247 | + | let as = calculateAssetId(ar) | |
248 | + | if ((r.caller != b)) | |
249 | + | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
250 | + | else [ar, StringEntry("BML_TokenID", toBase58String(as)), Burn(as, 1)] | |
250 | 251 | } | |
251 | 252 | ||
252 | 253 | ||
253 | 254 | ||
254 | 255 | @Callable(r) | |
255 | 256 | func Delete () = [DeleteEntry("BML_TokenID")] | |
256 | 257 | ||
257 | 258 | ||
258 | - | @Verifier( | |
259 | - | func | |
259 | + | @Verifier(at) | |
260 | + | func au () = sigVerify(at.bodyBytes, at.proofs[0], at.senderPublicKey) | |
260 | 261 |
github/deemru/w8io/169f3d6 102.17 ms ◑