tx · 9WfuFHqHYS7zb5ziZvE8vDHCTc3JdkxB5MKGfLPs2aWT

3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA:  -0.01200000 Waves

2023.08.02 08:30 [2692532] smart account 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA > SELF 0.00000000 Waves

{ "type": 13, "id": "9WfuFHqHYS7zb5ziZvE8vDHCTc3JdkxB5MKGfLPs2aWT", "fee": 1200000, "feeAssetId": null, "timestamp": 1690954205613, "version": 2, "chainId": 84, "sender": "3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA", "senderPublicKey": "CiRX9ubobzbD36ZwTyuBFiPnPkmzMQ7GDsF3hMoVbcVR", "proofs": [ "2ZySz4vKGuyCg29qPMSCF4xM8d8FAv6r1ED6dWJQnEdGRvA8aoJcvGs4mHxQoiRsWkiH3AWYtiH5Yn97P8QGcA1u" ], "script": "base64:AAIEAAAAAAAAAAsIAhIHCgUBAQEBAQAAAAsAAAAAI3ByZXNhbGVfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AQAAACDjrdey1Io21qI8AxObYBZMNWPHMCK947HpXHsKae68IwAAAAASY29udHJvbGxlcl9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAACNwcmVzYWxlX3RpbWVzdGFtcF9jb250cm9sbGVyX3B1YmtleQAAAAAMbGF1bmNoX2Vycm9yAgAAACZEYXBwIHdpbGwgc3RhcnQgUHJlLVNhbGUgYXQgVGltZXN0YW1wIAAAAAADbXNnAgAAADQ8aDE+WW91IFRyYW5zYWN0aW9uIFN1Ym1pdHRlZCBTdWNjZXNzZnVsbHkhPC9oMT48YnI+AAAAAAlweW10ZXJyb3ICAAAAL0RBcHAgTmVlZCAwLjEgV0FWRVMgVG9rZW4gYXMgQXR0YWNoIHBheW1lbnRbMV0uAAAAAAd0c2Vycm9yAgAAADxFbmQgVGltZXN0YW1wIGNhbid0IGJlIGxlc3MgdGhhbiBvciBlcX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X1N0YXJ0X1RpbWVTdGFtcAUAAAAHU3RhcnRUUwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABpAAAAAEFAAAADWN1cnJlbnRfcm91bmQCAAAAFl9QcmVzYWxlX0VuZF9UaW1lU3RhbXAFAAAABUVuZFRTCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAGkAAAAAQUAAAANY3VycmVudF9yb3VuZAIAAAAMX1Rva2VuX1ByaWNlBQAAAAtUb2tlbl9QcmljZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABpAAAAAEFAAAADWN1cnJlbnRfcm91bmQCAAAAEF9Tb2Z0X0NhcF9BbW91bnQFAAAAD1NvZnRfQ2FwX0Ftb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABpAAAAAEFAAAADWN1cnJlbnRfcm91bmQCAAAAD0hhcmRfQ2FwX0Ftb3VudAUAAAAPSGFyZF9DYXBfQW1vdW50BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleRXyW/M=", "height": 2692532, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CV8SWoWRN5i8MhdP1aXTGJHbbUmVu7DaHdxECRHPwtG4 Next: 8qAC1Edo5iP98r2gPSEVzV8ZLZC1Up4tceWcsbgLnsPy Diff:
OldNewDifferences
1414 let tserror = "End Timestamp can't be less than or equal to Start Timestamp"
1515
1616 let caperror = "Soft Cap can't be more than Hard Cap."
17+
18+let priceerror = "Token Price can't be less than 0.00000001 WAVES"
1719
1820 let minbalerror = "Min. 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address."
1921
3840 then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
3941 else if ((size(toString(Presale_End_TimeStamp)) != 13))
4042 then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
41- else if ((StartTS >= EndTS))
42- then throw(tserror)
43- else if ((Soft_Cap_Amount > Hard_Cap_Amount))
44- then throw(caperror)
45- else [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)]
43+ else if ((1 > Token_Price))
44+ then throw(priceerror)
45+ else if ((StartTS >= EndTS))
46+ then throw(tserror)
47+ else if ((Soft_Cap_Amount > Hard_Cap_Amount))
48+ then throw(caperror)
49+ else [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)]
4650 }
4751
4852
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 launch_error = "Dapp will start Pre-Sale at Timestamp "
99
1010 let msg = "<h1>You Transaction Submitted Successfully!</h1><br>"
1111
1212 let pymterror = "DApp Need 0.1 WAVES Token as Attach payment[1]."
1313
1414 let tserror = "End Timestamp can't be less than or equal to Start Timestamp"
1515
1616 let caperror = "Soft Cap can't be more than Hard Cap."
17+
18+let priceerror = "Token Price can't be less than 0.00000001 WAVES"
1719
1820 let minbalerror = "Min. 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address."
1921
2022 let asseterr = "Incorrect asset attach, please attach WAVES Only."
2123
2224 let voteErr = "Pre-Sale Round is over for this Dapp."
2325
2426 @Callable(i)
2527 func SetPreSaleParameters (Presale_Start_TimeStamp,Presale_End_TimeStamp,Token_Price,Soft_Cap_Amount,Hard_Cap_Amount) = {
2628 let StartTS = Presale_Start_TimeStamp
2729 let EndTS = Presale_End_TimeStamp
2830 let read_funding_round = match getInteger(this, "Current_Funding_Round") {
2931 case a: Int =>
3032 a
3133 case _ =>
3234 0
3335 }
3436 let current_round = (read_funding_round + 1)
3537 if ((i.caller != controller_address))
3638 then throw((("This Address is not Authorized. Only " + toString(controller_address)) + " is Authorized Address to Sign it."))
3739 else if ((size(toString(Presale_Start_TimeStamp)) != 13))
3840 then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
3941 else if ((size(toString(Presale_End_TimeStamp)) != 13))
4042 then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.")
41- else if ((StartTS >= EndTS))
42- then throw(tserror)
43- else if ((Soft_Cap_Amount > Hard_Cap_Amount))
44- then throw(caperror)
45- else [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)]
43+ else if ((1 > Token_Price))
44+ then throw(priceerror)
45+ else if ((StartTS >= EndTS))
46+ then throw(tserror)
47+ else if ((Soft_Cap_Amount > Hard_Cap_Amount))
48+ then throw(caperror)
49+ else [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)]
4650 }
4751
4852
4953 @Verifier(tx)
5054 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5155

github/deemru/w8io/169f3d6 
138.69 ms