tx · 2X75fJjWWvjP73CWsKSA7WinFVexpqgyGvNyG8TLuWxv

3NAsFvuLwxz1iUtZ9fmhfmSN16r9NEsPqsh:  -0.01400000 Waves

2022.07.27 16:36 [2158285] smart account 3NAsFvuLwxz1iUtZ9fmhfmSN16r9NEsPqsh > SELF 0.00000000 Waves

{ "type": 13, "id": "2X75fJjWWvjP73CWsKSA7WinFVexpqgyGvNyG8TLuWxv", "fee": 1400000, "feeAssetId": null, "timestamp": 1658929025170, "version": 1, "sender": "3NAsFvuLwxz1iUtZ9fmhfmSN16r9NEsPqsh", "senderPublicKey": "33fpjdpM9FMu87RZKePniPardKqQXM96sm7VhAk3JEVQ", "proofs": [ "5QCcnweMZPuGpENHJAzBGD8297bmfpCpmze1k4jH2J3v4omXWRUanQ4c3h3wZVwhM8yWRkFBkYQFjwazqvYV1kRh" ], "script": "base64:BgIyCAISBQoDCAgIEgYKBAgICAISBQoDCAgEEgYKBAgIAQESAwoBCBIECgIICBIDCgEIEgAUAAlzZXBhcmF0b3ICAl9fABNrZXlCYWNrZW5kUHVibGljS2V5CQC5CQIJAMwIAgICJXMJAMwIAgIQYmFja2VuZFB1YmxpY0tleQUDbmlsBQlzZXBhcmF0b3IBG2tleUV4aXN0c1JlZmVycmVyVG9SZWZlcnJhbAMLcHJvZ3JhbU5hbWUPcmVmZXJyZXJBZGRyZXNzD3JlZmVycmFsQWRkcmVzcwkAuQkCCQDMCAICCCVzJXMlcyVzCQDMCAICGGV4aXN0c1JlZmVycmVyVG9SZWZlcnJhbAkAzAgCBQtwcm9ncmFtTmFtZQkAzAgCBQ9yZWZlcnJlckFkZHJlc3MJAMwIAgUPcmVmZXJyYWxBZGRyZXNzBQNuaWwFCXNlcGFyYXRvcgEKa2V5Q2xhaW1lZAILcHJvZ3JhbU5hbWUOY2xhaW1lckFkZHJlc3MJALkJAgkAzAgCAgglcyVzJXMlcwkAzAgCAgdjbGFpbWVkCQDMCAIFC3Byb2dyYW1OYW1lCQDMCAIFDmNsYWltZ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0JAMwIAgkBC0RlbGV0ZUVudHJ5AQkBGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQPdGFyZ2V0UHVibGljS2V5BAckbWF0Y2gwCQEWbWFuYWdlclB1YmxpY0tleU9yVW5pdAADCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQCcGsFByRtYXRjaDAFAnBrAwkAAQIFByRtYXRjaDACBFVuaXQIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUPdGFyZ2V0UHVibGljS2V50ZrN6w==", "chainId": 84, "height": 2158285, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Agy9bF4xqPBL3cMu2uDEkpo3LLg9xd5Lcda2KenXvhJk Next: 4FPZ3eT275eDr3LBWrwprJStuQMLjGjhnohVNgPQ8Jb6 Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
6-let b = makeString(["%s", "backendPulbicKey"], a)
6+let b = makeString(["%s", "backendPublicKey"], a)
77
88 func c (d,e,f) = makeString(["%s%s%s%s", "existsReferrerToReferral", d, e, f], a)
99
9999 let G = A(B)
100100 if ((G == G))
101101 then {
102- let H = if ((getBoolean(d) == unit))
102+ let H = if ((getBoolean(k(d)) == unit))
103103 then true
104104 else u("program name already exists")
105105 if ((H == H))
106- then $Tuple2([BooleanEntry(k(d), true), StringEntry(q(d), E), StringEntry(r(d), F)], unit)
107- else throw("Strict value is not equal to itself.")
108- }
109- else throw("Strict value is not equal to itself.")
110- }
111-
112-
113-
114-@Callable(B)
115-func createPair (d,e,f,I) = {
116- let J = if ((getString(c(d, e, f)) == unit))
117- then true
118- else u("pair already exists")
119- if ((J == J))
120- then {
121- let K = toBytes(makeString([d, e, f], ":"))
122- let L = toBytes(value(getString(b)))
123- let M = if (sigVerify(K, I, L))
124- then true
125- else u("bad signature")
126- if ((M == M))
127106 then {
128- let N = valueOrElse(getInteger(l(d, e)), 0)
129- let O = (N + 1)
130- $Tuple2([BooleanEntry(c(d, e, f), true), IntegerEntry(l(d, e), O)], unit)
107+ let I = if (!(contains(d, a)))
108+ then !(contains(d, " "))
109+ else false
110+ let J = if (I)
111+ then true
112+ else u("invalid program name")
113+ if ((J == J))
114+ then $Tuple2([BooleanEntry(k(d), true), StringEntry(q(d), E), StringEntry(r(d), F)], unit)
115+ else throw("Strict value is not equal to itself.")
131116 }
132117 else throw("Strict value is not equal to itself.")
133118 }
137122
138123
139124 @Callable(B)
140-func updateReferralActivity (d,f,P) = {
141- let F = value(getString(r(d)))
142- let Q = (getBoolean(n(d, f)) != unit)
143- let e = value(getString(j(d, f)))
144- let G = if ((toString(B.caller) == F))
125+func createPair (d,e,f,K) = {
126+ let J = if (valueOrElse(getBoolean(k(d)), false))
145127 then true
146- else u("permission denied")
147- if ((G == G))
128+ else u("program does not exist")
129+ if ((J == J))
148130 then {
149- let R = if ((Q == P))
150- then $Tuple2(nil, unit)
151- else {
152- let R = if ((P == true))
131+ let L = if ((getString(c(d, e, f)) == unit))
132+ then true
133+ else u("pair already exists")
134+ if ((L == L))
135+ then {
136+ let M = toBytes(makeString([d, e, f], ":"))
137+ let N = fromBase58String(value(getString(b)))
138+ let O = if (sigVerify(M, K, N))
139+ then true
140+ else u("bad signature")
141+ if ((O == O))
153142 then {
154- let S = (valueOrElse(getInteger(m(d, e)), 0) + 1)
155- $Tuple2([BooleanEntry(n(d, f), true), IntegerEntry(m(d, e), S)], unit)
143+ let P = valueOrElse(getInteger(l(d, e)), 0)
144+ let Q = (P + 1)
145+ $Tuple2([BooleanEntry(c(d, e, f), true), IntegerEntry(l(d, e), Q)], unit)
156146 }
157- else {
158- let S = (valueOrElse(getInteger(m(d, e)), 0) - 1)
159- $Tuple2([DeleteEntry(n(d, f)), IntegerEntry(m(d, e), S)], unit)
160- }
161- R
147+ else throw("Strict value is not equal to itself.")
162148 }
163- R
149+ else throw("Strict value is not equal to itself.")
164150 }
165151 else throw("Strict value is not equal to itself.")
166152 }
168154
169155
170156 @Callable(B)
171-func incUnclaimed (d,f,T,U) = {
157+func updateReferralActivity (d,f,R) = {
158+ let F = value(getString(r(d)))
159+ let S = (getBoolean(n(d, f)) != unit)
160+ let e = value(getString(j(d, f)))
161+ let G = if ((toString(B.caller) == F))
162+ then true
163+ else u("permission denied")
164+ if ((G == G))
165+ then {
166+ let T = if ((S == R))
167+ then $Tuple2(nil, unit)
168+ else {
169+ let T = if ((R == true))
170+ then {
171+ let U = (valueOrElse(getInteger(m(d, e)), 0) + 1)
172+ $Tuple2([BooleanEntry(n(d, f), true), IntegerEntry(m(d, e), U)], unit)
173+ }
174+ else {
175+ let U = (valueOrElse(getInteger(m(d, e)), 0) - 1)
176+ $Tuple2([DeleteEntry(n(d, f)), IntegerEntry(m(d, e), U)], unit)
177+ }
178+ T
179+ }
180+ T
181+ }
182+ else throw("Strict value is not equal to itself.")
183+ }
184+
185+
186+
187+@Callable(B)
188+func incUnclaimed (d,f,V,W) = {
172189 let F = value(getString(r(d)))
173190 let G = if ((toString(B.caller) == F))
174191 then true
176193 if ((G == G))
177194 then {
178195 let e = value(getString(j(d, f)))
179- let V = value(getInteger(i(d, e)))
180- let W = value(getInteger(i(d, f)))
181- let X = (V + T)
182- let Y = (W + U)
183- $Tuple2([IntegerEntry(g(d, f), X), IntegerEntry(i(d, f), Y)], unit)
196+ let X = value(getInteger(i(d, e)))
197+ let Y = value(getInteger(i(d, f)))
198+ let Z = (X + V)
199+ let aa = (Y + W)
200+ $Tuple2([IntegerEntry(g(d, f), Z), IntegerEntry(i(d, f), aa)], unit)
184201 }
185202 else throw("Strict value is not equal to itself.")
186203 }
189206
190207 @Callable(B)
191208 func claim (d) = {
192- let Z = value(getInteger(o(d)))
193- let aa = value(getInteger(g(d, toString(B.caller))))
194- let ab = value(getInteger(i(d, toString(B.caller))))
209+ let ab = value(getInteger(o(d)))
210+ let ac = value(getInteger(g(d, toString(B.caller))))
211+ let ad = value(getInteger(i(d, toString(B.caller))))
195212 let E = value(addressFromString(value(getString(q(d)))))
196- let ac = fromBase58String(value(getString(p(d))))
197- let ad = if ((ab > 0))
213+ let ae = fromBase58String(value(getString(p(d))))
214+ let af = if ((ad > 0))
198215 then true
199216 else u("nothing to claim")
200- if ((ad == ad))
217+ if ((af == af))
201218 then {
202- let ae = (aa + ab)
203- let af = (Z + ab)
204- let ag = value(assetBalance(this, ac))
205- if ((ag == ag))
219+ let ag = (ac + ad)
220+ let ah = (ab + ad)
221+ let ai = value(assetBalance(this, ae))
222+ if ((ai == ai))
206223 then {
207- let ah = invoke(E, "withdrawReferralReward", [ab], nil)
208- if ((ah == ah))
224+ let aj = invoke(E, "withdrawReferralReward", [ad], nil)
225+ if ((aj == aj))
209226 then {
210- let ai = value(assetBalance(this, ac))
211- if ((ai == ai))
227+ let ak = value(assetBalance(this, ae))
228+ if ((ak == ak))
212229 then {
213- let aj = (ai - ag)
214- if ((aj == aj))
230+ let al = (ak - ai)
231+ if ((al == al))
215232 then {
216- let ak = if ((aj == ab))
233+ let am = if ((al == ad))
217234 then true
218235 else u("insufficient balance on referral contract")
219- if ((ak == ak))
220- then $Tuple2([IntegerEntry(g(d, toString(B.caller)), ae), IntegerEntry(o(d), af), IntegerEntry(i(d, toString(B.caller)), 0), ScriptTransfer(B.caller, ab, ac)], unit)
236+ if ((am == am))
237+ then $Tuple2([IntegerEntry(g(d, toString(B.caller)), ag), IntegerEntry(o(d), ah), IntegerEntry(i(d, toString(B.caller)), 0), ScriptTransfer(B.caller, ad, ae)], unit)
221238 else throw("Strict value is not equal to itself.")
222239 }
223240 else throw("Strict value is not equal to itself.")
235252
236253 @Callable(B)
237254 func claimREADONLY (d,f) = {
238- let aa = value(getInteger(g(d, f)))
239- let ab = value(getInteger(i(d, f)))
240- let ae = (aa + ab)
241- $Tuple2(nil, ae)
255+ let ac = value(getInteger(g(d, f)))
256+ let ad = value(getInteger(i(d, f)))
257+ let ag = (ac + ad)
258+ $Tuple2(nil, ag)
242259 }
243260
244261
245262
246263 @Callable(B)
247-func setManager (al) = {
264+func setManager (an) = {
248265 let G = A(B)
249266 if ((G == G))
250267 then {
251- let am = fromBase58String(al)
252- if ((am == am))
253- then [StringEntry(t(), al)]
268+ let ao = fromBase58String(an)
269+ if ((ao == ao))
270+ then [StringEntry(t(), an)]
254271 else throw("Strict value is not equal to itself.")
255272 }
256273 else throw("Strict value is not equal to itself.")
260277
261278 @Callable(B)
262279 func confirmManager () = {
263- let an = z()
264- let ao = if (isDefined(an))
280+ let ap = z()
281+ let aq = if (isDefined(ap))
265282 then true
266283 else u("no pending manager")
267- if ((ao == ao))
284+ if ((aq == aq))
268285 then {
269- let ap = if ((B.callerPublicKey == value(an)))
286+ let ar = if ((B.callerPublicKey == value(ap)))
270287 then true
271288 else u("you are not pending manager")
272- if ((ap == ap))
273- then [StringEntry(s(), toBase58String(value(an))), DeleteEntry(t())]
289+ if ((ar == ar))
290+ then [StringEntry(s(), toBase58String(value(ap))), DeleteEntry(t())]
274291 else throw("Strict value is not equal to itself.")
275292 }
276293 else throw("Strict value is not equal to itself.")
277294 }
278295
279296
280-@Verifier(aq)
281-func ar () = {
282- let as = {
297+@Verifier(as)
298+func at () = {
299+ let au = {
283300 let x = w()
284301 if ($isInstanceOf(x, "ByteVector"))
285302 then {
287304 D
288305 }
289306 else if ($isInstanceOf(x, "Unit"))
290- then aq.senderPublicKey
307+ then as.senderPublicKey
291308 else throw("Match error")
292309 }
293- sigVerify(aq.bodyBytes, aq.proofs[0], as)
310+ sigVerify(as.bodyBytes, as.proofs[0], au)
294311 }
295312
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
6-let b = makeString(["%s", "backendPulbicKey"], a)
6+let b = makeString(["%s", "backendPublicKey"], a)
77
88 func c (d,e,f) = makeString(["%s%s%s%s", "existsReferrerToReferral", d, e, f], a)
99
1010
1111 func g (d,h) = makeString(["%s%s%s%s", "claimed", d, h], a)
1212
1313
1414 func i (d,h) = makeString(["%s%s%s%s", "unclaimed", d, h], a)
1515
1616
1717 func j (d,f) = makeString(["%s%s%s", "referrer", d, f], a)
1818
1919
2020 func k (d) = makeString(["%s%s", "programName", d], a)
2121
2222
2323 func l (d,e) = makeString(["%s%s%s", "totalReferralCount", d, e], a)
2424
2525
2626 func m (d,e) = makeString(["%s%s%s", "activeReferralCount", d, e], a)
2727
2828
2929 func n (d,f) = makeString(["%s%s%s", "activeReferral", d, f], a)
3030
3131
3232 func o (d) = makeString(["%s%s", "claimedTotal", d], a)
3333
3434
3535 func p (d) = makeString(["%s%s", "rewardAssetId", d], a)
3636
3737
3838 func q (d) = makeString(["%s%s", "treasuryContract", d], a)
3939
4040
4141 func r (d) = makeString(["%s%s", "implementationContract", d], a)
4242
4343
4444 func s () = "%s__managerPublicKey"
4545
4646
4747 func t () = "%s__pendingManagerPublicKey"
4848
4949
5050 func u (v) = throw(makeString(["referral.ride:", v], " "))
5151
5252
5353 func w () = {
5454 let x = getString(s())
5555 if ($isInstanceOf(x, "String"))
5656 then {
5757 let y = x
5858 fromBase58String(y)
5959 }
6060 else if ($isInstanceOf(x, "Unit"))
6161 then unit
6262 else throw("Match error")
6363 }
6464
6565
6666 func z () = {
6767 let x = getString(t())
6868 if ($isInstanceOf(x, "String"))
6969 then {
7070 let y = x
7171 fromBase58String(y)
7272 }
7373 else if ($isInstanceOf(x, "Unit"))
7474 then unit
7575 else throw("Match error")
7676 }
7777
7878
7979 func A (B) = {
8080 let C = u("permission denied")
8181 let x = w()
8282 if ($isInstanceOf(x, "ByteVector"))
8383 then {
8484 let D = x
8585 if ((B.callerPublicKey == D))
8686 then true
8787 else C
8888 }
8989 else if ($isInstanceOf(x, "Unit"))
9090 then if ((B.caller == this))
9191 then true
9292 else C
9393 else throw("Match error")
9494 }
9595
9696
9797 @Callable(B)
9898 func createReferralProgram (d,E,F) = {
9999 let G = A(B)
100100 if ((G == G))
101101 then {
102- let H = if ((getBoolean(d) == unit))
102+ let H = if ((getBoolean(k(d)) == unit))
103103 then true
104104 else u("program name already exists")
105105 if ((H == H))
106- then $Tuple2([BooleanEntry(k(d), true), StringEntry(q(d), E), StringEntry(r(d), F)], unit)
107- else throw("Strict value is not equal to itself.")
108- }
109- else throw("Strict value is not equal to itself.")
110- }
111-
112-
113-
114-@Callable(B)
115-func createPair (d,e,f,I) = {
116- let J = if ((getString(c(d, e, f)) == unit))
117- then true
118- else u("pair already exists")
119- if ((J == J))
120- then {
121- let K = toBytes(makeString([d, e, f], ":"))
122- let L = toBytes(value(getString(b)))
123- let M = if (sigVerify(K, I, L))
124- then true
125- else u("bad signature")
126- if ((M == M))
127106 then {
128- let N = valueOrElse(getInteger(l(d, e)), 0)
129- let O = (N + 1)
130- $Tuple2([BooleanEntry(c(d, e, f), true), IntegerEntry(l(d, e), O)], unit)
107+ let I = if (!(contains(d, a)))
108+ then !(contains(d, " "))
109+ else false
110+ let J = if (I)
111+ then true
112+ else u("invalid program name")
113+ if ((J == J))
114+ then $Tuple2([BooleanEntry(k(d), true), StringEntry(q(d), E), StringEntry(r(d), F)], unit)
115+ else throw("Strict value is not equal to itself.")
131116 }
132117 else throw("Strict value is not equal to itself.")
133118 }
134119 else throw("Strict value is not equal to itself.")
135120 }
136121
137122
138123
139124 @Callable(B)
140-func updateReferralActivity (d,f,P) = {
141- let F = value(getString(r(d)))
142- let Q = (getBoolean(n(d, f)) != unit)
143- let e = value(getString(j(d, f)))
144- let G = if ((toString(B.caller) == F))
125+func createPair (d,e,f,K) = {
126+ let J = if (valueOrElse(getBoolean(k(d)), false))
145127 then true
146- else u("permission denied")
147- if ((G == G))
128+ else u("program does not exist")
129+ if ((J == J))
148130 then {
149- let R = if ((Q == P))
150- then $Tuple2(nil, unit)
151- else {
152- let R = if ((P == true))
131+ let L = if ((getString(c(d, e, f)) == unit))
132+ then true
133+ else u("pair already exists")
134+ if ((L == L))
135+ then {
136+ let M = toBytes(makeString([d, e, f], ":"))
137+ let N = fromBase58String(value(getString(b)))
138+ let O = if (sigVerify(M, K, N))
139+ then true
140+ else u("bad signature")
141+ if ((O == O))
153142 then {
154- let S = (valueOrElse(getInteger(m(d, e)), 0) + 1)
155- $Tuple2([BooleanEntry(n(d, f), true), IntegerEntry(m(d, e), S)], unit)
143+ let P = valueOrElse(getInteger(l(d, e)), 0)
144+ let Q = (P + 1)
145+ $Tuple2([BooleanEntry(c(d, e, f), true), IntegerEntry(l(d, e), Q)], unit)
156146 }
157- else {
158- let S = (valueOrElse(getInteger(m(d, e)), 0) - 1)
159- $Tuple2([DeleteEntry(n(d, f)), IntegerEntry(m(d, e), S)], unit)
160- }
161- R
147+ else throw("Strict value is not equal to itself.")
162148 }
163- R
149+ else throw("Strict value is not equal to itself.")
164150 }
165151 else throw("Strict value is not equal to itself.")
166152 }
167153
168154
169155
170156 @Callable(B)
171-func incUnclaimed (d,f,T,U) = {
157+func updateReferralActivity (d,f,R) = {
158+ let F = value(getString(r(d)))
159+ let S = (getBoolean(n(d, f)) != unit)
160+ let e = value(getString(j(d, f)))
161+ let G = if ((toString(B.caller) == F))
162+ then true
163+ else u("permission denied")
164+ if ((G == G))
165+ then {
166+ let T = if ((S == R))
167+ then $Tuple2(nil, unit)
168+ else {
169+ let T = if ((R == true))
170+ then {
171+ let U = (valueOrElse(getInteger(m(d, e)), 0) + 1)
172+ $Tuple2([BooleanEntry(n(d, f), true), IntegerEntry(m(d, e), U)], unit)
173+ }
174+ else {
175+ let U = (valueOrElse(getInteger(m(d, e)), 0) - 1)
176+ $Tuple2([DeleteEntry(n(d, f)), IntegerEntry(m(d, e), U)], unit)
177+ }
178+ T
179+ }
180+ T
181+ }
182+ else throw("Strict value is not equal to itself.")
183+ }
184+
185+
186+
187+@Callable(B)
188+func incUnclaimed (d,f,V,W) = {
172189 let F = value(getString(r(d)))
173190 let G = if ((toString(B.caller) == F))
174191 then true
175192 else u("permission denied")
176193 if ((G == G))
177194 then {
178195 let e = value(getString(j(d, f)))
179- let V = value(getInteger(i(d, e)))
180- let W = value(getInteger(i(d, f)))
181- let X = (V + T)
182- let Y = (W + U)
183- $Tuple2([IntegerEntry(g(d, f), X), IntegerEntry(i(d, f), Y)], unit)
196+ let X = value(getInteger(i(d, e)))
197+ let Y = value(getInteger(i(d, f)))
198+ let Z = (X + V)
199+ let aa = (Y + W)
200+ $Tuple2([IntegerEntry(g(d, f), Z), IntegerEntry(i(d, f), aa)], unit)
184201 }
185202 else throw("Strict value is not equal to itself.")
186203 }
187204
188205
189206
190207 @Callable(B)
191208 func claim (d) = {
192- let Z = value(getInteger(o(d)))
193- let aa = value(getInteger(g(d, toString(B.caller))))
194- let ab = value(getInteger(i(d, toString(B.caller))))
209+ let ab = value(getInteger(o(d)))
210+ let ac = value(getInteger(g(d, toString(B.caller))))
211+ let ad = value(getInteger(i(d, toString(B.caller))))
195212 let E = value(addressFromString(value(getString(q(d)))))
196- let ac = fromBase58String(value(getString(p(d))))
197- let ad = if ((ab > 0))
213+ let ae = fromBase58String(value(getString(p(d))))
214+ let af = if ((ad > 0))
198215 then true
199216 else u("nothing to claim")
200- if ((ad == ad))
217+ if ((af == af))
201218 then {
202- let ae = (aa + ab)
203- let af = (Z + ab)
204- let ag = value(assetBalance(this, ac))
205- if ((ag == ag))
219+ let ag = (ac + ad)
220+ let ah = (ab + ad)
221+ let ai = value(assetBalance(this, ae))
222+ if ((ai == ai))
206223 then {
207- let ah = invoke(E, "withdrawReferralReward", [ab], nil)
208- if ((ah == ah))
224+ let aj = invoke(E, "withdrawReferralReward", [ad], nil)
225+ if ((aj == aj))
209226 then {
210- let ai = value(assetBalance(this, ac))
211- if ((ai == ai))
227+ let ak = value(assetBalance(this, ae))
228+ if ((ak == ak))
212229 then {
213- let aj = (ai - ag)
214- if ((aj == aj))
230+ let al = (ak - ai)
231+ if ((al == al))
215232 then {
216- let ak = if ((aj == ab))
233+ let am = if ((al == ad))
217234 then true
218235 else u("insufficient balance on referral contract")
219- if ((ak == ak))
220- then $Tuple2([IntegerEntry(g(d, toString(B.caller)), ae), IntegerEntry(o(d), af), IntegerEntry(i(d, toString(B.caller)), 0), ScriptTransfer(B.caller, ab, ac)], unit)
236+ if ((am == am))
237+ then $Tuple2([IntegerEntry(g(d, toString(B.caller)), ag), IntegerEntry(o(d), ah), IntegerEntry(i(d, toString(B.caller)), 0), ScriptTransfer(B.caller, ad, ae)], unit)
221238 else throw("Strict value is not equal to itself.")
222239 }
223240 else throw("Strict value is not equal to itself.")
224241 }
225242 else throw("Strict value is not equal to itself.")
226243 }
227244 else throw("Strict value is not equal to itself.")
228245 }
229246 else throw("Strict value is not equal to itself.")
230247 }
231248 else throw("Strict value is not equal to itself.")
232249 }
233250
234251
235252
236253 @Callable(B)
237254 func claimREADONLY (d,f) = {
238- let aa = value(getInteger(g(d, f)))
239- let ab = value(getInteger(i(d, f)))
240- let ae = (aa + ab)
241- $Tuple2(nil, ae)
255+ let ac = value(getInteger(g(d, f)))
256+ let ad = value(getInteger(i(d, f)))
257+ let ag = (ac + ad)
258+ $Tuple2(nil, ag)
242259 }
243260
244261
245262
246263 @Callable(B)
247-func setManager (al) = {
264+func setManager (an) = {
248265 let G = A(B)
249266 if ((G == G))
250267 then {
251- let am = fromBase58String(al)
252- if ((am == am))
253- then [StringEntry(t(), al)]
268+ let ao = fromBase58String(an)
269+ if ((ao == ao))
270+ then [StringEntry(t(), an)]
254271 else throw("Strict value is not equal to itself.")
255272 }
256273 else throw("Strict value is not equal to itself.")
257274 }
258275
259276
260277
261278 @Callable(B)
262279 func confirmManager () = {
263- let an = z()
264- let ao = if (isDefined(an))
280+ let ap = z()
281+ let aq = if (isDefined(ap))
265282 then true
266283 else u("no pending manager")
267- if ((ao == ao))
284+ if ((aq == aq))
268285 then {
269- let ap = if ((B.callerPublicKey == value(an)))
286+ let ar = if ((B.callerPublicKey == value(ap)))
270287 then true
271288 else u("you are not pending manager")
272- if ((ap == ap))
273- then [StringEntry(s(), toBase58String(value(an))), DeleteEntry(t())]
289+ if ((ar == ar))
290+ then [StringEntry(s(), toBase58String(value(ap))), DeleteEntry(t())]
274291 else throw("Strict value is not equal to itself.")
275292 }
276293 else throw("Strict value is not equal to itself.")
277294 }
278295
279296
280-@Verifier(aq)
281-func ar () = {
282- let as = {
297+@Verifier(as)
298+func at () = {
299+ let au = {
283300 let x = w()
284301 if ($isInstanceOf(x, "ByteVector"))
285302 then {
286303 let D = x
287304 D
288305 }
289306 else if ($isInstanceOf(x, "Unit"))
290- then aq.senderPublicKey
307+ then as.senderPublicKey
291308 else throw("Match error")
292309 }
293- sigVerify(aq.bodyBytes, aq.proofs[0], as)
310+ sigVerify(as.bodyBytes, as.proofs[0], au)
294311 }
295312

github/deemru/w8io/169f3d6 
75.52 ms