tx · EcsFPwvCy187r5iHtX8XJg3vw74s3HnF4iqG6iiBLrMH

3N2zJ9gcknxYVnkfjEa2xvc2mTfyK1vRrgi:  -0.01400000 Waves

2022.08.31 11:30 [2208388] smart account 3N2zJ9gcknxYVnkfjEa2xvc2mTfyK1vRrgi > SELF 0.00000000 Waves

{ "type": 13, "id": "EcsFPwvCy187r5iHtX8XJg3vw74s3HnF4iqG6iiBLrMH", "fee": 1400000, "feeAssetId": null, "timestamp": 1661934675458, "version": 2, "chainId": 84, "sender": "3N2zJ9gcknxYVnkfjEa2xvc2mTfyK1vRrgi", "senderPublicKey": "23KZqrVT71NUaa8bJkgyB9SDNGouYfmKakefkaySDxj4", "proofs": [ "3CzSQntTMY1oHHzVvCXWB4PTEmFZwpM2FUAVwNHS3LHTNyrUcKaGsKhmYCPavj3k4DvmEkaVQEwaKqhDvKbNdmU5" ], "script": "base64:AAIFAAAAAAAAAD4IAhIDCgEIEgMKAQgSCAoGCAEEAQEBEgMKAQQSABIAEgASAwoBCBIGCgQICAEBEgMKAQgSAwoBCBIECgIICAAAACQAAAAAC2tleU1BY2NQS2V5AgAAAAltYXN0ZXJfcGsAAAAADWtleUJhY2t1cFBLZXkCAAAAB2JhY2tfcGsAAAAACHdhcnNQS2V5AgAAAAd3YXJzX3BrAQAAAAZnZXRTdHIAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgIAAAAAAAAAAA5tQWNjUEtleVN0cmluZwkBAAAABmdldFN0cgAAAAEFAAAAC2tleU1BY2NQS2V5AAAAABBiYWNrdXBQS2V5U3RyaW5nCQEAAAAGZ2V0U3RyAAAAAQUAAAANa2V5QmFja3VwUEtleQEAAAAMZ2V0QmFja3VwS2V5AAAAAAMJAAAAAAAAAgUAAAAQYmFja3VwUEtleVN0cmluZwIAAAAACAUAAAAE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MAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkBAAAADGdldEJhY2t1cEtleQAAAAAEAAAAEGFsbG93ZWRDb250cmFjdHMJAQAAAAdnZXRTdHJBAAAAAgUAAAAIbUFjY0FkZHICAAAAEWFsbG93ZWRfY29udHJhY3RzBAAAABRhbGxvd2VkQ29udHJhY3RzTGlzdAkABLUAAAACBQAAABBhbGxvd2VkQ29udHJhY3RzAgAAAAE7BAAAAApkYXBwVG9DYWxsCQAEJQAAAAEJAAQkAAAAAQgFAAAAA2ludgAAAARkQXBwCQEAAAACIT0AAAACCQAETwAAAAIFAAAAFGFsbG93ZWRDb250cmFjdHNMaXN0BQAAAApkYXBwVG9DYWxsBQAAAAR1bml0AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAACc3MFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAhtQWNjUEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAm10BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAIbUFjY1BLZXkHXIF7Pw==", "height": 2208388, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "master_pk"
5+
6+let b = "back_pk"
7+
8+let c = "wars_pk"
9+
10+func d (e) = {
11+ let f = getString(this, e)
12+ if ($isInstanceOf(f, "String"))
13+ then {
14+ let g = f
15+ g
16+ }
17+ else ""
18+ }
19+
20+
21+let h = d(a)
22+
23+let i = d(b)
24+
25+func j () = if ((i == ""))
26+ then this.bytes
27+ else fromBase58String(i)
28+
29+
30+let k = fromBase58String(h)
31+
32+let l = addressFromPublicKey(k)
33+
34+let m = getIntegerValue(l, (("f_" + toString(this)) + "_fee"))
35+
36+let n = addressFromStringValue(valueOrErrorMessage(getString(l, (("f_" + toString(this)) + "_stake_address")), (("f_" + toString(this)) + "_stake_address not defined")))
37+
38+let o = fromBase58String(valueOrErrorMessage(getString(l, c), (c + " not defined")))
39+
40+let p = "total_liquidity"
41+
42+let q = "INITIALIZED"
43+
44+let r = "LIQUIDITY_THRESHOLD"
45+
46+let s = "total_farming_reward"
47+
48+let t = "SHARE_ASSET_ID"
49+
50+let u = "INCUBATOR_DAPP"
51+
52+let v = "BREEDER_DAPP"
53+
54+let w = "FARMING_DAPP"
55+
56+let x = "MARKETPLACE_PROXY_DAPP"
57+
58+let y = "AUCTION_DAPP"
59+
60+let z = "LOCKED"
61+
62+let A = "ceo_collected_fee"
63+
64+let B = "ceo_fee_overall"
65+
66+let C = "locked_investments"
67+
68+let D = "total_compound"
69+
70+let E = "global_staked"
71+
72+func F (e) = {
73+ let f = getInteger(this, e)
74+ if ($isInstanceOf(f, "Int"))
75+ then {
76+ let g = f
77+ g
78+ }
79+ else 0
80+ }
81+
82+
83+func G (e) = {
84+ let f = getBoolean(this, e)
85+ if ($isInstanceOf(f, "Boolean"))
86+ then {
87+ let g = f
88+ g
89+ }
90+ else unit
91+ }
92+
93+
94+func H (I,J) = {
95+ let f = getString(I, J)
96+ if ($isInstanceOf(f, "String"))
97+ then {
98+ let g = f
99+ g
100+ }
101+ else ""
102+ }
103+
104+
105+func K (L,e) = {
106+ let f = getInteger(L, e)
107+ if ($isInstanceOf(f, "Int"))
108+ then {
109+ let g = f
110+ g
111+ }
112+ else 0
113+ }
114+
115+
116+func M () = H(l, x)
117+
118+
119+func N () = fromBase58String(getStringValue(l, "EGG_ASSET_ID"))
120+
121+
122+func O () = fromBase58String(d(t))
123+
124+
125+func P (Q) = {
126+ let f = Q
127+ if ($isInstanceOf(f, "Int"))
128+ then {
129+ let R = f
130+ R
131+ }
132+ else throw("wrong type, expected: Int")
133+ }
134+
135+
136+@Callable(S)
137+func initMasterKey (T) = if ((S.caller != this))
138+ then throw("You cannot do this action")
139+ else if ((h != ""))
140+ then throw("Master public key already set, you can't override!")
141+ else [StringEntry(a, T)]
142+
143+
144+
145+@Callable(S)
146+func initBackupKey (T) = if ((S.caller != addressFromPublicKey(k)))
147+ then throw("You cannot do this action")
148+ else [StringEntry(b, T)]
149+
150+
151+
152+@Callable(S)
153+func initCollectiveFarm (U,V,W,X,Y,Z) = if ((h == ""))
154+ then throw("First initiatie a master public key!")
155+ else if ((S.callerPublicKey != k))
156+ then throw("_1")
157+ else if ((G(q) != unit))
158+ then throw("_2")
159+ else if (if ((W == false))
160+ then if ((S.payments[0].amount != 10000000))
161+ then true
162+ else (S.payments[0].assetId != N())
163+ else false)
164+ then throw("_20")
165+ else {
166+ let aa = if (W)
167+ then Z
168+ else 10000000
169+ let ab = Issue(U, (("Team token for the \"" + U) + "\" collective farm"), aa, 8, true)
170+ let ac = if (W)
171+ then Y
172+ else 10000000
173+ let ad = if (W)
174+ then [IntegerEntry(s, X)]
175+ else nil
176+ ([StringEntry(t, toBase58String(calculateAssetId(ab))), BooleanEntry(q, true), IntegerEntry(p, ac), ab, ScriptTransfer(S.caller, aa, calculateAssetId(ab)), BooleanEntry(z, false), IntegerEntry(r, V)] ++ ad)
177+ }
178+
179+
180+
181+@Callable(S)
182+func setLock (ae) = if ((S.callerPublicKey != k))
183+ then throw("_21")
184+ else [BooleanEntry(z, ae)]
185+
186+
187+
188+@Callable(S)
189+func lockInvestments () = if ((S.caller != this))
190+ then throw("You cannot lock this contract")
191+ else [BooleanEntry(C, true)]
192+
193+
194+
195+@Callable(S)
196+func unlockInvestments () = if ((S.caller != this))
197+ then throw("You cannot lock this contract")
198+ else [BooleanEntry(C, false)]
199+
200+
201+
202+@Callable(S)
203+func provideLiquidity () = {
204+ let af = N()
205+ if (if (if ((S.callerPublicKey != o))
206+ then (S.callerPublicKey != k)
207+ else false)
208+ then (G(C) == true)
209+ else false)
210+ then throw("Contract is locked for investments by it's CEO. Please invest in another collective farm.")
211+ else if ((G(z) == true))
212+ then throw("_22")
213+ else if ((S.payments[0].assetId != af))
214+ then throw("_4")
215+ else if ((1000000 > S.payments[0].amount))
216+ then throw("Min amount to invest is 0.01 EGG")
217+ else {
218+ let Y = F(p)
219+ let ag = S.payments[0].amount
220+ let ah = fromBase58String(d(t))
221+ let ai = Reissue(O(), ag, true)
222+ let aj = (("account_" + toString(S.caller)) + "_participated")
223+ let ak = G(aj)
224+ $Tuple2([ai, ScriptTransfer(S.caller, ag, ah), IntegerEntry(p, (Y + value(S.payments[0].amount))), BooleanEntry(aj, true)], ag)
225+ }
226+ }
227+
228+
229+
230+@Callable(S)
231+func claimFarmingRewardProxy (al) = if ((S.callerPublicKey != k))
232+ then throw("_23")
233+ else {
234+ let af = N()
235+ let am = O()
236+ let an = addressFromStringValue(H(l, w))
237+ func ao (ap,aq) = {
238+ let ar = invoke(an, "claimReward", [aq], nil)
239+ if ((ar == ar))
240+ then {
241+ let f = ar
242+ if ($isInstanceOf(f, "Int"))
243+ then {
244+ let R = f
245+ (ap + R)
246+ }
247+ else throw("_5")
248+ }
249+ else throw("Strict value is not equal to itself.")
250+ }
251+
252+ let as = split(al, ";")
253+ let at = {
254+ let au = as
255+ let av = size(au)
256+ let aw = 0
257+ func ax (ay,az) = if ((az >= av))
258+ then ay
259+ else ao(ay, au[az])
260+
261+ func aA (ay,az) = if ((az >= av))
262+ then ay
263+ else throw("List size exceeds 10")
264+
265+ aA(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(aw, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
266+ }
267+ let aB = {
268+ let f = at
269+ if ($isInstanceOf(f, "Int"))
270+ then {
271+ let R = f
272+ R
273+ }
274+ else throw("_6")
275+ }
276+ let X = F(s)
277+ let aC = fraction(aB, m, 100)
278+ let aD = F(A)
279+ let aE = F(B)
280+ let aF = (aB - aC)
281+ let aG = invoke(n, "topUpReward", nil, [AttachedPayment(af, aF)])
282+ if ((aG == aG))
283+ then [IntegerEntry(s, (X + aF)), IntegerEntry(A, (aD + aC)), IntegerEntry(B, (aE + aC))]
284+ else throw("Strict value is not equal to itself.")
285+ }
286+
287+
288+
289+@Callable(S)
290+func claimCeoFee (aH,aI,aJ,aK) = if ((0 > aJ))
291+ then throw("Share 1 can't be negative")
292+ else if ((0 > aK))
293+ then throw("Share 2 can't be negative")
294+ else if (((aJ + aK) != 100))
295+ then throw("Sum of shares should be 100")
296+ else if ((G(z) == true))
297+ then throw("_22")
298+ else if ((S.caller == this))
299+ then {
300+ let aL = F(A)
301+ let aM = if ((aI == ""))
302+ then aL
303+ else fraction(aL, aJ, 100)
304+ let aN = if ((aI == ""))
305+ then 0
306+ else fraction(aL, aK, 100)
307+ let aO = if ((aI == ""))
308+ then nil
309+ else [ScriptTransfer(addressFromStringValue(aI), aN, N())]
310+ (aO ++ [ScriptTransfer(addressFromStringValue(aH), aM, N()), IntegerEntry(A, 0)])
311+ }
312+ else throw("Only manager can call the contract")
313+
314+
315+
316+@Callable(S)
317+func startLiquidation (aP) = throw("_7")
318+
319+
320+
321+@Callable(S)
322+func voteForLiquidation (aP) = throw("_7")
323+
324+
325+
326+@Callable(S)
327+func callUnstakeProxy (aQ,aR) = if ((G(z) == true))
328+ then throw("Contract is locked now")
329+ else if (if ((aQ != "unstakeNFT"))
330+ then (aQ != "unstakeJackpot")
331+ else false)
332+ then throw("Bad function name")
333+ else if ((S.caller != this))
334+ then throw("Can be called only by the account")
335+ else {
336+ let af = N()
337+ let am = O()
338+ let aS = addressFromStringValue(H(l, "FARMING_DAPP"))
339+ let aT = invoke(aS, aQ, [aR], nil)
340+ if ((aT == aT))
341+ then {
342+ let aU = {
343+ let f = aT
344+ if ($isInstanceOf(f, "Int"))
345+ then {
346+ let R = f
347+ R
348+ }
349+ else throw("Error during unstaking")
350+ }
351+ let aD = F(A)
352+ let aE = F(B)
353+ let aC = fraction(aU, m, 100)
354+ let aF = (aU - aC)
355+ let aG = invoke(n, "topUpReward", nil, [AttachedPayment(af, aF)])
356+ if ((aG == aG))
357+ then [IntegerEntry(A, (aD + aC)), IntegerEntry(B, (aE + aC))]
358+ else throw("Strict value is not equal to itself.")
359+ }
360+ else throw("Strict value is not equal to itself.")
361+ }
362+
363+
364+@Verifier(aV)
365+func aW () = {
366+ let aX = (F(p) >= F(r))
367+ let f = aV
368+ if ($isInstanceOf(f, "InvokeScriptTransaction"))
369+ then {
370+ let aY = f
371+ let aZ = ["stakeFarmTokens", "claimReward", "withdrawFarmTokens"]
372+ let ba = ["callUnstakeProxy", "claimCeoFee", "lockInvestments", "unlockInvestments"]
373+ if (if ((aY.function == "unstakeNFT"))
374+ then true
375+ else (aY.function == "unstakeJackpot"))
376+ then throw("You cannot call these functions directly")
377+ else if (if (if ((addressFromRecipient(aY.dApp) == this))
378+ then (aY.function == "initMasterKey")
379+ else false)
380+ then (h == "")
381+ else false)
382+ then if (sigVerify(aV.bodyBytes, aV.proofs[0], aV.senderPublicKey))
383+ then true
384+ else sigVerify(aV.bodyBytes, aV.proofs[0], j())
385+ else if (if ((sigVerify(aV.bodyBytes, aV.proofs[0], aV.senderPublicKey) == false))
386+ then (sigVerify(aV.bodyBytes, aV.proofs[0], j()) == false)
387+ else false)
388+ then throw("_100")
389+ else if ((aX == false))
390+ then throw("_14")
391+ else if ((G(z) == true))
392+ then throw("_22")
393+ else if (if ((aY.fee > 900000))
394+ then true
395+ else (aY.feeAssetId != unit))
396+ then throw("_15")
397+ else if ((size(aY.payments) > 2))
398+ then throw("_17")
399+ else if (if ((addressFromRecipient(aY.dApp) == this))
400+ then containsElement(ba, aY.function)
401+ else false)
402+ then if (sigVerify(aV.bodyBytes, aV.proofs[0], aV.senderPublicKey))
403+ then true
404+ else sigVerify(aV.bodyBytes, aV.proofs[0], j())
405+ else if (if ((addressFromRecipient(aY.dApp) == addressFromStringValue(M())))
406+ then (aY.function == "callMarketplaceProxy")
407+ else false)
408+ then if (sigVerify(aV.bodyBytes, aV.proofs[0], aV.senderPublicKey))
409+ then true
410+ else sigVerify(aV.bodyBytes, aV.proofs[0], j())
411+ else if (if ((addressFromRecipient(aY.dApp) == n))
412+ then containsElement(aZ, aY.function)
413+ else false)
414+ then if (sigVerify(aV.bodyBytes, aV.proofs[0], aV.senderPublicKey))
415+ then true
416+ else sigVerify(aV.bodyBytes, aV.proofs[0], j())
417+ else {
418+ let bb = H(l, "allowed_contracts")
419+ let bc = split(bb, ";")
420+ let bd = toString(addressFromRecipient(aY.dApp))
421+ (indexOf(bc, bd) != unit)
422+ }
423+ }
424+ else if ($isInstanceOf(f, "SetScriptTransaction"))
425+ then {
426+ let be = f
427+ sigVerify(aV.bodyBytes, aV.proofs[0], k)
428+ }
429+ else if ($isInstanceOf(f, "MassTransferTransaction"))
430+ then {
431+ let bf = f
432+ sigVerify(aV.bodyBytes, aV.proofs[0], k)
433+ }
434+ else false
435+ }
436+

github/deemru/w8io/026f985 
30.43 ms