tx · F24i5Y7oQ5DncfDiNLATKpdVAG8Y7Dxik1aSzP3BY6Fi

3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1:  -0.01400000 Waves

2022.03.21 21:54 [1974082] smart account 3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1 > SELF 0.00000000 Waves

{ "type": 13, "id": "F24i5Y7oQ5DncfDiNLATKpdVAG8Y7Dxik1aSzP3BY6Fi", "fee": 1400000, "feeAssetId": null, "timestamp": 1647888839825, "version": 2, "chainId": 84, "sender": "3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1", "senderPublicKey": "Ehngpik6DXwbcV8tpLbd3qBFjChSdW49YqyxinREgabT", "proofs": [ "5EoBe751fUVmfEqtpSaAKiqqvpimFYxHttQW6GNRjAhon8pd4qhPSUhHqPwUKrWCk5vUegxcKXSirJC9sKP19JtF" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAAHAAAAAAdEYXBwRmVlAAAAAAABfXhAAAAAAA9nZXRjdXJyZW50cm91bmQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADWN1cnJlbnRfcm91bmQAAAAAC3hVU0RBc3NldElEAQAAACAUvqy5I7Pn2Q+5aTq4aUxjl04TnuAMD5q9EZXpvqd6qwAAAAAMRkFJVEhBc3NldElEAQAAACCfF3/PaxN6cW7VNmJnqi278KmHTR47I5PqZMwrgb0oSgAAAAARQ29sbGVjdEZlZUFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAA5mZXRjaHRvdGFsdHhucwQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAApUb3RhbF9UeG5zAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAAAAAACXRvdG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dGF0dXNfT2ZfBQAAAApjdXJyZW50S2V5AgAAAARQQUlECQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgIAAAAPTm9fT2ZfRGVwb3NpdHNfBQAAAApjdXJyZW50S2V5CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAPZmV0Y2h1c2VyYW1vdW50BQAAAAt4VVNEQXNzZXRJRAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAdtZXNzYWdlCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAABU8aDE+WW91IExvc2UhIFJvdW5kOiAJAAGkAAAAAQkAAGUAAAACBQAAAA9nZXRjdXJyZW50cm91bmQAAAAAAAAAAAECAAAAECBTdGFydCBDYXBpdGFsOiAJAAGkAAAAAQUAAAAPZ2V0c3RhcnRjYXBpdGFsAgAAABUsIFJvdW5kIEVuZCBDYXB0aWFsOiAJAAGkAAAAAQUAAAANZ2V0ZW5kY2FwaXRhbAIAAAAKLjwvaDE+PGJyPgUAAAADbmlsCQAAAgAAAAECAAAAH1BsZWFzZSBXYWl0IGZvciBSb3VuZCB0byBTdGFydC4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmu1MF0", "height": 1974082, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: JDhLciiE9mNvwGHNXdwV1cpk7vpmjwQHnZ5t9UsMqxMD Next: 3vf9a7QkUZqM2srGauKuT1nqkQHQqDRuD6rFdcZjNFak Diff:
OldNewDifferences
8484 else if ((getstatus == "Ended"))
8585 then (getmktresults == "Noresults")
8686 else false)
87- then [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID), StringEntry("message", "<h1>Round results were Skipped due to Oracle Crash.Funds are Returned back.</h1><br>")]
87+ then [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID), StringEntry("message", (("<h1>Round: " + toString((getcurrentround - 1))) + "results were Skipped due to Oracle Crash.Funds are Returned back.</h1><br>"))]
8888 else if (if ((getstatus == "Ended"))
8989 then (gap > 0)
9090 else false)
91- then [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID), Reissue(FAITHAssetID, gap, true), StringEntry("message", (((((("<h1>You Win! Round: " + toString(getcurrentround)) + " Start Capital: ") + toString(getstartcapital)) + ", Round End Captial: ") + toString(getendcapital)) + ".</h1><br>"))]
91+ then [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID), Reissue(FAITHAssetID, gap, true), StringEntry("message", (((((("<h1>You Win! Round: " + toString((getcurrentround - 1))) + " Start Capital: ") + toString(getstartcapital)) + ", Round End Captial: ") + toString(getendcapital)) + ".</h1><br>"))]
9292 else if (if ((getstatus == "Ended"))
9393 then (0 > gap)
9494 else false)
95- then [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID), StringEntry("message", (((((("<h1>You Lose! Round: " + toString(getcurrentround)) + " Start Capital: ") + toString(getstartcapital)) + ", Round End Captial: ") + toString(getendcapital)) + ".</h1><br>"))]
95+ then [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID), StringEntry("message", (((((("<h1>You Lose! Round: " + toString((getcurrentround - 1))) + " Start Capital: ") + toString(getstartcapital)) + ", Round End Captial: ") + toString(getendcapital)) + ".</h1><br>"))]
9696 else throw("Please Wait for Round to Start.")
9797 }
9898
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let DappFee = 25000000
55
66 let getcurrentround = getIntegerValue(this, "current_round")
77
88 let xUSDAssetID = base58'2PyngaPGAFjV9AVFXSQANwumY6FSY1cqZDBK8NsEGCup'
99
1010 let FAITHAssetID = base58'Bi2cCJSLQfWraZHSmcVeyXNF1r3yBG3dLYBZwWcuj873'
1111
1212 let CollectFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
1313
1414 let fetchtotaltxns = match getInteger(this, "Total_Txns") {
1515 case a: Int =>
1616 a
1717 case _ =>
1818 0
1919 }
2020
2121 let totaltxns = (fetchtotaltxns + 1)
2222
2323 @Callable(i)
2424 func Deposit () = {
2525 let pmt1 = if ((size(i.payments) == 1))
2626 then i.payments[0]
2727 else throw((("No Payments Attached Please Attach " + toBase58String(xUSDAssetID)) + " Asset Only."))
2828 let maxdepositamt = 1000000000000
2929 let currentKey = toBase58String(i.caller.bytes)
3030 let fetchtotalusertxns = match getInteger(this, ("Total_UserTxns_" + currentKey)) {
3131 case a: Int =>
3232 a
3333 case _ =>
3434 0
3535 }
3636 let usertotaltxns = (fetchtotalusertxns + 1)
3737 let UserNoOfDeposits = match getInteger(this, ("No_Of_Deposits_" + currentKey)) {
3838 case a: Int =>
3939 a
4040 case _ =>
4141 0
4242 }
4343 let SumpupofUserNoOfDeposits = (UserNoOfDeposits + 1)
4444 if ((pmt1.assetId != xUSDAssetID))
4545 then throw("Incorrect asset attached, please attach only xUSD AssetID.")
4646 else if ((499999999 >= pmt1.amount))
4747 then throw("Please attach minimum 5 xUSD to deposit to enter round.")
4848 else if ((pmt1.amount > maxdepositamt))
4949 then throw("Please attach correct amount in between [5-10000] xUSD.")
5050 else if ((size(i.payments) > 1))
5151 then throw("Two assets attached, Kindly Attach only payment1 = xUSD with in [5-10000] xUSD Range.")
5252 else if ((UserNoOfDeposits == 1))
5353 then throw("You Already participated for an Round, Which has not been settled Yet. Wait until round end and re-enter again.")
5454 else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), IntegerEntry(("Current_Round_Of_" + currentKey), getcurrentround), IntegerEntry(("Deposit_Amount_Of_" + currentKey), (pmt1.amount - DappFee)), IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), StringEntry(("Claim_Status_Of_" + currentKey), "PENDING"), ScriptTransfer(CollectFeeAddress, DappFee, xUSDAssetID)]
5555 }
5656
5757
5858
5959 @Callable(i)
6060 func Claim () = {
6161 let currentKey = toBase58String(i.caller.bytes)
6262 let fetchuserround = valueOrErrorMessage(getInteger(this, ("Current_Round_Of_" + currentKey)), "Your Address did not participated in any latest round Yet. Please Click Deposit to WIN.")
6363 let getstartcapital = getIntegerValue(this, (toString(fetchuserround) + "_Start_Capital"))
6464 let getendcapital = getIntegerValue(this, (toString((getcurrentround - 1)) + "_End_Capital"))
6565 let getstatus = getStringValue(this, (toString((getcurrentround - 1)) + "_status"))
6666 let getmktresults = getStringValue(this, (toString((getcurrentround - 1)) + "_mktresults"))
6767 let fetchuseramount = getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey))
6868 let gap = (getstartcapital - getendcapital)
6969 let fetchtotalusertxns = match getInteger(this, ("Total_UserTxns_" + currentKey)) {
7070 case a: Int =>
7171 a
7272 case _ =>
7373 0
7474 }
7575 let usertotaltxns = (fetchtotalusertxns + 1)
7676 if ((0 >= fetchuserround))
7777 then throw("You don't have any dues of Round to Claim.")
7878 else if ((getstatus == "Started"))
7979 then throw((toString(fetchuserround) + " round has just started, results are pending to post. Please Wait until round end."))
8080 else if (if (if ((getstatus == "Skipped"))
8181 then (getmktresults == "Noresults")
8282 else false)
8383 then true
8484 else if ((getstatus == "Ended"))
8585 then (getmktresults == "Noresults")
8686 else false)
87- then [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID), StringEntry("message", "<h1>Round results were Skipped due to Oracle Crash.Funds are Returned back.</h1><br>")]
87+ then [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID), StringEntry("message", (("<h1>Round: " + toString((getcurrentround - 1))) + "results were Skipped due to Oracle Crash.Funds are Returned back.</h1><br>"))]
8888 else if (if ((getstatus == "Ended"))
8989 then (gap > 0)
9090 else false)
91- then [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID), Reissue(FAITHAssetID, gap, true), StringEntry("message", (((((("<h1>You Win! Round: " + toString(getcurrentround)) + " Start Capital: ") + toString(getstartcapital)) + ", Round End Captial: ") + toString(getendcapital)) + ".</h1><br>"))]
91+ then [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID), Reissue(FAITHAssetID, gap, true), StringEntry("message", (((((("<h1>You Win! Round: " + toString((getcurrentround - 1))) + " Start Capital: ") + toString(getstartcapital)) + ", Round End Captial: ") + toString(getendcapital)) + ".</h1><br>"))]
9292 else if (if ((getstatus == "Ended"))
9393 then (0 > gap)
9494 else false)
95- then [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID), StringEntry("message", (((((("<h1>You Lose! Round: " + toString(getcurrentround)) + " Start Capital: ") + toString(getstartcapital)) + ", Round End Captial: ") + toString(getendcapital)) + ".</h1><br>"))]
95+ then [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID), StringEntry("message", (((((("<h1>You Lose! Round: " + toString((getcurrentround - 1))) + " Start Capital: ") + toString(getstartcapital)) + ", Round End Captial: ") + toString(getendcapital)) + ".</h1><br>"))]
9696 else throw("Please Wait for Round to Start.")
9797 }
9898
9999
100100 @Verifier(tx)
101101 func verify () = match tx {
102102 case _ =>
103103 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
104104 }
105105

github/deemru/w8io/026f985 
41.36 ms