tx · 4RAtu6JzNRmUH1oAWYzC2SJ44Te8gCxqU4r9ucTvFHYi

3MwaRUrm5DgxycS59Chuc5M4mTALaXckcZE:  -0.01400000 Waves

2022.09.01 16:36 [2210131] smart account 3MwaRUrm5DgxycS59Chuc5M4mTALaXckcZE > SELF 0.00000000 Waves

{ "type": 13, "id": "4RAtu6JzNRmUH1oAWYzC2SJ44Te8gCxqU4r9ucTvFHYi", "fee": 1400000, "feeAssetId": null, "timestamp": 1662033844292, "version": 2, "chainId": 84, "sender": "3MwaRUrm5DgxycS59Chuc5M4mTALaXckcZE", "senderPublicKey": "6zN2Sx7MfBEEuuVfQnxo8UdhrzateFEydfDYfGDX9L9h", "proofs": [ "2n29f769RskibucPAJs7Bax92e7SbVitvhR74DRwGcKjDChcTMeKSue1sTxundUZizua4bzWNGND1DwFiNcMTKEP" ], "script": "base64:AAIFAAAAAAAAADQIAhIDCgEIEgMKAQgSCAoGCAEEAQEBEgMKAQQSABIAEgASAwoBCBIGCgQICAEBEgQKAggIAAAAJAAAAAALa2V5TUFjY1BLZXkCAAAACW1hc3Rlcl9wawAAAAANa2V5QmFja3VwUEtleQIAAAAHYmFja19wawAAAAAId2Fyc1BLZXkCAAAAB3dhcnNfcGsBAAAABmdldFN0cgAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAgAAAAAAAAAADm1BY2NQS2V5U3RyaW5nCQEAAAAGZ2V0U3RyAAAAAQUAAAALa2V5TUFjY1BLZXkAAAAAEGJhY2t1cFBLZXlTdHJpbmcJAQAAAAZnZXRTdHIAAAABBQAAAA1rZXlCYWNrdXBQS2V5AQAAAAxnZXRCYWNrdXBLZXkAAAAAAwkAAAAAAAACBQAAABBiYWNrdXBQS2V5U3RyaW5nAgAAAAAIBQAAAAR0aGlzAAAABWJ5dGVzC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AJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAQAAAAxnZXRCYWNrdXBLZXkAAAAABAAAABBhbGxvd2VkQ29udHJhY3RzCQEAAAAHZ2V0U3RyQQAAAAIFAAAACG1BY2NBZGRyAgAAABFhbGxvd2VkX2NvbnRyYWN0cwQAAAAUYWxsb3dlZENvbnRyYWN0c0xpc3QJAAS1AAAAAgUAAAAQYWxsb3dlZENvbnRyYWN0cwIAAAABOwQAAAAKZGFwcFRvQ2FsbAkABCUAAAABCQAEJAAAAAEIBQAAAANpbnYAAAAEZEFwcAkBAAAAAiE9AAAAAgkABE8AAAACBQAAABRhbGxvd2VkQ29udHJhY3RzTGlzdAUAAAAKZGFwcFRvQ2FsbAUAAAAEdW5pdAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAnNzBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAIbUFjY1BLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAJtdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAACG1BY2NQS2V5B9lxDVg=", "height": 2210131, "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 callUnstakeProxy (aP,aQ) = if ((G(z) == true))
318+ then throw("Contract is locked now")
319+ else if (if ((aP != "unstakeNFT"))
320+ then (aP != "unstakeJackpot")
321+ else false)
322+ then throw("Bad function name")
323+ else if ((S.caller != this))
324+ then throw("Can be called only by the account")
325+ else {
326+ let af = N()
327+ let am = O()
328+ let aR = addressFromStringValue(H(l, "FARMING_DAPP"))
329+ let aS = invoke(aR, aP, [aQ], nil)
330+ if ((aS == aS))
331+ then {
332+ let aT = {
333+ let f = aS
334+ if ($isInstanceOf(f, "Int"))
335+ then {
336+ let R = f
337+ R
338+ }
339+ else throw("Error during unstaking")
340+ }
341+ let aD = F(A)
342+ let aE = F(B)
343+ let aC = fraction(aT, m, 100)
344+ let aF = (aT - aC)
345+ let aG = invoke(n, "topUpReward", nil, [AttachedPayment(af, aF)])
346+ if ((aG == aG))
347+ then [IntegerEntry(A, (aD + aC)), IntegerEntry(B, (aE + aC))]
348+ else throw("Strict value is not equal to itself.")
349+ }
350+ else throw("Strict value is not equal to itself.")
351+ }
352+
353+
354+@Verifier(aU)
355+func aV () = {
356+ let aW = (F(p) >= F(r))
357+ let f = aU
358+ if ($isInstanceOf(f, "InvokeScriptTransaction"))
359+ then {
360+ let aX = f
361+ let aY = ["stakeFarmTokens", "claimReward", "withdrawFarmTokens"]
362+ let aZ = ["callUnstakeProxy", "claimCeoFee", "lockInvestments", "unlockInvestments"]
363+ if (if ((aX.function == "unstakeNFT"))
364+ then true
365+ else (aX.function == "unstakeJackpot"))
366+ then throw("You cannot call these functions directly")
367+ else if (if (if ((addressFromRecipient(aX.dApp) == this))
368+ then (aX.function == "initMasterKey")
369+ else false)
370+ then (h == "")
371+ else false)
372+ then if (sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey))
373+ then true
374+ else sigVerify(aU.bodyBytes, aU.proofs[0], j())
375+ else if (if ((sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey) == false))
376+ then (sigVerify(aU.bodyBytes, aU.proofs[0], j()) == false)
377+ else false)
378+ then throw("_100")
379+ else if ((aW == false))
380+ then throw("_14")
381+ else if ((G(z) == true))
382+ then throw("_22")
383+ else if (if ((aX.fee > 900000))
384+ then true
385+ else (aX.feeAssetId != unit))
386+ then throw("_15")
387+ else if ((size(aX.payments) > 2))
388+ then throw("_17")
389+ else if (if ((addressFromRecipient(aX.dApp) == this))
390+ then containsElement(aZ, aX.function)
391+ else false)
392+ then if (sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey))
393+ then true
394+ else sigVerify(aU.bodyBytes, aU.proofs[0], j())
395+ else if (if ((addressFromRecipient(aX.dApp) == addressFromStringValue(M())))
396+ then (aX.function == "callMarketplaceProxy")
397+ else false)
398+ then if (sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey))
399+ then true
400+ else sigVerify(aU.bodyBytes, aU.proofs[0], j())
401+ else if (if ((addressFromRecipient(aX.dApp) == n))
402+ then containsElement(aY, aX.function)
403+ else false)
404+ then if (sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey))
405+ then true
406+ else sigVerify(aU.bodyBytes, aU.proofs[0], j())
407+ else {
408+ let ba = H(l, "allowed_contracts")
409+ let bb = split(ba, ";")
410+ let bc = toString(addressFromRecipient(aX.dApp))
411+ (indexOf(bb, bc) != unit)
412+ }
413+ }
414+ else if ($isInstanceOf(f, "SetScriptTransaction"))
415+ then {
416+ let bd = f
417+ sigVerify(aU.bodyBytes, aU.proofs[0], k)
418+ }
419+ else if ($isInstanceOf(f, "MassTransferTransaction"))
420+ then {
421+ let be = f
422+ sigVerify(aU.bodyBytes, aU.proofs[0], k)
423+ }
424+ else false
425+ }
426+

github/deemru/w8io/026f985 
31.84 ms