tx · FuAM13VtSqt6ZEoxLHxtWqk71LZR751juqjjTyXX9KSb 3Ms38PbYnARMUMorWK8SqRBhKKQq2yhXPB1: -0.01500000 Waves 2022.08.11 16:11 [2179861] smart account 3Ms38PbYnARMUMorWK8SqRBhKKQq2yhXPB1 > SELF 0.00000000 Waves
{ "type": 13, "id": "FuAM13VtSqt6ZEoxLHxtWqk71LZR751juqjjTyXX9KSb", "fee": 1500000, "feeAssetId": null, "timestamp": 1660223541925, "version": 1, "sender": "3Ms38PbYnARMUMorWK8SqRBhKKQq2yhXPB1", "senderPublicKey": "3EfudNNQNACtTotZKwkRu97fZW5fFjUPwuP1gd3oBHJs", "proofs": [ "CD7nZ1tV6JHxPXWhZeuAMGvaZTUsXM2oig5oSnfKpnzypxNTJ1kmvNQNvEcwqVsrPdWqpN5BdC3SxNsqS6YmmtT" ], "script": "base64:AAIFAAAAAAAAABwIAhIFCgMBAQgSAwoBARIAEgMKAQESAwoBCBIAAAAAIAAAAAADU0VQAgAAAAJfXwAAAAALa2V5UmVmZXJyYWwJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAAAhyZWZlcnJhbAUAAAADbmlsBQAAAANTRVAAAAAADGtleVd4QXNzZXRJZAkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAACXd4QXNzZXRJZAUAAAADbmlsBQAAAANTRVABAAAAE2tleU1hbmFnZXJQdWJsaWNLZXkAAAAAAgAAABQlc19fbWFuYWdlclB1YmxpY0tleQEAAAAaa2V5UGVuZGluZ01hbmFnZXJQdWJsaWNLZXkAAAAAAgAAABslc19fcGVuZGluZ01hbmFnZXJQdWJsaWNLZXkAAAAAFUlkeENmZ0NsYWltU3RhcnRCbG9jawAAAAAAAAAAAQAAAAAYSWR4Q2ZnQ2xhaW1WZXN0aW5nUGVyaW9kAAAAAAAAAAACAAAAABJJZHhDZmdDbGFpbUFzc2V0SWQAAAAAAAAAAAMAAAAAFElkeENmZ0NsYWltQXNzZXRNdWx0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vcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5l5Hrzw==", "chainId": 84, "height": 2179861, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fui2GKQ9krB8w49JU6riV8BW3J7EpZmt53HiSzU3zytJ Next: Eh52Cg3tEoteQCsW3X17rjqMpGjubyTRTNvMbQH8jKVR Diff:
Old | New | Differences | |
---|---|---|---|
55 | 55 | func M () = "%s__totals" | |
56 | 56 | ||
57 | 57 | ||
58 | - | func N (O,P,Q) = makeString(["%s%s%s%s__history", O, P, Q], a) | |
58 | + | let N = makeString(["%s", "amountUnclaimed"], a) | |
59 | + | ||
60 | + | func O (P,Q,R) = makeString(["%s%s%s%s__history", P, Q, R], a) | |
59 | 61 | ||
60 | 62 | ||
61 | - | func | |
63 | + | func S () = split(q(L()), a) | |
62 | 64 | ||
63 | 65 | ||
64 | - | func | |
66 | + | func T () = split(q(M()), a) | |
65 | 67 | ||
66 | 68 | ||
67 | - | func | |
68 | - | let D = parseIntValue( | |
69 | - | let | |
70 | - | let F = parseIntValue( | |
71 | - | let | |
72 | - | let | |
73 | - | if ((0 > | |
69 | + | func U (r,V,W,X) = { | |
70 | + | let D = parseIntValue(V[l]) | |
71 | + | let Y = parseIntValue(V[m]) | |
72 | + | let F = parseIntValue(V[n]) | |
73 | + | let Z = (D + W) | |
74 | + | let aa = (Y - W) | |
75 | + | if ((0 > aa)) | |
74 | 76 | then throw("invalid math") | |
75 | - | else StringEntry(r, C(toString( | |
77 | + | else StringEntry(r, C(toString(Z), toString(aa), toString(X))) | |
76 | 78 | } | |
77 | 79 | ||
78 | 80 | ||
79 | - | func | |
81 | + | func ab (Q,H,I,ac,ad,ae) = StringEntry(O("claim", Q, toBase58String(ae)), G(H, I, ac, ad)) | |
80 | 82 | ||
81 | 83 | ||
82 | - | func | |
83 | - | let | |
84 | - | if ($isInstanceOf( | |
84 | + | func af () = { | |
85 | + | let ag = getString(d()) | |
86 | + | if ($isInstanceOf(ag, "String")) | |
85 | 87 | then { | |
86 | - | let | |
87 | - | fromBase58String( | |
88 | + | let ah = ag | |
89 | + | fromBase58String(ah) | |
88 | 90 | } | |
89 | - | else if ($isInstanceOf( | |
91 | + | else if ($isInstanceOf(ag, "Unit")) | |
90 | 92 | then unit | |
91 | 93 | else throw("Match error") | |
92 | 94 | } | |
93 | 95 | ||
94 | 96 | ||
95 | - | func | |
96 | - | let | |
97 | - | if ($isInstanceOf( | |
97 | + | func ai () = { | |
98 | + | let ag = getString(e()) | |
99 | + | if ($isInstanceOf(ag, "String")) | |
98 | 100 | then { | |
99 | - | let | |
100 | - | fromBase58String( | |
101 | + | let ah = ag | |
102 | + | fromBase58String(ah) | |
101 | 103 | } | |
102 | - | else if ($isInstanceOf( | |
104 | + | else if ($isInstanceOf(ag, "Unit")) | |
103 | 105 | then unit | |
104 | 106 | else throw("Match error") | |
105 | 107 | } | |
106 | 108 | ||
107 | 109 | ||
108 | - | func | |
109 | - | let | |
110 | - | let | |
111 | - | if ($isInstanceOf( | |
110 | + | func aj (ak) = { | |
111 | + | let al = o("permission denied") | |
112 | + | let ag = af() | |
113 | + | if ($isInstanceOf(ag, "ByteVector")) | |
112 | 114 | then { | |
113 | - | let | |
114 | - | if (( | |
115 | + | let am = ag | |
116 | + | if ((ak.callerPublicKey == am)) | |
115 | 117 | then true | |
116 | - | else | |
118 | + | else al | |
117 | 119 | } | |
118 | - | else if ($isInstanceOf( | |
119 | - | then if (( | |
120 | + | else if ($isInstanceOf(ag, "Unit")) | |
121 | + | then if ((ak.caller == this)) | |
120 | 122 | then true | |
121 | - | else | |
123 | + | else al | |
122 | 124 | else throw("Match error") | |
123 | 125 | } | |
124 | 126 | ||
125 | 127 | ||
126 | - | @Callable(aj) | |
127 | - | func constructor (t,am,an) = { | |
128 | - | let ao = (t + am) | |
128 | + | func an (ak,ao) = { | |
129 | + | let ap = S() | |
130 | + | let aq = parseIntValue(ap[f]) | |
131 | + | let ar = parseIntValue(ap[g]) | |
132 | + | let as = (aq + ar) | |
133 | + | let at = fromBase58String(ap[h]) | |
134 | + | let au = addressFromStringValue(ap[j]) | |
135 | + | let av = parseIntValue(ap[k]) | |
136 | + | let aw = T() | |
137 | + | let D = parseIntValue(aw[l]) | |
138 | + | let ax = parseIntValue(aw[m]) | |
139 | + | let F = parseIntValue(aw[n]) | |
140 | + | if ((ak.caller != au)) | |
141 | + | then throw("permissions denied") | |
142 | + | else if ((aq > height)) | |
143 | + | then throw(("Wait claim start block: " + toString(aq))) | |
144 | + | else { | |
145 | + | let K = if ((height > as)) | |
146 | + | then as | |
147 | + | else height | |
148 | + | let J = if ((F == 0)) | |
149 | + | then aq | |
150 | + | else F | |
151 | + | let I = (K - J) | |
152 | + | let ay = fraction(av, I, ar) | |
153 | + | let az = valueOrElse(getInteger(this, N), 0) | |
154 | + | let aA = (ay + az) | |
155 | + | let aB = if (if ((0 >= ao)) | |
156 | + | then true | |
157 | + | else (ao >= aA)) | |
158 | + | then aA | |
159 | + | else ao | |
160 | + | let aC = (aA - aB) | |
161 | + | $Tuple2([IntegerEntry(N, aC), ScriptTransfer(au, aB, at), U(M(), T(), aB, K), ab(toString(au), aB, I, J, K, ak.transactionId)], aB) | |
162 | + | } | |
163 | + | } | |
164 | + | ||
165 | + | ||
166 | + | @Callable(ak) | |
167 | + | func constructor (t,aD,aE) = { | |
168 | + | let aF = (t + aD) | |
129 | 169 | if (isDefined(getString(L()))) | |
130 | 170 | then throw("already initialized") | |
131 | - | else if ((size( | |
171 | + | else if ((size(ak.payments) != 1)) | |
132 | 172 | then throw("exactly 1 payment must be attached") | |
133 | - | else if (( | |
173 | + | else if ((ak.callerPublicKey != base58'2Cbd8ozG7A1RyRNC3nNnZgHu7Ru4K3JCfpyPkhqr9zxq')) | |
134 | 174 | then throw("not authorized") | |
135 | 175 | else { | |
136 | - | let | |
137 | - | let | |
138 | - | let | |
139 | - | let | |
140 | - | let | |
141 | - | let | |
142 | - | let | |
143 | - | [StringEntry(L(), z(t, | |
176 | + | let aG = valueOrErrorMessage(addressFromString(aE), "Invalid beneficiarAddress passed") | |
177 | + | let aH = value(ak.payments[0]) | |
178 | + | let aI = value(aH.assetId) | |
179 | + | let aJ = valueOrErrorMessage(assetInfo(aI), "fail to load ido asset info") | |
180 | + | let aK = toBase58String(aI) | |
181 | + | let aL = pow(10, 0, aJ.decimals, 0, 0, DOWN) | |
182 | + | let aM = aH.amount | |
183 | + | [StringEntry(L(), z(t, aD, aK, aL, toString(aG), aM)), StringEntry(M(), C("0", toString(aM), "0"))] | |
144 | 184 | } | |
145 | 185 | } | |
146 | 186 | ||
147 | 187 | ||
148 | 188 | ||
149 | - | @Callable(aj) | |
150 | - | func claim () = { | |
151 | - | let aw = R() | |
152 | - | let ax = parseIntValue(aw[f]) | |
153 | - | let ay = parseIntValue(aw[g]) | |
154 | - | let az = (ax + ay) | |
155 | - | let aA = aw[h] | |
156 | - | let aB = aw[j] | |
157 | - | let aC = parseIntValue(aw[k]) | |
158 | - | let P = aj.caller | |
159 | - | let aD = toString(P) | |
160 | - | let aE = S() | |
161 | - | let D = parseIntValue(aE[l]) | |
162 | - | let aF = parseIntValue(aE[m]) | |
163 | - | let F = parseIntValue(aE[n]) | |
164 | - | if ((aD != aB)) | |
165 | - | then throw("permissions denied") | |
166 | - | else if ((ax > height)) | |
167 | - | then throw(("Wait claim start block: " + toString(ax))) | |
168 | - | else { | |
169 | - | let K = if ((height > az)) | |
170 | - | then az | |
171 | - | else height | |
172 | - | let J = if ((F == 0)) | |
173 | - | then ax | |
174 | - | else F | |
175 | - | let I = (K - J) | |
176 | - | let aG = fraction(aC, I, ay) | |
177 | - | [ScriptTransfer(P, aG, fromBase58String(aA)), T(M(), S(), aG, K), aa(aD, aG, I, J, K, aj.transactionId)] | |
178 | - | } | |
179 | - | } | |
189 | + | @Callable(ak) | |
190 | + | func claimAmount (ao) = an(ak, ao) | |
180 | 191 | ||
181 | 192 | ||
182 | 193 | ||
183 | - | @Callable(aj) | |
184 | - | func withdrawReferralReward (aH) = { | |
185 | - | let aI = value(getString(b)) | |
186 | - | let aJ = if ((toString(aj.caller) == aI)) | |
194 | + | @Callable(ak) | |
195 | + | func claim () = an(ak, -1) | |
196 | + | ||
197 | + | ||
198 | + | ||
199 | + | @Callable(ak) | |
200 | + | func withdrawReferralReward (aN) = { | |
201 | + | let aO = value(getString(b)) | |
202 | + | let aP = if ((toString(ak.caller) == aO)) | |
187 | 203 | then true | |
188 | 204 | else o("permission denied") | |
189 | - | if (( | |
205 | + | if ((aP == aP)) | |
190 | 206 | then { | |
191 | - | let | |
192 | - | $Tuple2([ScriptTransfer( | |
207 | + | let aQ = fromBase58String(value(getString(c))) | |
208 | + | $Tuple2([ScriptTransfer(ak.caller, aN, aQ), ab(aO, aN, 0, 0, 0, ak.transactionId)], unit) | |
193 | 209 | } | |
194 | 210 | else throw("Strict value is not equal to itself.") | |
195 | 211 | } | |
196 | 212 | ||
197 | 213 | ||
198 | 214 | ||
199 | - | @Callable( | |
200 | - | func setManager ( | |
201 | - | let | |
202 | - | if (( | |
215 | + | @Callable(ak) | |
216 | + | func setManager (aR) = { | |
217 | + | let aS = aj(ak) | |
218 | + | if ((aS == aS)) | |
203 | 219 | then { | |
204 | - | let | |
205 | - | if (( | |
206 | - | then [StringEntry(e(), | |
220 | + | let aT = fromBase58String(aR) | |
221 | + | if ((aT == aT)) | |
222 | + | then [StringEntry(e(), aR)] | |
207 | 223 | else throw("Strict value is not equal to itself.") | |
208 | 224 | } | |
209 | 225 | else throw("Strict value is not equal to itself.") | |
211 | 227 | ||
212 | 228 | ||
213 | 229 | ||
214 | - | @Callable( | |
230 | + | @Callable(ak) | |
215 | 231 | func confirmManager () = { | |
216 | - | let | |
217 | - | let | |
232 | + | let aU = ai() | |
233 | + | let aV = if (isDefined(aU)) | |
218 | 234 | then true | |
219 | 235 | else o("no pending manager") | |
220 | - | if (( | |
236 | + | if ((aV == aV)) | |
221 | 237 | then { | |
222 | - | let | |
238 | + | let aW = if ((ak.callerPublicKey == value(aU))) | |
223 | 239 | then true | |
224 | 240 | else o("you are not pending manager") | |
225 | - | if (( | |
226 | - | then [StringEntry(d(), toBase58String(value( | |
241 | + | if ((aW == aW)) | |
242 | + | then [StringEntry(d(), toBase58String(value(aU))), DeleteEntry(e())] | |
227 | 243 | else throw("Strict value is not equal to itself.") | |
228 | 244 | } | |
229 | 245 | else throw("Strict value is not equal to itself.") | |
230 | 246 | } | |
231 | 247 | ||
232 | 248 | ||
233 | - | @Verifier( | |
234 | - | func | |
235 | - | let | |
236 | - | let | |
237 | - | if ($isInstanceOf( | |
249 | + | @Verifier(aX) | |
250 | + | func aY () = { | |
251 | + | let aZ = { | |
252 | + | let ag = af() | |
253 | + | if ($isInstanceOf(ag, "ByteVector")) | |
238 | 254 | then { | |
239 | - | let | |
240 | - | | |
255 | + | let am = ag | |
256 | + | am | |
241 | 257 | } | |
242 | - | else if ($isInstanceOf( | |
243 | - | then | |
258 | + | else if ($isInstanceOf(ag, "Unit")) | |
259 | + | then aX.senderPublicKey | |
244 | 260 | else throw("Match error") | |
245 | 261 | } | |
246 | - | sigVerify( | |
262 | + | sigVerify(aX.bodyBytes, aX.proofs[0], aZ) | |
247 | 263 | } | |
248 | 264 |
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__pendingManagerPublicKey" | |
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 | - | func N (O,P,Q) = makeString(["%s%s%s%s__history", O, P, Q], a) | |
58 | + | let N = makeString(["%s", "amountUnclaimed"], a) | |
59 | + | ||
60 | + | func O (P,Q,R) = makeString(["%s%s%s%s__history", P, Q, R], a) | |
59 | 61 | ||
60 | 62 | ||
61 | - | func | |
63 | + | func S () = split(q(L()), a) | |
62 | 64 | ||
63 | 65 | ||
64 | - | func | |
66 | + | func T () = split(q(M()), a) | |
65 | 67 | ||
66 | 68 | ||
67 | - | func | |
68 | - | let D = parseIntValue( | |
69 | - | let | |
70 | - | let F = parseIntValue( | |
71 | - | let | |
72 | - | let | |
73 | - | if ((0 > | |
69 | + | func U (r,V,W,X) = { | |
70 | + | let D = parseIntValue(V[l]) | |
71 | + | let Y = parseIntValue(V[m]) | |
72 | + | let F = parseIntValue(V[n]) | |
73 | + | let Z = (D + W) | |
74 | + | let aa = (Y - W) | |
75 | + | if ((0 > aa)) | |
74 | 76 | then throw("invalid math") | |
75 | - | else StringEntry(r, C(toString( | |
77 | + | else StringEntry(r, C(toString(Z), toString(aa), toString(X))) | |
76 | 78 | } | |
77 | 79 | ||
78 | 80 | ||
79 | - | func | |
81 | + | func ab (Q,H,I,ac,ad,ae) = StringEntry(O("claim", Q, toBase58String(ae)), G(H, I, ac, ad)) | |
80 | 82 | ||
81 | 83 | ||
82 | - | func | |
83 | - | let | |
84 | - | if ($isInstanceOf( | |
84 | + | func af () = { | |
85 | + | let ag = getString(d()) | |
86 | + | if ($isInstanceOf(ag, "String")) | |
85 | 87 | then { | |
86 | - | let | |
87 | - | fromBase58String( | |
88 | + | let ah = ag | |
89 | + | fromBase58String(ah) | |
88 | 90 | } | |
89 | - | else if ($isInstanceOf( | |
91 | + | else if ($isInstanceOf(ag, "Unit")) | |
90 | 92 | then unit | |
91 | 93 | else throw("Match error") | |
92 | 94 | } | |
93 | 95 | ||
94 | 96 | ||
95 | - | func | |
96 | - | let | |
97 | - | if ($isInstanceOf( | |
97 | + | func ai () = { | |
98 | + | let ag = getString(e()) | |
99 | + | if ($isInstanceOf(ag, "String")) | |
98 | 100 | then { | |
99 | - | let | |
100 | - | fromBase58String( | |
101 | + | let ah = ag | |
102 | + | fromBase58String(ah) | |
101 | 103 | } | |
102 | - | else if ($isInstanceOf( | |
104 | + | else if ($isInstanceOf(ag, "Unit")) | |
103 | 105 | then unit | |
104 | 106 | else throw("Match error") | |
105 | 107 | } | |
106 | 108 | ||
107 | 109 | ||
108 | - | func | |
109 | - | let | |
110 | - | let | |
111 | - | if ($isInstanceOf( | |
110 | + | func aj (ak) = { | |
111 | + | let al = o("permission denied") | |
112 | + | let ag = af() | |
113 | + | if ($isInstanceOf(ag, "ByteVector")) | |
112 | 114 | then { | |
113 | - | let | |
114 | - | if (( | |
115 | + | let am = ag | |
116 | + | if ((ak.callerPublicKey == am)) | |
115 | 117 | then true | |
116 | - | else | |
118 | + | else al | |
117 | 119 | } | |
118 | - | else if ($isInstanceOf( | |
119 | - | then if (( | |
120 | + | else if ($isInstanceOf(ag, "Unit")) | |
121 | + | then if ((ak.caller == this)) | |
120 | 122 | then true | |
121 | - | else | |
123 | + | else al | |
122 | 124 | else throw("Match error") | |
123 | 125 | } | |
124 | 126 | ||
125 | 127 | ||
126 | - | @Callable(aj) | |
127 | - | func constructor (t,am,an) = { | |
128 | - | let ao = (t + am) | |
128 | + | func an (ak,ao) = { | |
129 | + | let ap = S() | |
130 | + | let aq = parseIntValue(ap[f]) | |
131 | + | let ar = parseIntValue(ap[g]) | |
132 | + | let as = (aq + ar) | |
133 | + | let at = fromBase58String(ap[h]) | |
134 | + | let au = addressFromStringValue(ap[j]) | |
135 | + | let av = parseIntValue(ap[k]) | |
136 | + | let aw = T() | |
137 | + | let D = parseIntValue(aw[l]) | |
138 | + | let ax = parseIntValue(aw[m]) | |
139 | + | let F = parseIntValue(aw[n]) | |
140 | + | if ((ak.caller != au)) | |
141 | + | then throw("permissions denied") | |
142 | + | else if ((aq > height)) | |
143 | + | then throw(("Wait claim start block: " + toString(aq))) | |
144 | + | else { | |
145 | + | let K = if ((height > as)) | |
146 | + | then as | |
147 | + | else height | |
148 | + | let J = if ((F == 0)) | |
149 | + | then aq | |
150 | + | else F | |
151 | + | let I = (K - J) | |
152 | + | let ay = fraction(av, I, ar) | |
153 | + | let az = valueOrElse(getInteger(this, N), 0) | |
154 | + | let aA = (ay + az) | |
155 | + | let aB = if (if ((0 >= ao)) | |
156 | + | then true | |
157 | + | else (ao >= aA)) | |
158 | + | then aA | |
159 | + | else ao | |
160 | + | let aC = (aA - aB) | |
161 | + | $Tuple2([IntegerEntry(N, aC), ScriptTransfer(au, aB, at), U(M(), T(), aB, K), ab(toString(au), aB, I, J, K, ak.transactionId)], aB) | |
162 | + | } | |
163 | + | } | |
164 | + | ||
165 | + | ||
166 | + | @Callable(ak) | |
167 | + | func constructor (t,aD,aE) = { | |
168 | + | let aF = (t + aD) | |
129 | 169 | if (isDefined(getString(L()))) | |
130 | 170 | then throw("already initialized") | |
131 | - | else if ((size( | |
171 | + | else if ((size(ak.payments) != 1)) | |
132 | 172 | then throw("exactly 1 payment must be attached") | |
133 | - | else if (( | |
173 | + | else if ((ak.callerPublicKey != base58'2Cbd8ozG7A1RyRNC3nNnZgHu7Ru4K3JCfpyPkhqr9zxq')) | |
134 | 174 | then throw("not authorized") | |
135 | 175 | else { | |
136 | - | let | |
137 | - | let | |
138 | - | let | |
139 | - | let | |
140 | - | let | |
141 | - | let | |
142 | - | let | |
143 | - | [StringEntry(L(), z(t, | |
176 | + | let aG = valueOrErrorMessage(addressFromString(aE), "Invalid beneficiarAddress passed") | |
177 | + | let aH = value(ak.payments[0]) | |
178 | + | let aI = value(aH.assetId) | |
179 | + | let aJ = valueOrErrorMessage(assetInfo(aI), "fail to load ido asset info") | |
180 | + | let aK = toBase58String(aI) | |
181 | + | let aL = pow(10, 0, aJ.decimals, 0, 0, DOWN) | |
182 | + | let aM = aH.amount | |
183 | + | [StringEntry(L(), z(t, aD, aK, aL, toString(aG), aM)), StringEntry(M(), C("0", toString(aM), "0"))] | |
144 | 184 | } | |
145 | 185 | } | |
146 | 186 | ||
147 | 187 | ||
148 | 188 | ||
149 | - | @Callable(aj) | |
150 | - | func claim () = { | |
151 | - | let aw = R() | |
152 | - | let ax = parseIntValue(aw[f]) | |
153 | - | let ay = parseIntValue(aw[g]) | |
154 | - | let az = (ax + ay) | |
155 | - | let aA = aw[h] | |
156 | - | let aB = aw[j] | |
157 | - | let aC = parseIntValue(aw[k]) | |
158 | - | let P = aj.caller | |
159 | - | let aD = toString(P) | |
160 | - | let aE = S() | |
161 | - | let D = parseIntValue(aE[l]) | |
162 | - | let aF = parseIntValue(aE[m]) | |
163 | - | let F = parseIntValue(aE[n]) | |
164 | - | if ((aD != aB)) | |
165 | - | then throw("permissions denied") | |
166 | - | else if ((ax > height)) | |
167 | - | then throw(("Wait claim start block: " + toString(ax))) | |
168 | - | else { | |
169 | - | let K = if ((height > az)) | |
170 | - | then az | |
171 | - | else height | |
172 | - | let J = if ((F == 0)) | |
173 | - | then ax | |
174 | - | else F | |
175 | - | let I = (K - J) | |
176 | - | let aG = fraction(aC, I, ay) | |
177 | - | [ScriptTransfer(P, aG, fromBase58String(aA)), T(M(), S(), aG, K), aa(aD, aG, I, J, K, aj.transactionId)] | |
178 | - | } | |
179 | - | } | |
189 | + | @Callable(ak) | |
190 | + | func claimAmount (ao) = an(ak, ao) | |
180 | 191 | ||
181 | 192 | ||
182 | 193 | ||
183 | - | @Callable(aj) | |
184 | - | func withdrawReferralReward (aH) = { | |
185 | - | let aI = value(getString(b)) | |
186 | - | let aJ = if ((toString(aj.caller) == aI)) | |
194 | + | @Callable(ak) | |
195 | + | func claim () = an(ak, -1) | |
196 | + | ||
197 | + | ||
198 | + | ||
199 | + | @Callable(ak) | |
200 | + | func withdrawReferralReward (aN) = { | |
201 | + | let aO = value(getString(b)) | |
202 | + | let aP = if ((toString(ak.caller) == aO)) | |
187 | 203 | then true | |
188 | 204 | else o("permission denied") | |
189 | - | if (( | |
205 | + | if ((aP == aP)) | |
190 | 206 | then { | |
191 | - | let | |
192 | - | $Tuple2([ScriptTransfer( | |
207 | + | let aQ = fromBase58String(value(getString(c))) | |
208 | + | $Tuple2([ScriptTransfer(ak.caller, aN, aQ), ab(aO, aN, 0, 0, 0, ak.transactionId)], unit) | |
193 | 209 | } | |
194 | 210 | else throw("Strict value is not equal to itself.") | |
195 | 211 | } | |
196 | 212 | ||
197 | 213 | ||
198 | 214 | ||
199 | - | @Callable( | |
200 | - | func setManager ( | |
201 | - | let | |
202 | - | if (( | |
215 | + | @Callable(ak) | |
216 | + | func setManager (aR) = { | |
217 | + | let aS = aj(ak) | |
218 | + | if ((aS == aS)) | |
203 | 219 | then { | |
204 | - | let | |
205 | - | if (( | |
206 | - | then [StringEntry(e(), | |
220 | + | let aT = fromBase58String(aR) | |
221 | + | if ((aT == aT)) | |
222 | + | then [StringEntry(e(), aR)] | |
207 | 223 | else throw("Strict value is not equal to itself.") | |
208 | 224 | } | |
209 | 225 | else throw("Strict value is not equal to itself.") | |
210 | 226 | } | |
211 | 227 | ||
212 | 228 | ||
213 | 229 | ||
214 | - | @Callable( | |
230 | + | @Callable(ak) | |
215 | 231 | func confirmManager () = { | |
216 | - | let | |
217 | - | let | |
232 | + | let aU = ai() | |
233 | + | let aV = if (isDefined(aU)) | |
218 | 234 | then true | |
219 | 235 | else o("no pending manager") | |
220 | - | if (( | |
236 | + | if ((aV == aV)) | |
221 | 237 | then { | |
222 | - | let | |
238 | + | let aW = if ((ak.callerPublicKey == value(aU))) | |
223 | 239 | then true | |
224 | 240 | else o("you are not pending manager") | |
225 | - | if (( | |
226 | - | then [StringEntry(d(), toBase58String(value( | |
241 | + | if ((aW == aW)) | |
242 | + | then [StringEntry(d(), toBase58String(value(aU))), DeleteEntry(e())] | |
227 | 243 | else throw("Strict value is not equal to itself.") | |
228 | 244 | } | |
229 | 245 | else throw("Strict value is not equal to itself.") | |
230 | 246 | } | |
231 | 247 | ||
232 | 248 | ||
233 | - | @Verifier( | |
234 | - | func | |
235 | - | let | |
236 | - | let | |
237 | - | if ($isInstanceOf( | |
249 | + | @Verifier(aX) | |
250 | + | func aY () = { | |
251 | + | let aZ = { | |
252 | + | let ag = af() | |
253 | + | if ($isInstanceOf(ag, "ByteVector")) | |
238 | 254 | then { | |
239 | - | let | |
240 | - | | |
255 | + | let am = ag | |
256 | + | am | |
241 | 257 | } | |
242 | - | else if ($isInstanceOf( | |
243 | - | then | |
258 | + | else if ($isInstanceOf(ag, "Unit")) | |
259 | + | then aX.senderPublicKey | |
244 | 260 | else throw("Match error") | |
245 | 261 | } | |
246 | - | sigVerify( | |
262 | + | sigVerify(aX.bodyBytes, aX.proofs[0], aZ) | |
247 | 263 | } | |
248 | 264 |
github/deemru/w8io/169f3d6 67.92 ms ◑