tx · 2ZKbUzED3dT1fsUKM9oaBzuaJR8EEHm4ywczeSH6cUkD

3PH2KWQ4aPVZQo27CKYvA3wtLFpocJ9oSxR:  -0.00600000 Waves

2022.10.03 16:45 [3321715] smart account 3PH2KWQ4aPVZQo27CKYvA3wtLFpocJ9oSxR > SELF 0.00000000 Waves

{ "type": 13, "id": "2ZKbUzED3dT1fsUKM9oaBzuaJR8EEHm4ywczeSH6cUkD", "fee": 600000, "feeAssetId": null, "timestamp": 1664804718317, "version": 2, "chainId": 87, "sender": "3PH2KWQ4aPVZQo27CKYvA3wtLFpocJ9oSxR", "senderPublicKey": "F2oYoje2nsMBbUbhBJwpyE7Xdc5HsMi7BmkNW22i7Syi", "proofs": [ "2wzn8JFBkvRsXZWLgYhf49xWZKo5rinGWwRowGnQ1RpUdSB28aDuiiFC7U8Nig5i1qKFb2RfcjzSe1Xo7ByvCzm2" ], "script": "base64:AAIFAAAAAAAAAA8IAhIFCgMIAQgSBAoCCAEAAAAUAAAAAAhDb3Vyc2VJZAAAAAAAAAAAAAAAAAAQYmFja2VuZFB1YmxpY0tleQEAAAAgWfw+o16bck5csjvuo75l3fBL85OUGiBdbOKUSjbPGWIAAAAAC1VzZG5Bc3NldElkAQAAACC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QAAAAAKVXNkbkFtb3VudAAAAAAAAIlUQAAAAAAMV2F2ZXNBc3NldElkBQAAAAR1bml0AAAAAAlXWEFzc2V0SWQBAAAAIJMBHKupx24lV85mnnG2vapr+DzoWAsq7tmgTrs83BSxAAAAAAxWaXJlc0Fzc2V0SWQBAAAAILja4jcBYnBfmqhbshkMvQ/DZa91BrZYLd0Hk1ap3amXAAAAAAtTd29wQXNzZXRJZAEAAAAgy5Y+heb1k1ZPj3mDERR4TyZ+jN5UknzW4a3AXGioruwAAAAACkVHR0Fzc2V0SWQBAAAAIKOff08jclHRLOIhkmKITQwL8+oiboHVr/wLkxfObbHJAAAAABBXYXZlc1Bvb2xBZG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3QgZmluaXNoIHRoZSBjb3Vyc2UDCQAAAAAAAAIFAAAAEmtVc2VyUmV3YXJkZWRWYWx1ZQYJAAACAAAAAQIAAAAZVXNlciB3YXMgYWxyZWFkeSByZXdhcmRlZAkBAAAAEGNhbGN1bGF0ZVJld2FyZHMAAAABBQAAAAdhZGRyZXNzAAAAAJWTP+o=", "height": 3321715, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FgvmmPfubPDqAcHqZiS42skP4MWfs5zpvpH5dqqm5tz Next: J48v2r86wp6KqJHQ41Mkbj56RHgXgyPEZ2P6jFyubHcM Diff:
OldNewDifferences
4646 let y = wavesBalance(this).regular
4747 if ((y == y))
4848 then {
49- let z = invoke(Address(j), "exchange", [1], [AttachedPayment(c, 4000000)])
49+ let z = invoke(Address(j), "exchange", [1], [AttachedPayment(c, 3000000)])
5050 if ((z == z))
5151 then {
5252 let A = wavesBalance(this).regular
5656 let C = assetBalance(this, i)
5757 if ((C == C))
5858 then {
59- let D = invoke(Address(l), "exchange", [1], [AttachedPayment(c, 4000000)])
59+ let D = invoke(Address(l), "exchange", [1], [AttachedPayment(c, 3000000)])
6060 if ((D == D))
6161 then {
6262 let E = assetBalance(this, i)
6363 if ((E == E))
6464 then {
6565 let F = (E - C)
66- let G = s(m, 4000000)
67- let H = s(k, 4000000)
68- let I = s(n, 4000000)
66+ let G = s(m, 3000000)
67+ let H = s(k, 3000000)
68+ let I = s(n, 3000000)
6969 [StringEntry(("__debug_" + p), makeString([toString(B), toString(F), toString(G), toString(H), toString(I)], " || ")), ScriptTransfer(addressFromStringValue(p), B, unit), ScriptTransfer(addressFromStringValue(p), F, i), ScriptTransfer(addressFromStringValue(p), H, f), ScriptTransfer(addressFromStringValue(p), G, h), ScriptTransfer(addressFromStringValue(p), I, g), BooleanEntry(r(p, a), true)]
7070 }
7171 else throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 0
55
66 let b = base58'74GNYyhC5BPLvUUT8DoisXVQ8AMhcWCGM5D3jJJ2F9cu'
77
88 let c = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
99
1010 let d = 9000000
1111
1212 let e = unit
1313
1414 let f = base58'Atqv59EYzjFGuitKVnMRk6H8FukjoV3ktPorbEys25on'
1515
1616 let g = base58'DSbbhLsSTeDg5Lsiufk2Aneh3DjVqJuPr2M9uU1gwy5p'
1717
1818 let h = base58'Ehie5xYpeN8op1Cctc6aGUrqx8jq3jtf1DSjXDbfm7aT'
1919
2020 let i = base58'C1iWsKGqLwjHUndiQ7iXpdmPum9PeCDFfyXBdJJosDRS'
2121
2222 let j = base58'3PHaNgomBkrvEL2QnuJarQVJa71wjw9qiqG'
2323
2424 let k = base58'3PKi4G3VX2k42ZSmNNrmvgdDH7JzRaUhY7R'
2525
2626 let l = base58'3PEeJQRJT4v4XvSUBPmxhdWKz439nae7KtQ'
2727
2828 let m = base58'3P27S9V36kw2McjWRZ37AxTx8iwkd7HXw6W'
2929
3030 let n = base58'3PJ48P3p2wvWUjgQaQiZ2cFbr8qmxMokBGd'
3131
3232 func o (p,q) = ((p + "_course_") + toString(a))
3333
3434
3535 func r (p,q) = (((p + "_course_") + toString(a)) + "_rewarded")
3636
3737
3838 func s (t,u) = {
3939 let v = getIntegerValue(Address(t), "A_asset_balance")
4040 let w = getIntegerValue(Address(t), "B_asset_balance")
4141 fraction(v, u, w)
4242 }
4343
4444
4545 func x (p) = {
4646 let y = wavesBalance(this).regular
4747 if ((y == y))
4848 then {
49- let z = invoke(Address(j), "exchange", [1], [AttachedPayment(c, 4000000)])
49+ let z = invoke(Address(j), "exchange", [1], [AttachedPayment(c, 3000000)])
5050 if ((z == z))
5151 then {
5252 let A = wavesBalance(this).regular
5353 if ((A == A))
5454 then {
5555 let B = (A - y)
5656 let C = assetBalance(this, i)
5757 if ((C == C))
5858 then {
59- let D = invoke(Address(l), "exchange", [1], [AttachedPayment(c, 4000000)])
59+ let D = invoke(Address(l), "exchange", [1], [AttachedPayment(c, 3000000)])
6060 if ((D == D))
6161 then {
6262 let E = assetBalance(this, i)
6363 if ((E == E))
6464 then {
6565 let F = (E - C)
66- let G = s(m, 4000000)
67- let H = s(k, 4000000)
68- let I = s(n, 4000000)
66+ let G = s(m, 3000000)
67+ let H = s(k, 3000000)
68+ let I = s(n, 3000000)
6969 [StringEntry(("__debug_" + p), makeString([toString(B), toString(F), toString(G), toString(H), toString(I)], " || ")), ScriptTransfer(addressFromStringValue(p), B, unit), ScriptTransfer(addressFromStringValue(p), F, i), ScriptTransfer(addressFromStringValue(p), H, f), ScriptTransfer(addressFromStringValue(p), G, h), ScriptTransfer(addressFromStringValue(p), I, g), BooleanEntry(r(p, a), true)]
7070 }
7171 else throw("Strict value is not equal to itself.")
7272 }
7373 else throw("Strict value is not equal to itself.")
7474 }
7575 else throw("Strict value is not equal to itself.")
7676 }
7777 else throw("Strict value is not equal to itself.")
7878 }
7979 else throw("Strict value is not equal to itself.")
8080 }
8181 else throw("Strict value is not equal to itself.")
8282 }
8383
8484
8585 func J (K,q) = {
8686 let L = o(K, q)
8787 let M = getBoolean(L)
8888 if ($isInstanceOf(M, "Boolean"))
8989 then {
9090 let N = M
9191 N
9292 }
9393 else false
9494 }
9595
9696
9797 func O (K,q) = {
9898 let P = r(K, q)
9999 let M = getBoolean(P)
100100 if ($isInstanceOf(M, "Boolean"))
101101 then {
102102 let N = M
103103 N
104104 }
105105 else false
106106 }
107107
108108
109109 @Callable(Q)
110110 func payForCertificate (R,q,S) = {
111111 let K = toString(Q.originCaller)
112112 let T = J(K, q)
113113 let U = ((R + toString(q)) + K)
114114 if ((sigVerify_8Kb(toBytes(U), fromBase58String(S), b) == false))
115115 then throw("Backend proof is not correct")
116116 else if ((value(value(Q.payments[0]).assetId) != c))
117117 then throw("10 USDN should be attached")
118118 else if ((value(value(Q.payments[0]).amount) != d))
119119 then throw((("At least " + toString(d)) + " USDN should be attached"))
120120 else if (T)
121121 then throw("User already got a certificate!")
122122 else ([BooleanEntry(o(K, q), true)] ++ x(K))
123123 }
124124
125125
126126
127127 @Callable(Q)
128128 func payToUser (p,q) = {
129129 let T = J(p, q)
130130 let V = O(p, q)
131131 if ((T == false))
132132 then throw("User didn't finish the course")
133133 else if ((V == true))
134134 then throw("User was already rewarded")
135135 else x(p)
136136 }
137137
138138

github/deemru/w8io/3ef1775 
125.30 ms