tx · 7TiS2YNcrFD46uNRk1wMUazwgz6i9MFC5TgDbRGsotT7 3Mtb4XjrpoT181pEmn2kF73PTm4vjMoRoVS: -0.01300000 Waves 2023.05.10 13:15 [2571655] smart account 3Mtb4XjrpoT181pEmn2kF73PTm4vjMoRoVS > SELF 0.00000000 Waves
{ "type": 13, "id": "7TiS2YNcrFD46uNRk1wMUazwgz6i9MFC5TgDbRGsotT7", "fee": 1300000, "feeAssetId": null, "timestamp": 1683713758920, "version": 2, "chainId": 84, "sender": "3Mtb4XjrpoT181pEmn2kF73PTm4vjMoRoVS", "senderPublicKey": "Edx9ZQDtX2gxHL28zDigjvqpeQqJ9X6Mh7ZxyVRDkjHr", "proofs": [ "3vi7y5xNPXCTbPdpxrUm9xyyXqLQ2tGCw1RZGYQayedtBPj7Xx6F2aaXcZmtinTN3RBRYdQvomjL9sbU9VGk6ydf" ], "script": "base64:AAIFAAAAAAAABocIAhIFCgMBAQgSAwoBARIAEgMKAQEiA1NFUCILa2V5UmVmZXJyYWwiDGtleVd4QXNzZXRJZCITa2V5TWFuYWdlclB1YmxpY0tleSIWa2V5TWFuYWdlclZhdWx0QWRkcmVzcyIVSWR4Q2ZnQ2xhaW1TdGFydEJsb2NrIhhJZHhDZmdDbGFpbVZlc3RpbmdQZXJpb2QiEklkeENmZ0NsYWltQXNzZXRJZCIUSWR4Q2ZnQ2xhaW1Bc3NldE11bHQiFUlkeENmZ0NsYWltQXNzZXRPd25lciIbSWR4Q2ZnQ2xhaW1Bc3NldFRvdGFsQW1vdW50IhtJZHhUb3RhbHNUb3RhbENsYWltZWRBbW91bnQiGElkeFRvdGFsc1JlbWFpbmluZ0Ftb3VudCIaSWR4VG90YWxzTGFzdENsYWltZWRIZWlnaHQiCHRocm93RXJyIgNtc2ciD2dldFN0cmluZ09yRmFpbCIDa2V5IhJmb3JtYXRDb25maWdTdHJpbmciD2NsYWltU3RhcnRCbG9jayINdmVzdGluZ1BlcmlvZCINYXNzZXRJZEJhc2U1OCIJYXN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AAAANdHJhbnNhY3Rpb25JZAUAAAADbmlsBQAAAAR1bml0CQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACYVMBAAAAAmFUAAAAAAQAAAACYVUEAAAAAVYJAQAAAAJhaQAAAAADCQAAAQAAAAIFAAAAAVYCAAAACkJ5dGVWZWN0b3IEAAAAAmFuBQAAAAFWBQAAAAJhbgMJAAABAAAAAgUAAAABVgIAAAAEVW5pdAgFAAAAAmFTAAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACYVMAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJhUwAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmFVtU9pKA==", "height": 2571655, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CcTwqBsw6WEHhh8CgkaxxDkETPAH6NWroZNnNMP9uvPn Next: none Diff:
Old | New | Differences | |
---|---|---|---|
66 | 66 | func T () = split(q(M()), a) | |
67 | 67 | ||
68 | 68 | ||
69 | - | func U () = addressFromStringValue(getStringValue(e())) | |
70 | - | ||
71 | - | ||
72 | - | func V (r,W,X,Y) = { | |
73 | - | let D = parseIntValue(W[l]) | |
74 | - | let Z = parseIntValue(W[m]) | |
75 | - | let F = parseIntValue(W[n]) | |
76 | - | let aa = (D + X) | |
77 | - | let ab = (Z - X) | |
78 | - | if ((0 > ab)) | |
79 | - | then throw("invalid math") | |
80 | - | else StringEntry(r, C(toString(aa), toString(ab), toString(Y))) | |
69 | + | func U () = { | |
70 | + | let V = getString(e()) | |
71 | + | if ($isInstanceOf(V, "String")) | |
72 | + | then { | |
73 | + | let W = V | |
74 | + | addressFromStringValue(W) | |
75 | + | } | |
76 | + | else this | |
81 | 77 | } | |
82 | 78 | ||
83 | 79 | ||
84 | - | func ac (Q,H,I,ad,ae,af) = StringEntry(O("claim", Q, toBase58String(af)), G(H, I, ad, ae)) | |
80 | + | func X (r,Y,Z,aa) = { | |
81 | + | let D = parseIntValue(Y[l]) | |
82 | + | let ab = parseIntValue(Y[m]) | |
83 | + | let F = parseIntValue(Y[n]) | |
84 | + | let ac = (D + Z) | |
85 | + | let ad = (ab - Z) | |
86 | + | if ((0 > ad)) | |
87 | + | then throw("invalid math") | |
88 | + | else StringEntry(r, C(toString(ac), toString(ad), toString(aa))) | |
89 | + | } | |
85 | 90 | ||
86 | 91 | ||
87 | - | func ag () = { | |
88 | - | let ah = U() | |
89 | - | let ai = getString(ah, d()) | |
90 | - | if ($isInstanceOf(ai, "String")) | |
92 | + | func ae (Q,H,I,af,ag,ah) = StringEntry(O("claim", Q, toBase58String(ah)), G(H, I, af, ag)) | |
93 | + | ||
94 | + | ||
95 | + | func ai () = { | |
96 | + | let aj = U() | |
97 | + | let V = getString(aj, d()) | |
98 | + | if ($isInstanceOf(V, "String")) | |
91 | 99 | then { | |
92 | - | let | |
93 | - | fromBase58String( | |
100 | + | let W = V | |
101 | + | fromBase58String(W) | |
94 | 102 | } | |
95 | - | else if ($isInstanceOf( | |
103 | + | else if ($isInstanceOf(V, "Unit")) | |
96 | 104 | then unit | |
97 | 105 | else throw("Match error") | |
98 | 106 | } | |
100 | 108 | ||
101 | 109 | func ak (al) = { | |
102 | 110 | let am = o("permission denied") | |
103 | - | let | |
104 | - | if ($isInstanceOf( | |
111 | + | let V = ai() | |
112 | + | if ($isInstanceOf(V, "ByteVector")) | |
105 | 113 | then { | |
106 | - | let an = | |
114 | + | let an = V | |
107 | 115 | if ((al.callerPublicKey == an)) | |
108 | 116 | then true | |
109 | 117 | else am | |
110 | 118 | } | |
111 | - | else if ($isInstanceOf( | |
119 | + | else if ($isInstanceOf(V, "Unit")) | |
112 | 120 | then if ((al.caller == this)) | |
113 | 121 | then true | |
114 | 122 | else am | |
149 | 157 | then aB | |
150 | 158 | else ap | |
151 | 159 | let aD = (aB - aC) | |
152 | - | $Tuple2([IntegerEntry(N, aD), ScriptTransfer(av, aC, au), | |
160 | + | $Tuple2([IntegerEntry(N, aD), ScriptTransfer(av, aC, au), X(M(), T(), aC, K), ae(toString(av), aC, I, J, K, al.transactionId)], aC) | |
153 | 161 | } | |
154 | 162 | } | |
155 | 163 | ||
196 | 204 | if ((aQ == aQ)) | |
197 | 205 | then { | |
198 | 206 | let aR = fromBase58String(value(getString(c))) | |
199 | - | $Tuple2([ScriptTransfer(al.caller, aO, aR), | |
207 | + | $Tuple2([ScriptTransfer(al.caller, aO, aR), ae(aP, aO, 0, 0, 0, al.transactionId)], unit) | |
200 | 208 | } | |
201 | 209 | else throw("Strict value is not equal to itself.") | |
202 | 210 | } | |
205 | 213 | @Verifier(aS) | |
206 | 214 | func aT () = { | |
207 | 215 | let aU = { | |
208 | - | let | |
209 | - | if ($isInstanceOf( | |
216 | + | let V = ai() | |
217 | + | if ($isInstanceOf(V, "ByteVector")) | |
210 | 218 | then { | |
211 | - | let an = | |
219 | + | let an = V | |
212 | 220 | an | |
213 | 221 | } | |
214 | - | else if ($isInstanceOf( | |
222 | + | else if ($isInstanceOf(V, "Unit")) | |
215 | 223 | then aS.senderPublicKey | |
216 | 224 | else throw("Match error") | |
217 | 225 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = makeString(["%s", "referral"], a) | |
7 | 7 | ||
8 | 8 | let c = makeString(["%s", "wxAssetId"], a) | |
9 | 9 | ||
10 | 10 | func d () = "%s__managerPublicKey" | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func e () = "%s__managerVaultAddress" | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | let f = 1 | |
17 | 17 | ||
18 | 18 | let g = 2 | |
19 | 19 | ||
20 | 20 | let h = 3 | |
21 | 21 | ||
22 | 22 | let i = 4 | |
23 | 23 | ||
24 | 24 | let j = 5 | |
25 | 25 | ||
26 | 26 | let k = 6 | |
27 | 27 | ||
28 | 28 | let l = 1 | |
29 | 29 | ||
30 | 30 | let m = 2 | |
31 | 31 | ||
32 | 32 | let n = 3 | |
33 | 33 | ||
34 | 34 | func o (p) = throw(makeString(["marketing.ride:", p], " ")) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func q (r) = valueOrErrorMessage(getString(r), (("mandatory this." + r) + " is not defined")) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func s (t,u,v,w,x,y) = makeString(["%d%d%s%d%s%d%", t, u, v, w, x, y], a) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func z (t,u,v,w,A,B) = s(toString(t), toString(u), v, toString(w), A, toString(B)) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func C (D,E,F) = makeString(["%d%d%d", D, E, F], a) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func G (H,I,J,K) = makeString(["%d%d%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(H), toString(I), toString(J), toString(K)], a) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func L () = "%s__config" | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func M () = "%s__totals" | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | let N = makeString(["%s", "amountUnclaimed"], a) | |
59 | 59 | ||
60 | 60 | func O (P,Q,R) = makeString(["%s%s%s%s__history", P, Q, R], a) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func S () = split(q(L()), a) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func T () = split(q(M()), a) | |
67 | 67 | ||
68 | 68 | ||
69 | - | func U () = addressFromStringValue(getStringValue(e())) | |
70 | - | ||
71 | - | ||
72 | - | func V (r,W,X,Y) = { | |
73 | - | let D = parseIntValue(W[l]) | |
74 | - | let Z = parseIntValue(W[m]) | |
75 | - | let F = parseIntValue(W[n]) | |
76 | - | let aa = (D + X) | |
77 | - | let ab = (Z - X) | |
78 | - | if ((0 > ab)) | |
79 | - | then throw("invalid math") | |
80 | - | else StringEntry(r, C(toString(aa), toString(ab), toString(Y))) | |
69 | + | func U () = { | |
70 | + | let V = getString(e()) | |
71 | + | if ($isInstanceOf(V, "String")) | |
72 | + | then { | |
73 | + | let W = V | |
74 | + | addressFromStringValue(W) | |
75 | + | } | |
76 | + | else this | |
81 | 77 | } | |
82 | 78 | ||
83 | 79 | ||
84 | - | func ac (Q,H,I,ad,ae,af) = StringEntry(O("claim", Q, toBase58String(af)), G(H, I, ad, ae)) | |
80 | + | func X (r,Y,Z,aa) = { | |
81 | + | let D = parseIntValue(Y[l]) | |
82 | + | let ab = parseIntValue(Y[m]) | |
83 | + | let F = parseIntValue(Y[n]) | |
84 | + | let ac = (D + Z) | |
85 | + | let ad = (ab - Z) | |
86 | + | if ((0 > ad)) | |
87 | + | then throw("invalid math") | |
88 | + | else StringEntry(r, C(toString(ac), toString(ad), toString(aa))) | |
89 | + | } | |
85 | 90 | ||
86 | 91 | ||
87 | - | func ag () = { | |
88 | - | let ah = U() | |
89 | - | let ai = getString(ah, d()) | |
90 | - | if ($isInstanceOf(ai, "String")) | |
92 | + | func ae (Q,H,I,af,ag,ah) = StringEntry(O("claim", Q, toBase58String(ah)), G(H, I, af, ag)) | |
93 | + | ||
94 | + | ||
95 | + | func ai () = { | |
96 | + | let aj = U() | |
97 | + | let V = getString(aj, d()) | |
98 | + | if ($isInstanceOf(V, "String")) | |
91 | 99 | then { | |
92 | - | let | |
93 | - | fromBase58String( | |
100 | + | let W = V | |
101 | + | fromBase58String(W) | |
94 | 102 | } | |
95 | - | else if ($isInstanceOf( | |
103 | + | else if ($isInstanceOf(V, "Unit")) | |
96 | 104 | then unit | |
97 | 105 | else throw("Match error") | |
98 | 106 | } | |
99 | 107 | ||
100 | 108 | ||
101 | 109 | func ak (al) = { | |
102 | 110 | let am = o("permission denied") | |
103 | - | let | |
104 | - | if ($isInstanceOf( | |
111 | + | let V = ai() | |
112 | + | if ($isInstanceOf(V, "ByteVector")) | |
105 | 113 | then { | |
106 | - | let an = | |
114 | + | let an = V | |
107 | 115 | if ((al.callerPublicKey == an)) | |
108 | 116 | then true | |
109 | 117 | else am | |
110 | 118 | } | |
111 | - | else if ($isInstanceOf( | |
119 | + | else if ($isInstanceOf(V, "Unit")) | |
112 | 120 | then if ((al.caller == this)) | |
113 | 121 | then true | |
114 | 122 | else am | |
115 | 123 | else throw("Match error") | |
116 | 124 | } | |
117 | 125 | ||
118 | 126 | ||
119 | 127 | func ao (al,ap) = { | |
120 | 128 | let aq = S() | |
121 | 129 | let ar = parseIntValue(aq[f]) | |
122 | 130 | let as = parseIntValue(aq[g]) | |
123 | 131 | let at = (ar + as) | |
124 | 132 | let au = fromBase58String(aq[h]) | |
125 | 133 | let av = addressFromStringValue(aq[j]) | |
126 | 134 | let aw = parseIntValue(aq[k]) | |
127 | 135 | let ax = T() | |
128 | 136 | let D = parseIntValue(ax[l]) | |
129 | 137 | let ay = parseIntValue(ax[m]) | |
130 | 138 | let F = parseIntValue(ax[n]) | |
131 | 139 | if ((al.caller != av)) | |
132 | 140 | then throw("permissions denied") | |
133 | 141 | else if ((ar > height)) | |
134 | 142 | then throw(("Wait claim start block: " + toString(ar))) | |
135 | 143 | else { | |
136 | 144 | let K = if ((height > at)) | |
137 | 145 | then at | |
138 | 146 | else height | |
139 | 147 | let J = if ((F == 0)) | |
140 | 148 | then ar | |
141 | 149 | else F | |
142 | 150 | let I = (K - J) | |
143 | 151 | let az = fraction(aw, I, as) | |
144 | 152 | let aA = valueOrElse(getInteger(this, N), 0) | |
145 | 153 | let aB = (az + aA) | |
146 | 154 | let aC = if (if ((0 >= ap)) | |
147 | 155 | then true | |
148 | 156 | else (ap >= aB)) | |
149 | 157 | then aB | |
150 | 158 | else ap | |
151 | 159 | let aD = (aB - aC) | |
152 | - | $Tuple2([IntegerEntry(N, aD), ScriptTransfer(av, aC, au), | |
160 | + | $Tuple2([IntegerEntry(N, aD), ScriptTransfer(av, aC, au), X(M(), T(), aC, K), ae(toString(av), aC, I, J, K, al.transactionId)], aC) | |
153 | 161 | } | |
154 | 162 | } | |
155 | 163 | ||
156 | 164 | ||
157 | 165 | @Callable(al) | |
158 | 166 | func constructor (t,aE,aF) = { | |
159 | 167 | let aG = (t + aE) | |
160 | 168 | if (isDefined(getString(L()))) | |
161 | 169 | then throw("already initialized") | |
162 | 170 | else if ((size(al.payments) != 1)) | |
163 | 171 | then throw("exactly 1 payment must be attached") | |
164 | 172 | else if ((al.callerPublicKey != base58'2Cbd8ozG7A1RyRNC3nNnZgHu7Ru4K3JCfpyPkhqr9zxq')) | |
165 | 173 | then throw("not authorized") | |
166 | 174 | else { | |
167 | 175 | let aH = valueOrErrorMessage(addressFromString(aF), "Invalid beneficiarAddress passed") | |
168 | 176 | let aI = value(al.payments[0]) | |
169 | 177 | let aJ = value(aI.assetId) | |
170 | 178 | let aK = valueOrErrorMessage(assetInfo(aJ), "fail to load ido asset info") | |
171 | 179 | let aL = toBase58String(aJ) | |
172 | 180 | let aM = pow(10, 0, aK.decimals, 0, 0, DOWN) | |
173 | 181 | let aN = aI.amount | |
174 | 182 | [StringEntry(L(), z(t, aE, aL, aM, toString(aH), aN)), StringEntry(M(), C("0", toString(aN), "0"))] | |
175 | 183 | } | |
176 | 184 | } | |
177 | 185 | ||
178 | 186 | ||
179 | 187 | ||
180 | 188 | @Callable(al) | |
181 | 189 | func claimAmount (ap) = ao(al, ap) | |
182 | 190 | ||
183 | 191 | ||
184 | 192 | ||
185 | 193 | @Callable(al) | |
186 | 194 | func claim () = ao(al, -1) | |
187 | 195 | ||
188 | 196 | ||
189 | 197 | ||
190 | 198 | @Callable(al) | |
191 | 199 | func withdrawReferralReward (aO) = { | |
192 | 200 | let aP = value(getString(b)) | |
193 | 201 | let aQ = if ((toString(al.caller) == aP)) | |
194 | 202 | then true | |
195 | 203 | else o("permission denied") | |
196 | 204 | if ((aQ == aQ)) | |
197 | 205 | then { | |
198 | 206 | let aR = fromBase58String(value(getString(c))) | |
199 | - | $Tuple2([ScriptTransfer(al.caller, aO, aR), | |
207 | + | $Tuple2([ScriptTransfer(al.caller, aO, aR), ae(aP, aO, 0, 0, 0, al.transactionId)], unit) | |
200 | 208 | } | |
201 | 209 | else throw("Strict value is not equal to itself.") | |
202 | 210 | } | |
203 | 211 | ||
204 | 212 | ||
205 | 213 | @Verifier(aS) | |
206 | 214 | func aT () = { | |
207 | 215 | let aU = { | |
208 | - | let | |
209 | - | if ($isInstanceOf( | |
216 | + | let V = ai() | |
217 | + | if ($isInstanceOf(V, "ByteVector")) | |
210 | 218 | then { | |
211 | - | let an = | |
219 | + | let an = V | |
212 | 220 | an | |
213 | 221 | } | |
214 | - | else if ($isInstanceOf( | |
222 | + | else if ($isInstanceOf(V, "Unit")) | |
215 | 223 | then aS.senderPublicKey | |
216 | 224 | else throw("Match error") | |
217 | 225 | } | |
218 | 226 | sigVerify(aS.bodyBytes, aS.proofs[0], aU) | |
219 | 227 | } | |
220 | 228 |
github/deemru/w8io/169f3d6 48.28 ms ◑