tx · GTEonpwdJaU8CCGSqWb5un4B6xgZhQ1smkTBdLNzJMgt 3N6gW9pPZr3SAo2nBKpANYM19CZRva5Ygh8: -0.01400000 Waves 2021.10.12 17:52 [1743219] smart account 3N6gW9pPZr3SAo2nBKpANYM19CZRva5Ygh8 > SELF 0.00000000 Waves
{ "type": 13, "id": "GTEonpwdJaU8CCGSqWb5un4B6xgZhQ1smkTBdLNzJMgt", "fee": 1400000, "feeAssetId": null, "timestamp": 1634050376798, "version": 1, "sender": "3N6gW9pPZr3SAo2nBKpANYM19CZRva5Ygh8", "senderPublicKey": "HLqVgP5nfMJq44e9bWX6pKhhzghEdUHUExBcseZb28jy", "proofs": [ "hsS5Epi5RFapvTtkv16syo7CoTnj3ZjwyZeHjR3Cz4AC2bniqR2gihpbWP5UzE22FWXFqvMNJ9Md2whvUZADY5D" ], "script": "base64:AAIFAAAAAAAAAA4IAhIDCgEIEgASAwoBCAAAAB8AAAAAA1NFUAIAAAACX18AAAAABnNjYWxlOAAAAAAABfXhAAAAAAARcG9vbFN0YXRzUHJpY2VLZXkAAAAAAAAAAAQAAAAADmlkeFBvb2xBZGRyZXNzAAAAAAAAAAABAAAAAA1pZHhQb29sU3RhdHVzAAAAAAAAAAACAAAAABBpZHhQb29sTFBBc3NldElkAAAAAAAAAAADAAAAAA1pZHhBbXRBc3NldElkAAAAAAAAAAAEAAAAAA9pZHhQcmljZUFzc2V0SWQAAAAAAAAAAAUAAAAADmlkeEFtdEFzc2V0RGNtAAAAAAAAAAAGAAAAABBpZHhQcmljZUFzc2V0RGNtAAAAAAAAAAAHAAAAAA5pZHhJQW10QXNzZXRJZAAAAAAAAAAACAAAAAAQaWR4SVByaWNlQXNzZXRJZAAAAAAAAAAACQAAAAANaWR4TFBBc3NldERjbQAAAAAAAAAACgAAAAATaWR4TWF0Y2hlclB1YmxpY0tleQAAAAAAAAAACwEAAAAOa2V5UmVnaXN0ZXJQdXQAAAACAAAAC3Bvb2xBZGRyZXNzAAAABHR4SWQJAA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dWx0QW1vdW50QXNzZXRBbXQJAARMAAAAAgkBAAAAD0F0dGFjaGVkUGF5bWVudAAAAAIFAAAADHByaWNlQXNzZXRJZAUAAAATcmVzdWx0UHJpY2VBc3NldEFtdAUAAAADbmlsAwkAAAAAAAACBQAAAAVscFB1dAUAAAAFbHBQdXQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAAEWtleVJlZ2lzdGVySW52ZXN0AAAAAgUAAAALcG9vbEFkZHJlc3MJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAkBAAAAFGRhdGFJbnZlc3RBY3Rpb25JbmZvAAAABAUAAAAUcmVzdWx0QW1vdW50QXNzZXRBbXQFAAAAE3Jlc3VsdFByaWNlQXNzZXRBbXQFAAAABmhlaWdodAgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnGycKr", "chainId": 84, "height": 1743219, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ds9wmQq8Le5iHTvV8prKW1JhKahSJdL2Tt2jQ4xD46UT Next: 64zSRVXDZ6oyANU3aCNma2gjBca33pwWwT4a2irxo9sV Diff:
Old | New | Differences | |
---|---|---|---|
142 | 142 | let ag = if ((am == "WAVES")) | |
143 | 143 | then unit | |
144 | 144 | else fromBase58String(am) | |
145 | - | if (true) | |
146 | - | then throw(split(as, a)[c]) | |
147 | - | else { | |
148 | - | let az = invoke(addressFromStringValue(p), "putForFree", nil, [AttachedPayment(ay, aw), AttachedPayment(ag, ax)]) | |
149 | - | if ((az == az)) | |
150 | - | then [StringEntry(r(p, toBase58String(Z.transactionId)), O(aw, ax, height, lastBlock.timestamp))] | |
151 | - | else throw("Strict value is not equal to itself.") | |
152 | - | } | |
145 | + | let az = invoke(addressFromStringValue(p), "putForFree", [1000], [AttachedPayment(ay, aw), AttachedPayment(ag, ax)]) | |
146 | + | if ((az == az)) | |
147 | + | then [StringEntry(r(p, toBase58String(Z.transactionId)), O(aw, ax, height, lastBlock.timestamp))] | |
148 | + | else throw("Strict value is not equal to itself.") | |
153 | 149 | } | |
154 | 150 | else throw("Strict value is not equal to itself.") | |
155 | 151 | } |
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 = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 4 | |
9 | 9 | ||
10 | 10 | let d = 1 | |
11 | 11 | ||
12 | 12 | let e = 2 | |
13 | 13 | ||
14 | 14 | let f = 3 | |
15 | 15 | ||
16 | 16 | let g = 4 | |
17 | 17 | ||
18 | 18 | let h = 5 | |
19 | 19 | ||
20 | 20 | let i = 6 | |
21 | 21 | ||
22 | 22 | let j = 7 | |
23 | 23 | ||
24 | 24 | let k = 8 | |
25 | 25 | ||
26 | 26 | let l = 9 | |
27 | 27 | ||
28 | 28 | let m = 10 | |
29 | 29 | ||
30 | 30 | let n = 11 | |
31 | 31 | ||
32 | 32 | func o (p,q) = ((("%s%s%s__P__" + p) + "__") + q) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func r (p,q) = ((("%s%s%s__invest__" + p) + "__") + q) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func s (p,t) = ((("%s%s%s__total__" + p) + "__") + t) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func u () = "%s__factoryContract" | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func v (p,t) = (((("%s%s%s__" + p) + "__") + t) + "__slippageCumulative") | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func w () = "%s__factoryConfig" | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func x (y) = (("%s%s%s__" + y) + "__mappings__poolContract2PoolAssets") | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func z (A) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(A)) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func B (C,D) = (((("%d%d%s__" + C) + "__") + D) + "__config") | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func E () = "%s__shutdown" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func F (G) = ("%s%s__poolWeight__" + G) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | let H = addressFromStringValue(valueOrErrorMessage(getString(this, u()), "No Factory Acc found.")) | |
66 | 66 | ||
67 | 67 | func I (t) = if (!(isDefined(t))) | |
68 | 68 | then "WAVES" | |
69 | 69 | else t | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func J (K,L,M,N) = makeString(["%s%d%d%d", K, toString(L), toString(M), toString(N)], a) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func O (P,Q,M,N) = makeString(["%d%d%d%d", toString(P), toString(Q), toString(M), toString(N)], a) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func R (S) = { | |
79 | 79 | let T = S | |
80 | 80 | if ($isInstanceOf(T, "String")) | |
81 | 81 | then { | |
82 | 82 | let U = T | |
83 | 83 | U | |
84 | 84 | } | |
85 | 85 | else throw("fail to cast into String") | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func V (W,X,Y) = fraction(W, X, Y) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | @Callable(Z) | |
93 | 93 | func constructor (H) = if ((Z.caller != this)) | |
94 | 94 | then throw("permissions denied") | |
95 | 95 | else [StringEntry(u(), H)] | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | ||
99 | 99 | @Callable(Z) | |
100 | 100 | func put () = { | |
101 | 101 | let aa = toString(Z.caller) | |
102 | 102 | let ab = value(Z.payments[0]) | |
103 | 103 | let ac = if (!(isDefined(ab.assetId))) | |
104 | 104 | then "WAVES" | |
105 | 105 | else toBase58String(value(ab.assetId)) | |
106 | 106 | let ad = ab.amount | |
107 | 107 | let ae = split(valueOrErrorMessage(getString(H, x(aa)), "Invalid caller"), a) | |
108 | 108 | let af = parseIntValue(ae[1]) | |
109 | 109 | let ag = parseIntValue(ae[2]) | |
110 | 110 | let ah = valueOrErrorMessage(getString(H, z(af)), "Cannot find asset") | |
111 | 111 | let ai = valueOrErrorMessage(getString(H, z(ag)), "Cannot find asset") | |
112 | 112 | let aj = valueOrElse(getInteger(this, s(aa, ac)), 0) | |
113 | 113 | let ak = valueOrElse(getInteger(this, v(aa, ac)), 0) | |
114 | 114 | [StringEntry(o(aa, toBase58String(Z.transactionId)), J(ac, ad, height, lastBlock.timestamp)), IntegerEntry(s(aa, ac), (aj + ad)), IntegerEntry(v(aa, ac), (ak + ad))] | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | ||
119 | 119 | @Callable(Z) | |
120 | 120 | func invest (p) = { | |
121 | 121 | let ae = split(valueOrErrorMessage(getString(H, x(p)), "Invalid pool passed."), a) | |
122 | 122 | let al = valueOrErrorMessage(getString(H, z(parseIntValue(ae[1]))), "No asset mapping found") | |
123 | 123 | let am = valueOrErrorMessage(getString(H, z(parseIntValue(ae[2]))), "No asset mapping found") | |
124 | 124 | let an = split(valueOrErrorMessage(getString(H, B(ae[1], ae[2])), "No factory config found for pool assets."), a) | |
125 | 125 | let ao = parseIntValue(an[i]) | |
126 | 126 | let ap = parseIntValue(an[j]) | |
127 | 127 | let aq = V(valueOrElse(getInteger(this, s(p, al)), 0), b, ao) | |
128 | 128 | let ar = V(valueOrElse(getInteger(this, s(p, am)), 0), b, ap) | |
129 | 129 | let as = R(invoke(addressFromStringValue(p), "statsREADONLY", nil, nil)) | |
130 | 130 | if ((as == as)) | |
131 | 131 | then { | |
132 | 132 | let at = parseIntValue(split(as, a)[c]) | |
133 | 133 | let au = fraction(at, aq, b) | |
134 | 134 | let av = if ((au > ar)) | |
135 | 135 | then $Tuple2(fraction(ar, b, at), ar) | |
136 | 136 | else $Tuple2(aq, au) | |
137 | 137 | let aw = V(av._1, ao, b) | |
138 | 138 | let ax = V(av._2, ap, b) | |
139 | 139 | let ay = if ((al == "WAVES")) | |
140 | 140 | then unit | |
141 | 141 | else fromBase58String(al) | |
142 | 142 | let ag = if ((am == "WAVES")) | |
143 | 143 | then unit | |
144 | 144 | else fromBase58String(am) | |
145 | - | if (true) | |
146 | - | then throw(split(as, a)[c]) | |
147 | - | else { | |
148 | - | let az = invoke(addressFromStringValue(p), "putForFree", nil, [AttachedPayment(ay, aw), AttachedPayment(ag, ax)]) | |
149 | - | if ((az == az)) | |
150 | - | then [StringEntry(r(p, toBase58String(Z.transactionId)), O(aw, ax, height, lastBlock.timestamp))] | |
151 | - | else throw("Strict value is not equal to itself.") | |
152 | - | } | |
145 | + | let az = invoke(addressFromStringValue(p), "putForFree", [1000], [AttachedPayment(ay, aw), AttachedPayment(ag, ax)]) | |
146 | + | if ((az == az)) | |
147 | + | then [StringEntry(r(p, toBase58String(Z.transactionId)), O(aw, ax, height, lastBlock.timestamp))] | |
148 | + | else throw("Strict value is not equal to itself.") | |
153 | 149 | } | |
154 | 150 | else throw("Strict value is not equal to itself.") | |
155 | 151 | } | |
156 | 152 | ||
157 | 153 | ||
158 | 154 | @Verifier(aA) | |
159 | 155 | func aB () = sigVerify(aA.bodyBytes, aA.proofs[0], aA.senderPublicKey) | |
160 | 156 |
github/deemru/w8io/026f985 31.01 ms ◑