tx · E2UEhaJioiQDDWxWBLa7C8jVpX3aH1ojEuLmoK5MKrAc

3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA:  -0.01500000 Waves

2023.08.02 11:57 [2692748] smart account 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA > SELF 0.00000000 Waves

{ "type": 13, "id": "E2UEhaJioiQDDWxWBLa7C8jVpX3aH1ojEuLmoK5MKrAc", "fee": 1500000, "feeAssetId": null, "timestamp": 1690966628671, "version": 2, "chainId": 84, "sender": "3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA", "senderPublicKey": "CiRX9ubobzbD36ZwTyuBFiPnPkmzMQ7GDsF3hMoVbcVR", "proofs": [ "41TpqdLYsoVhDiHgFXP4AHs4Xun5qbwT5qN5drXdD1gbb72MbiQvNnifdir4Weu9E5UY5hGUxLazRaJWAaGhvBfW" ], "script": "base64:AAIEAAAAAAAAABAIAhIHCgUBAQEBARIDCgEBAAAADAAAAAAjcHJlc2FsZV90aW1lc3RhbXBfY29udHJvbGxlcl9wdWJrZXkBAAAAIOOt17LUijbWojwDE5tgFkw1Y8cwIr3jselcewpp7rwjAAAAABJjb250cm9sbGVyX2FkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAI3ByZXNhbGVfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AAAAAAd0c2Vycm9yAgAAADxFbmQgVGltZXN0YW1wIGNhbid0IGJlIGxlc3MgdGhhbiBvciBlcXVhbCB0byBTdGFydCBUaW1lc3RhbXAAAAAACnByaWNlZXJyb3ICAAAAJlRva2VuIFByaWNlIGNhbid0IGJlIGxlc3MgdGhhbiBvciBaZXJvAAAAAAhjYXBlcnJvcgIAAAAzU29mdCBDYXAgQW1vdW50IGNhbid0IGJlIG1vcmUgdGhhbiBIYXJkIENhcCBBbW91bnQuAAAAAAhvcmRlcm1zZwIAAAAqPGgxPk9yZGVyIFN1Ym1pdHRlZCBTdWNjZXNzZnVs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F0dXMFAAAAFnNvZnRjYXBfcmVhY2hfc3RhdHVzXzIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAUaGFyZGNhcF9yZWFjaF9zdGF0dXMFAAAAFmhhcmRjYXBfcmVhY2hfc3RhdHVzXzIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAHbWVzc2FnZQUAAAAIb3JkZXJtc2cFAAAAA25pbAkAAAIAAAABAgAAAAZFcnJvci4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlefCsbD8=", "height": 2692748, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ezg5DzcMot3xgmkdhxxYJxb5RMM2NPaovSazy29dz8vf Next: BRryWRwhwQrWMPqeFbAZskWQi67nvjzwepyczvnrCM51 Diff:
OldNewDifferences
9696 then throw((((orderpymterror + "[") + toString(read_round_token_price)) + "/10^8.]"))
9797 else if ((read_round_start_ts > lastBlock.timestamp))
9898 then throw((launch_error + toString(read_round_start_ts)))
99- else if ((read_Soft_Cap_Amount > total_funds_collection))
99+ else if ((total_funds_collection > read_Soft_Cap_Amount))
100100 then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), StringEntry("softcap_reach_status", softcap_reach_status_1), StringEntry("hardcap_reach_status", hardcap_reach_status_1), StringEntry("message", ordermsg)]
101101 else if ((total_funds_collection >= read_Soft_Cap_Amount))
102102 then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), StringEntry("softcap_reach_status", softcap_reach_status_2), StringEntry("message", ordermsg)]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let presale_timestamp_controller_pubkey = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr'
55
66 let controller_address = addressFromPublicKey(presale_timestamp_controller_pubkey)
77
88 let tserror = "End Timestamp can't be less than or equal to Start Timestamp"
99
1010 let priceerror = "Token Price can't be less than or Zero"
1111
1212 let caperror = "Soft Cap Amount can't be more than Hard Cap Amount."
1313
1414 let ordermsg = "<h1>Order Submitted Successfully!</h1><br>"
1515
1616 let presale_init_msg = "<h1>PreSale Parameters Submitted Successfully!</h1><br>"
1717
1818 let pymterror = "DApp Need WAVES Token as Attach payment[1]."
1919
2020 let orderpymterror = "Attached payment[1] is less than token price "
2121
2222 let launch_error = "Dapp will start Pre-Sale at Timestamp "
2323
2424 let minbalerror = "Minimum 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address to place order."
2525
2626 let voteErr = "Pre-Sale is over for this Round."
2727
2828 @Callable(i)
2929 func SetPreSaleParameters (Presale_Start_TimeStamp,Presale_End_TimeStamp,Token_Price,Soft_Cap_Amount,Hard_Cap_Amount) = {
3030 let StartTS = Presale_Start_TimeStamp
3131 let EndTS = Presale_End_TimeStamp
3232 let read_funding_round = match getInteger(this, "Current_Funding_Round") {
3333 case a: Int =>
3434 a
3535 case _ =>
3636 0
3737 }
3838 let current_round = (read_funding_round + 1)
3939 if ((i.caller != controller_address))
4040 then throw((("This Address is not Authorized. Only " + toString(controller_address)) + " is Authorized Address to Sign it."))
4141 else if ((size(toString(Presale_Start_TimeStamp)) != 13))
4242 then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
4343 else if ((size(toString(Presale_End_TimeStamp)) != 13))
4444 then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
4545 else if ((1 > Token_Price))
4646 then throw(priceerror)
4747 else if ((StartTS >= EndTS))
4848 then throw(tserror)
4949 else if ((Soft_Cap_Amount > Hard_Cap_Amount))
5050 then throw(caperror)
5151 else [IntegerEntry("Current_Funding_Round", current_round), IntegerEntry((toString(current_round) + "_Presale_Start_TimeStamp"), StartTS), IntegerEntry((toString(current_round) + "_Presale_End_TimeStamp"), EndTS), IntegerEntry((toString(current_round) + "_Token_Price"), Token_Price), IntegerEntry((toString(current_round) + "_Soft_Cap_Amount"), Soft_Cap_Amount), IntegerEntry((toString(current_round) + "_Hard_Cap_Amount"), Hard_Cap_Amount), IntegerEntry((toString(current_round) + "_Initiated_Height"), height), StringEntry("message", presale_init_msg)]
5252 }
5353
5454
5555
5656 @Callable(i)
5757 func PlacePresaleOrder (Enter_Presale_Round) = {
5858 let read_round_token_price = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Token_Price")), "Token Price not Found for this Presale Round.")
5959 let read_round_start_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_Start_TimeStamp")), "Start Timestamp not Found for this Presale Round.")
6060 let read_round_end_ts = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Presale_End_TimeStamp")), "End Timestamp not Found for this Presale Round.")
6161 let read_Soft_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Soft_Cap_Amount")), "Soft Cap Amount not Found for this Presale Round.")
6262 let read_Hard_Cap_Amount = valueOrErrorMessage(getInteger(this, (toString(Enter_Presale_Round) + "_Hard_Cap_Amount")), "Hard Cap Amount not Found for this Presale Round.")
6363 let softcap_reach_status_1 = "No"
6464 let softcap_reach_status_2 = "Yes"
6565 let hardcap_reach_status_1 = "No"
6666 let hardcap_reach_status_2 = "Yes"
6767 let WAVES = unit
6868 let currentKey = toBase58String(i.caller.bytes)
6969 let pmt = if ((size(i.payments) == 1))
7070 then i.payments[0]
7171 else throw(pymterror)
7272 let read_funds_collection = match getInteger(this, (toString(Enter_Presale_Round) + "_Funds_Collection")) {
7373 case a: Int =>
7474 a
7575 case _ =>
7676 0
7777 }
7878 let total_funds_collection = (read_funds_collection + pmt.amount)
7979 let read_total_txns = match getInteger(this, (toString(Enter_Presale_Round) + "_total_txns")) {
8080 case a: Int =>
8181 a
8282 case _ =>
8383 0
8484 }
8585 let total_txns = (read_total_txns + 1)
8686 let read_user_total_funds_deposited = match getInteger(this, ((toString(Enter_Presale_Round) + "_") + currentKey)) {
8787 case a: Int =>
8888 a
8989 case _ =>
9090 0
9191 }
9292 let user_total_funds_deposited = (read_user_total_funds_deposited + pmt.amount)
9393 if (isDefined(pmt.assetId))
9494 then throw(pymterror)
9595 else if ((read_round_token_price > pmt.amount))
9696 then throw((((orderpymterror + "[") + toString(read_round_token_price)) + "/10^8.]"))
9797 else if ((read_round_start_ts > lastBlock.timestamp))
9898 then throw((launch_error + toString(read_round_start_ts)))
99- else if ((read_Soft_Cap_Amount > total_funds_collection))
99+ else if ((total_funds_collection > read_Soft_Cap_Amount))
100100 then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), StringEntry("softcap_reach_status", softcap_reach_status_1), StringEntry("hardcap_reach_status", hardcap_reach_status_1), StringEntry("message", ordermsg)]
101101 else if ((total_funds_collection >= read_Soft_Cap_Amount))
102102 then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), StringEntry("softcap_reach_status", softcap_reach_status_2), StringEntry("message", ordermsg)]
103103 else if ((total_funds_collection >= read_Hard_Cap_Amount))
104104 then [IntegerEntry((toString(Enter_Presale_Round) + "_Funds_Collection"), total_funds_collection), IntegerEntry(((toString(Enter_Presale_Round) + "_") + currentKey), user_total_funds_deposited), IntegerEntry((toString(Enter_Presale_Round) + "_total_txns"), total_txns), StringEntry("softcap_reach_status", softcap_reach_status_2), StringEntry("hardcap_reach_status", hardcap_reach_status_2), StringEntry("message", ordermsg)]
105105 else throw("Error.")
106106 }
107107
108108
109109 @Verifier(tx)
110110 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
111111

github/deemru/w8io/026f985 
34.64 ms