tx · GJsxN57YA1PhiLYz7ST5geMHpTi7r2QJDgdpX5SYnroz

3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1:  -0.01400000 Waves

2022.03.18 15:09 [1969387] smart account 3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1 > SELF 0.00000000 Waves

{ "type": 13, "id": "GJsxN57YA1PhiLYz7ST5geMHpTi7r2QJDgdpX5SYnroz", "fee": 1400000, "feeAssetId": null, "timestamp": 1647605364730, "version": 2, "chainId": 84, "sender": "3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1", "senderPublicKey": "Ehngpik6DXwbcV8tpLbd3qBFjChSdW49YqyxinREgabT", "proofs": [ "4x5SwRxNLMRKzpPxVk9Zk7y4oYGXDqxsb3ZrSGd6SK6rZdbwPiZbZu5MmSyVfDUoYHfCVwdgVS1dBKFmurNN1oBY" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAAHAAAAAAdEYXBwRmVlAAAAAAABfXhAAAAAAA9nZXRjdXJyZW50cm91bmQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADWN1cnJlbnRfcm91bmQAAAAAC3hVU0RBc3NldElEAQAAACAUvqy5I7Pn2Q+5aTq4aUxjl04TnuAMD5q9EZXpvqd6qwAAAAAMRkFJVEhBc3NldElEAQAAACAtb1sBuZ3lSm8ahGink+4TF5YYAu/xRHYwe1h195OooAAAAAARQ29sbGVjdEZlZUFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAA5mZXRjaHRvdGFsdHhucwQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAApUb3RhbF9UeG5zAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAAAAAACXRvdG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AAAADEludGVnZXJFbnRyeQAAAAICAAAAClRvdGFsX1R4bnMFAAAACXRvdGFsdHhucwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAA9Ub3RhbF9Vc2VyVHhuc18FAAAACmN1cnJlbnRLZXkFAAAADXVzZXJ0b3RhbHR4bnMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAABJEZXBvc2l0X0Ftb3VudF9PZl8FAAAACmN1cnJlbnRLZXkJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAABFDdXJyZW50X1JvdW5kX09mXwUAAAAKY3VycmVudEtleQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAAEENsYWltX1N0YXR1c19PZl8FAAAACmN1cnJlbnRLZXkCAAAABFBBSUQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAAA9Ob19PZl9EZXBvc2l0c18FAAAACmN1cnJlbnRLZXkJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA9mZXRjaHVzZXJhbW91bnQFAAAAC3hVU0RBc3NldElEBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnXgKfu", "height": 1969387, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 272XAisGhaNdcnXAHxXVkdDh432eSYsi7Szq4L7qTTLC Next: 8aw4WVhETjwd6BLpuao6iniqyqfXXNxqfDA3neFci2BB Diff:
OldNewDifferences
3030 else throw((("No Payments Attached Please Attach " + toBase58String(c)) + " Asset Only."))
3131 let l = 1000000000000
3232 let m = toBase58String(j.caller.bytes)
33- let n = 240
34- let o = {
33+ let n = {
3534 let g = getInteger(this, ("Total_UserTxns_" + m))
3635 if ($isInstanceOf(g, "Int"))
3736 then {
4039 }
4140 else 0
4241 }
43- let p = (o + 1)
44- let q = {
42+ let o = (n + 1)
43+ let p = {
4544 let g = getInteger(this, ("No_Of_Deposits_" + m))
4645 if ($isInstanceOf(g, "Int"))
4746 then {
5049 }
5150 else 0
5251 }
53- let r = (q + 1)
52+ let q = (p + 1)
5453 if ((k.assetId != c))
5554 then throw("Incorrect asset attached, please attach only xUSD AssetID.")
5655 else if ((499999999 >= k.amount))
57- then throw("Please attach minimum 5xUSD to deposit to enter round.")
56+ then throw("Please attach minimum 5 xUSD to deposit to enter round.")
5857 else if ((k.amount > l))
5958 then throw("Please attach correct amount in between [5-10000] xUSD.")
6059 else if ((size(j.payments) > 1))
6160 then throw("Two assets attached, Kindly Attach only payment1 = xUSD with in [5-10000] xUSD Range.")
62- else if ((q == 1))
61+ else if ((p == 1))
6362 then throw("You Already participated for an Round, Which has not been settled Yet. Wait until round end and re-enter again.")
64- else [IntegerEntry("Total_Txns", i), IntegerEntry(("Total_UserTxns_" + m), p), IntegerEntry(("Deposit_Amount_Of_" + m), (k.amount - a)), IntegerEntry(("Current_Round_Of_" + m), b), StringEntry(("Claim_Status_Of_" + m), "PENDING"), IntegerEntry(("No_Of_Deposits_" + m), r), ScriptTransfer(e, a, c)]
63+ else [IntegerEntry("Total_Txns", i), IntegerEntry(("Total_UserTxns_" + m), o), IntegerEntry(("Deposit_Amount_Of_" + m), (k.amount - a)), IntegerEntry(("Current_Round_Of_" + m), b), StringEntry(("Claim_Status_Of_" + m), "PENDING"), IntegerEntry(("No_Of_Deposits_" + m), q), ScriptTransfer(e, a, c)]
6564 }
6665
6766
68-@Verifier(s)
69-func t () = {
70- let g = s
71- sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
67+
68+@Callable(j)
69+func Claim () = {
70+ let m = toBase58String(j.caller.bytes)
71+ let p = getIntegerValue(this, ("No_Of_Deposits_" + m))
72+ let r = getIntegerValue(this, ("Current_Round_Of_" + m))
73+ let s = getIntegerValue(this, ("Deposit_Amount_Of_" + m))
74+ let t = getIntegerValue(this, (toString(r) + "_Start_Capital"))
75+ let u = getIntegerValue(this, (toString(r) + "_End_Capital"))
76+ let v = getStringValue(this, (toString(r) + "_status"))
77+ let w = getStringValue(this, (toString(r) + "_mktresults"))
78+ let n = {
79+ let g = getInteger(this, ("Total_UserTxns_" + m))
80+ if ($isInstanceOf(g, "Int"))
81+ then {
82+ let h = g
83+ h
84+ }
85+ else 0
86+ }
87+ let o = (n + 1)
88+ if ((p == 1))
89+ then throw("You Already participated for an Round, Which has not been settled Yet. Wait until round end and re-enter again.")
90+ else [IntegerEntry("Total_Txns", i), IntegerEntry(("Total_UserTxns_" + m), o), DeleteEntry(("Deposit_Amount_Of_" + m)), DeleteEntry(("Current_Round_Of_" + m)), StringEntry(("Claim_Status_Of_" + m), "PAID"), DeleteEntry(("No_Of_Deposits_" + m)), ScriptTransfer(j.caller, s, c)]
91+ }
92+
93+
94+@Verifier(x)
95+func y () = {
96+ let g = x
97+ sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey)
7298 }
7399
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 25000000
55
66 let b = getIntegerValue(this, "current_round")
77
88 let c = base58'2PyngaPGAFjV9AVFXSQANwumY6FSY1cqZDBK8NsEGCup'
99
1010 let d = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
1111
1212 let e = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
1313
1414 let f = {
1515 let g = getInteger(this, "Total_Txns")
1616 if ($isInstanceOf(g, "Int"))
1717 then {
1818 let h = g
1919 h
2020 }
2121 else 0
2222 }
2323
2424 let i = (f + 1)
2525
2626 @Callable(j)
2727 func Deposit () = {
2828 let k = if ((size(j.payments) == 1))
2929 then j.payments[0]
3030 else throw((("No Payments Attached Please Attach " + toBase58String(c)) + " Asset Only."))
3131 let l = 1000000000000
3232 let m = toBase58String(j.caller.bytes)
33- let n = 240
34- let o = {
33+ let n = {
3534 let g = getInteger(this, ("Total_UserTxns_" + m))
3635 if ($isInstanceOf(g, "Int"))
3736 then {
3837 let h = g
3938 h
4039 }
4140 else 0
4241 }
43- let p = (o + 1)
44- let q = {
42+ let o = (n + 1)
43+ let p = {
4544 let g = getInteger(this, ("No_Of_Deposits_" + m))
4645 if ($isInstanceOf(g, "Int"))
4746 then {
4847 let h = g
4948 h
5049 }
5150 else 0
5251 }
53- let r = (q + 1)
52+ let q = (p + 1)
5453 if ((k.assetId != c))
5554 then throw("Incorrect asset attached, please attach only xUSD AssetID.")
5655 else if ((499999999 >= k.amount))
57- then throw("Please attach minimum 5xUSD to deposit to enter round.")
56+ then throw("Please attach minimum 5 xUSD to deposit to enter round.")
5857 else if ((k.amount > l))
5958 then throw("Please attach correct amount in between [5-10000] xUSD.")
6059 else if ((size(j.payments) > 1))
6160 then throw("Two assets attached, Kindly Attach only payment1 = xUSD with in [5-10000] xUSD Range.")
62- else if ((q == 1))
61+ else if ((p == 1))
6362 then throw("You Already participated for an Round, Which has not been settled Yet. Wait until round end and re-enter again.")
64- else [IntegerEntry("Total_Txns", i), IntegerEntry(("Total_UserTxns_" + m), p), IntegerEntry(("Deposit_Amount_Of_" + m), (k.amount - a)), IntegerEntry(("Current_Round_Of_" + m), b), StringEntry(("Claim_Status_Of_" + m), "PENDING"), IntegerEntry(("No_Of_Deposits_" + m), r), ScriptTransfer(e, a, c)]
63+ else [IntegerEntry("Total_Txns", i), IntegerEntry(("Total_UserTxns_" + m), o), IntegerEntry(("Deposit_Amount_Of_" + m), (k.amount - a)), IntegerEntry(("Current_Round_Of_" + m), b), StringEntry(("Claim_Status_Of_" + m), "PENDING"), IntegerEntry(("No_Of_Deposits_" + m), q), ScriptTransfer(e, a, c)]
6564 }
6665
6766
68-@Verifier(s)
69-func t () = {
70- let g = s
71- sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
67+
68+@Callable(j)
69+func Claim () = {
70+ let m = toBase58String(j.caller.bytes)
71+ let p = getIntegerValue(this, ("No_Of_Deposits_" + m))
72+ let r = getIntegerValue(this, ("Current_Round_Of_" + m))
73+ let s = getIntegerValue(this, ("Deposit_Amount_Of_" + m))
74+ let t = getIntegerValue(this, (toString(r) + "_Start_Capital"))
75+ let u = getIntegerValue(this, (toString(r) + "_End_Capital"))
76+ let v = getStringValue(this, (toString(r) + "_status"))
77+ let w = getStringValue(this, (toString(r) + "_mktresults"))
78+ let n = {
79+ let g = getInteger(this, ("Total_UserTxns_" + m))
80+ if ($isInstanceOf(g, "Int"))
81+ then {
82+ let h = g
83+ h
84+ }
85+ else 0
86+ }
87+ let o = (n + 1)
88+ if ((p == 1))
89+ then throw("You Already participated for an Round, Which has not been settled Yet. Wait until round end and re-enter again.")
90+ else [IntegerEntry("Total_Txns", i), IntegerEntry(("Total_UserTxns_" + m), o), DeleteEntry(("Deposit_Amount_Of_" + m)), DeleteEntry(("Current_Round_Of_" + m)), StringEntry(("Claim_Status_Of_" + m), "PAID"), DeleteEntry(("No_Of_Deposits_" + m)), ScriptTransfer(j.caller, s, c)]
91+ }
92+
93+
94+@Verifier(x)
95+func y () = {
96+ let g = x
97+ sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey)
7298 }
7399

github/deemru/w8io/026f985 
38.92 ms