tx · 8DQzUaumGPsVCQucVjYFUvjRy36H1mAd4SUthDCfvKRe

3MwoWxBwFKxjUKK53Rxbnwrs8m2MsVMPPa7:  -0.01000000 Waves

2023.11.28 14:24 [2863185] smart account 3MwoWxBwFKxjUKK53Rxbnwrs8m2MsVMPPa7 > SELF 0.00000000 Waves

{ "type": 13, "id": "8DQzUaumGPsVCQucVjYFUvjRy36H1mAd4SUthDCfvKRe", "fee": 1000000, "feeAssetId": null, "timestamp": 1701170698284, "version": 2, "chainId": 84, "sender": "3MwoWxBwFKxjUKK53Rxbnwrs8m2MsVMPPa7", "senderPublicKey": "6oay51Q6zPcFP9bSwUC4Potx2KGyD4AUjpL5uLR4QeRN", "proofs": [ "xVnTroipSjsuUMiWmBQWZNuPDRr7mFJp9hZ16zmb2GswcEnF7xSdCFz1QFWZoJoir6ra66tvCKERQ4pUjKa8miX" ], "script": "base64:AAIFAAAAAAAAABkIAhIFCgMBCAgSDgoMCAEBAQgIAQEBCAEBAAAABAAAAAARdXNlcl9iYWxhbmNlX2RhcHAJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNOMXMydzROSGdiclh4TlpYSDlSdGFWVDlwdEhSSmNnU3AyAAAAABREYXBwX0FkZHJlc3NfcHViX2tleQEAAAAgyO2Y2obuVTVYYMc8lugqW2L1IjDFH+TsgVEJaOfOGnMAAAAAEXdoaXRlbGlzdF9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAABREYXBwX0FkZHJlc3NfcHViX2tleQAAAAAUbWF4aW11bV92b3VjaGVyX3NpemUAAAAAAAX14QAAAAACAAAAAWkBAAAADklzc3VlX1ZvdWNoZXJzAAAAAwAAAA5Wb3VjaGVyX0Ftb3VudAAAAAdVc2VyX0lEAAAADFVzZXJfQWRkcmVzcwQAAAAZcmVhZF9Ub3RhbFZvdWNoZXJzQmFsYW5jZQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEGg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bHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAACwGNvS", "height": 2863185, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CuCnjNQ5ZDqV6Tbow1sWCfQpPgwyZS4B8TaVVYQSTeCf Next: 9VmKkK1rJsjizvHBQC9vnbuNnScAThqsexvSWSS4c1nT Diff:
OldNewDifferences
77
88 let c = addressFromPublicKey(b)
99
10-@Callable(d)
11-func placeoptionCallWithVoucher (e,f,g,h,i,j,k,l,m,n) = {
12- let o = invoke(a, "placeoptionCall", [e, f, g, h, i, j, k, l, m, n], nil)
13- if ((o == o))
14- then if ((d.caller != c))
15- then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it."))
16- else [StringEntry("D2D_Status", "Passed")]
10+let d = 100000000
11+
12+@Callable(e)
13+func Issue_Vouchers (f,g,h) = {
14+ let i = valueOrErrorMessage(getInteger(this, "Available_Vouchers_Balance"), "Available_Vouchers_Balance Entry is not Found. Initiate Fill_Vouchers_Liquidity Function first.")
15+ let j = (i - f)
16+ let k = {
17+ let l = getInteger(this, ("Total_Vouchers_Issued_To_" + h))
18+ if ($isInstanceOf(l, "Int"))
19+ then {
20+ let m = l
21+ m
22+ }
23+ else 0
24+ }
25+ let n = (k + 1)
26+ let o = {
27+ let l = getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + h))
28+ if ($isInstanceOf(l, "Int"))
29+ then {
30+ let m = l
31+ m
32+ }
33+ else 0
34+ }
35+ let p = (o + f)
36+ let q = {
37+ let l = getInteger(this, (h + "_Voucher_Balance"))
38+ if ($isInstanceOf(l, "Int"))
39+ then {
40+ let m = l
41+ m
42+ }
43+ else 0
44+ }
45+ let r = (q + f)
46+ if ((e.caller != c))
47+ then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it."))
48+ else if ((0 >= f))
49+ then throw("Voucher Balance can't be 0 or go in negative State. Increase the Voucher Amount.")
50+ else if ((0 >= j))
51+ then throw((("Updated Voucher Balance can't go in negative State of " + toString(j)) + " /10^8 WAVES. Reduce the Voucher Amount."))
52+ else if ((f > d))
53+ then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(d)) + "/10^8 Waves."))
54+ else [IntegerEntry(("Total_Vouchers_Issued_To_" + h), n), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + h), p), IntegerEntry((h + "_Voucher_Balance"), r), IntegerEntry("Available_Vouchers_Balance", j)]
55+ }
56+
57+
58+
59+@Callable(e)
60+func placeoptionCallWithVoucher (s,f,t,u,g,h,v,w,x,y,z,A) = {
61+ let B = invoke(this, "Issue_Vouchers", [f, g, h], nil)
62+ if ((B == B))
63+ then {
64+ let C = invoke(a, s, [t, u, g, h, v, w, x, y, z, A], nil)
65+ if ((C == C))
66+ then if ((e.caller != c))
67+ then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it."))
68+ else [StringEntry("D2D_Status", "Passed")]
69+ else throw("Strict value is not equal to itself.")
70+ }
1771 else throw("Strict value is not equal to itself.")
1872 }
1973
20-
21-@Verifier(p)
22-func q () = {
23- let r = p
24- if (if ($isInstanceOf(r, "Order"))
25- then true
26- else if ($isInstanceOf(r, "ExchangeTransaction"))
27- then true
28- else if ($isInstanceOf(r, "MassTransferTransaction"))
29- then true
30- else $isInstanceOf(r, "TransferTransaction"))
31- then {
32- let s = r
33- false
34- }
35- else sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey)
36- }
3774
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = addressFromStringValue("3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2")
55
66 let b = base58'EXLfxKmqhQPiProBaoPatTentUSZX5Dd8A8bYDcmfNwt'
77
88 let c = addressFromPublicKey(b)
99
10-@Callable(d)
11-func placeoptionCallWithVoucher (e,f,g,h,i,j,k,l,m,n) = {
12- let o = invoke(a, "placeoptionCall", [e, f, g, h, i, j, k, l, m, n], nil)
13- if ((o == o))
14- then if ((d.caller != c))
15- then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it."))
16- else [StringEntry("D2D_Status", "Passed")]
10+let d = 100000000
11+
12+@Callable(e)
13+func Issue_Vouchers (f,g,h) = {
14+ let i = valueOrErrorMessage(getInteger(this, "Available_Vouchers_Balance"), "Available_Vouchers_Balance Entry is not Found. Initiate Fill_Vouchers_Liquidity Function first.")
15+ let j = (i - f)
16+ let k = {
17+ let l = getInteger(this, ("Total_Vouchers_Issued_To_" + h))
18+ if ($isInstanceOf(l, "Int"))
19+ then {
20+ let m = l
21+ m
22+ }
23+ else 0
24+ }
25+ let n = (k + 1)
26+ let o = {
27+ let l = getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + h))
28+ if ($isInstanceOf(l, "Int"))
29+ then {
30+ let m = l
31+ m
32+ }
33+ else 0
34+ }
35+ let p = (o + f)
36+ let q = {
37+ let l = getInteger(this, (h + "_Voucher_Balance"))
38+ if ($isInstanceOf(l, "Int"))
39+ then {
40+ let m = l
41+ m
42+ }
43+ else 0
44+ }
45+ let r = (q + f)
46+ if ((e.caller != c))
47+ then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it."))
48+ else if ((0 >= f))
49+ then throw("Voucher Balance can't be 0 or go in negative State. Increase the Voucher Amount.")
50+ else if ((0 >= j))
51+ then throw((("Updated Voucher Balance can't go in negative State of " + toString(j)) + " /10^8 WAVES. Reduce the Voucher Amount."))
52+ else if ((f > d))
53+ then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(d)) + "/10^8 Waves."))
54+ else [IntegerEntry(("Total_Vouchers_Issued_To_" + h), n), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + h), p), IntegerEntry((h + "_Voucher_Balance"), r), IntegerEntry("Available_Vouchers_Balance", j)]
55+ }
56+
57+
58+
59+@Callable(e)
60+func placeoptionCallWithVoucher (s,f,t,u,g,h,v,w,x,y,z,A) = {
61+ let B = invoke(this, "Issue_Vouchers", [f, g, h], nil)
62+ if ((B == B))
63+ then {
64+ let C = invoke(a, s, [t, u, g, h, v, w, x, y, z, A], nil)
65+ if ((C == C))
66+ then if ((e.caller != c))
67+ then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it."))
68+ else [StringEntry("D2D_Status", "Passed")]
69+ else throw("Strict value is not equal to itself.")
70+ }
1771 else throw("Strict value is not equal to itself.")
1872 }
1973
20-
21-@Verifier(p)
22-func q () = {
23- let r = p
24- if (if ($isInstanceOf(r, "Order"))
25- then true
26- else if ($isInstanceOf(r, "ExchangeTransaction"))
27- then true
28- else if ($isInstanceOf(r, "MassTransferTransaction"))
29- then true
30- else $isInstanceOf(r, "TransferTransaction"))
31- then {
32- let s = r
33- false
34- }
35- else sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey)
36- }
3774

github/deemru/w8io/026f985 
28.90 ms