tx · FVg8nvqDPZ9bPpDH3yzeezxZSccLU6Em2Ti4AFZZC4wB 3MvenppyAqkqbJvpemDnU6P5dvSJ9fvRxRg: -0.01400000 Waves 2020.12.12 16:53 [1305530] smart account 3MvenppyAqkqbJvpemDnU6P5dvSJ9fvRxRg > SELF 0.00000000 Waves
{ "type": 13, "id": "FVg8nvqDPZ9bPpDH3yzeezxZSccLU6Em2Ti4AFZZC4wB", "fee": 1400000, "feeAssetId": null, "timestamp": 1607781257032, "version": 1, "sender": "3MvenppyAqkqbJvpemDnU6P5dvSJ9fvRxRg", "senderPublicKey": "38RJPSAs2g6F7P5zT5FJ6BAc1DyReFGja2vkw8rSz3ga", "proofs": [ "2dnuvbuao7W6SkXXHHJxEFFRUzxJq2bQtYfMiF4r3XtAYDDoMShdg4sqSu5A9rPQ5h4nM99cy1EK3aeK9EoNL1FE" ], "script": "base64:AAIEAAAAAAAAABcIAhIDCgEIEgMKAQgSBAoCCAESAwoBCAAAABsAAAAADGFkbWluUHViS2V5MQEAAAAgELDi6uQgdVvao3EGz2pOOnWzKruRdXrpd4DobbWyZx8AAAAADGFkbWluUHViS2V5MgEAAAAgELDi6uQgdVvao3EGz2pOOnWzKruRdXrpd4DobbWyZx8AAAAADGFkbWluUHViS2V5MwEAAAAgELDi6uQgdVvao3EGz2pOOnWzKruRdXrpd4DobbWyZx8AAAAAFGFkbWluUHViS2V5U3RhcnRTdG9wAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAASYWRtaW5QdWJLZXlTdGFraW5nAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAUa2V5U2hhcmVUb2tlbnNMb2NrZWQCAAAAGl90b3RhbF9zaGFyZV90b2tlbnNfbG9ja2VkAAAAABBrZXlDdXJyZW50UmV3YXJkAgAAAA9fY3VycmVudF9yZXdhcmQAAAAAFWtleVJld2FyZFVwZGF0ZUhlaWdodAIAAAAVX3Jld2FyZF91cGRhdGV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AAIFAAAABHBvb2wCAAAAAV8FAAAAFWtleUxhc3RJbnRlcmVzdEhlaWdodAUAAAAGaGVpZ2h0CQAETAAAAAIJAQAAAAdSZWlzc3VlAAAAAwUAAAAEU1dPUAUAAAALY2xhaW1BbW91bnQGCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAALY2xhaW1BbW91bnQFAAAABFNXT1AFAAAAA25pbAAAAACMN1MO", "chainId": 84, "height": 1305530, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HoRR45b7EJStnnyLM8yktXeWDZtAjkfopcuwfG19XUss Next: CdBzULvBmaCS2jxdw33rfQrF3NkFLz4Raok4wFyjEfV8 Diff:
Old | New | Differences | |
---|---|---|---|
43 | 43 | func t () = throw("DApp is already active") | |
44 | 44 | ||
45 | 45 | ||
46 | - | func u (v) = if (true) | |
47 | - | then throw((v + l)) | |
48 | - | else valueOrErrorMessage(getInteger(this, (v + l)), (("No data on the key: " + v) + f)) | |
46 | + | func u (v) = valueOrErrorMessage(getInteger(this, (v + f)), (("No data on the key: " + v) + f)) | |
49 | 47 | ||
50 | 48 | ||
51 | 49 | func w (v) = { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
5 | 5 | ||
6 | 6 | let b = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
7 | 7 | ||
8 | 8 | let c = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
9 | 9 | ||
10 | 10 | let d = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
11 | 11 | ||
12 | 12 | let e = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
13 | 13 | ||
14 | 14 | let f = "_total_share_tokens_locked" | |
15 | 15 | ||
16 | 16 | let g = "_current_reward" | |
17 | 17 | ||
18 | 18 | let h = "_reward_update_height" | |
19 | 19 | ||
20 | 20 | let i = "_previous_reward" | |
21 | 21 | ||
22 | 22 | let j = "_last_interest" | |
23 | 23 | ||
24 | 24 | let k = "_last_interest_height" | |
25 | 25 | ||
26 | 26 | let l = "_share_tokens_locked" | |
27 | 27 | ||
28 | 28 | let m = "_last_index" | |
29 | 29 | ||
30 | 30 | let n = "_address" | |
31 | 31 | ||
32 | 32 | let o = Address(base58'3N5F5DCmWNzT8ZPe1tBfiXaVYzWJriaJZ9E') | |
33 | 33 | ||
34 | 34 | let p = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
35 | 35 | ||
36 | 36 | let q = 100000000 | |
37 | 37 | ||
38 | 38 | let r = getIntegerValue(this, "height_reward_update") | |
39 | 39 | ||
40 | 40 | func s () = throw("Only admin can call this function") | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func t () = throw("DApp is already active") | |
44 | 44 | ||
45 | 45 | ||
46 | - | func u (v) = if (true) | |
47 | - | then throw((v + l)) | |
48 | - | else valueOrErrorMessage(getInteger(this, (v + l)), (("No data on the key: " + v) + f)) | |
46 | + | func u (v) = valueOrErrorMessage(getInteger(this, (v + f)), (("No data on the key: " + v) + f)) | |
49 | 47 | ||
50 | 48 | ||
51 | 49 | func w (v) = { | |
52 | 50 | let x = valueOrErrorMessage(getInteger(o, (v + g)), (((("No data on the key: " + v) + g) + " at address ") + toString(o))) | |
53 | 51 | let y = valueOrErrorMessage(getInteger(o, (v + h)), (((("No data on the key: " + v) + h) + " at address ") + toString(o))) | |
54 | 52 | let z = valueOrErrorMessage(getInteger(o, (v + h)), (((("No data on the key: " + v) + i) + " at address ") + toString(o))) | |
55 | 53 | $Tuple3(x, y, z) | |
56 | 54 | } | |
57 | 55 | ||
58 | 56 | ||
59 | 57 | func A (v) = { | |
60 | 58 | let B = valueOrErrorMessage(getInteger(this, (v + j)), (((("No data on the key: " + v) + "_") + v) + j)) | |
61 | 59 | let C = valueOrErrorMessage(getInteger(this, (v + k)), (("No data on the key: " + v) + k)) | |
62 | 60 | $Tuple2(C, B) | |
63 | 61 | } | |
64 | 62 | ||
65 | 63 | ||
66 | 64 | func D (v,E) = { | |
67 | 65 | let F = getInteger(this, (((v + "_") + toString(E)) + m)) | |
68 | 66 | let G = getInteger(this, (((v + "_") + toString(E)) + l)) | |
69 | 67 | let H = { | |
70 | 68 | let I = F | |
71 | 69 | if ($isInstanceOf(I, "Int")) | |
72 | 70 | then { | |
73 | 71 | let F = I | |
74 | 72 | F | |
75 | 73 | } | |
76 | 74 | else 0 | |
77 | 75 | } | |
78 | 76 | let J = { | |
79 | 77 | let I = G | |
80 | 78 | if ($isInstanceOf(I, "Int")) | |
81 | 79 | then { | |
82 | 80 | let G = I | |
83 | 81 | G | |
84 | 82 | } | |
85 | 83 | else 0 | |
86 | 84 | } | |
87 | 85 | $Tuple2(H, J) | |
88 | 86 | } | |
89 | 87 | ||
90 | 88 | ||
91 | 89 | func K (C,y,B,L,M,N) = if ((C > y)) | |
92 | 90 | then { | |
93 | 91 | let O = (L * (height - C)) | |
94 | 92 | ((B * q) + fraction(O, q, M)) | |
95 | 93 | } | |
96 | 94 | else { | |
97 | 95 | let P = (N * (y - C)) | |
98 | 96 | let Q = ((B * q) + fraction(P, q, M)) | |
99 | 97 | let O = (L * (height - y)) | |
100 | 98 | ((Q * q) + fraction(O, q, M)) | |
101 | 99 | } | |
102 | 100 | ||
103 | 101 | ||
104 | 102 | func R (v,S) = { | |
105 | 103 | let M = u(v) | |
106 | 104 | let T = A(v) | |
107 | 105 | let C = T._1 | |
108 | 106 | let B = T._2 | |
109 | 107 | let U = w(v) | |
110 | 108 | let L = U._1 | |
111 | 109 | let y = U._2 | |
112 | 110 | let N = U._3 | |
113 | 111 | let V = D(v, S) | |
114 | 112 | let F = V._1 | |
115 | 113 | let J = V._2 | |
116 | 114 | let W = K(C, y, B, L, M, N) | |
117 | 115 | let X = fraction(J, (W - (F * q)), q) | |
118 | 116 | let Y = W | |
119 | 117 | $Tuple4(Y, W, X, J) | |
120 | 118 | } | |
121 | 119 | ||
122 | 120 | ||
123 | 121 | func Z (v,aa) = { | |
124 | 122 | let ab = value(addressFromString(getStringValue(this, (v + n)))) | |
125 | 123 | let ac = fromBase58String(getStringValue(ab, "share_asset_id")) | |
126 | 124 | if ((aa == ac)) | |
127 | 125 | then true | |
128 | 126 | else false | |
129 | 127 | } | |
130 | 128 | ||
131 | 129 | ||
132 | 130 | @Callable(ad) | |
133 | 131 | func initPoolShareLocking (v) = if (!(containsElement([a, b, c], ad.callerPublicKey))) | |
134 | 132 | then throw("Only admin can call this function") | |
135 | 133 | else { | |
136 | 134 | let ae = w(v) | |
137 | 135 | let x = ae._1 | |
138 | 136 | let y = ae._2 | |
139 | 137 | let N = ae._3 | |
140 | 138 | [StringEntry((v + n), v), IntegerEntry((v + f), 0), IntegerEntry((v + g), 0), IntegerEntry((v + j), 0), IntegerEntry((v + k), height), IntegerEntry((v + h), y), IntegerEntry((v + i), N)] | |
141 | 139 | } | |
142 | 140 | ||
143 | 141 | ||
144 | 142 | ||
145 | 143 | @Callable(ad) | |
146 | 144 | func lockShareTokens (v) = { | |
147 | 145 | let af = $Tuple2(ad.payments[0].amount, ad.payments[0].assetId) | |
148 | 146 | let ag = af._1 | |
149 | 147 | let aa = af._2 | |
150 | 148 | if (!(Z(v, aa))) | |
151 | 149 | then throw("Incorrect pmtAssetId") | |
152 | 150 | else { | |
153 | 151 | let ah = R(v, ad.caller) | |
154 | 152 | let Y = ah._1 | |
155 | 153 | let W = ah._2 | |
156 | 154 | let X = ah._3 | |
157 | 155 | let J = ah._4 | |
158 | 156 | let ai = (J + ag) | |
159 | 157 | [IntegerEntry((((v + "_") + toString(ad.caller)) + m), Y), IntegerEntry((((v + "_") + toString(ad.caller)) + l), ai), IntegerEntry((v + j), W), IntegerEntry((v + k), height), Reissue(p, X, true), ScriptTransfer(ad.caller, X, p)] | |
160 | 158 | } | |
161 | 159 | } | |
162 | 160 | ||
163 | 161 | ||
164 | 162 | ||
165 | 163 | @Callable(ad) | |
166 | 164 | func withdrawShareTokens (v,aj) = { | |
167 | 165 | let ak = R(v, ad.caller) | |
168 | 166 | let Y = ak._1 | |
169 | 167 | let W = ak._2 | |
170 | 168 | let X = ak._3 | |
171 | 169 | let J = ak._4 | |
172 | 170 | if ((aj > J)) | |
173 | 171 | then throw("Withdraw amount more then user locked amount") | |
174 | 172 | else { | |
175 | 173 | let ai = (J - aj) | |
176 | 174 | let al = fromBase58String(getStringValue(this, (v + "share_asset_id"))) | |
177 | 175 | [IntegerEntry((((v + "_") + toString(ad.caller)) + m), Y), IntegerEntry((((v + "_") + toString(ad.caller)) + l), ai), IntegerEntry((v + j), W), IntegerEntry((v + k), height), Reissue(p, X, true), ScriptTransfer(ad.caller, X, p), ScriptTransfer(ad.caller, aj, al)] | |
178 | 176 | } | |
179 | 177 | } | |
180 | 178 | ||
181 | 179 | ||
182 | 180 | ||
183 | 181 | @Callable(ad) | |
184 | 182 | func claim (v) = { | |
185 | 183 | let M = u(v) | |
186 | 184 | let am = A(v) | |
187 | 185 | let C = am._1 | |
188 | 186 | let B = am._2 | |
189 | 187 | let an = w(v) | |
190 | 188 | let L = an._1 | |
191 | 189 | let y = an._2 | |
192 | 190 | let N = an._3 | |
193 | 191 | let ao = D(v, ad.caller) | |
194 | 192 | let F = ao._1 | |
195 | 193 | let G = ao._2 | |
196 | 194 | let W = K(C, y, B, L, M, N) | |
197 | 195 | let X = fraction(G, (W - (F * q)), q) | |
198 | 196 | let Y = W | |
199 | 197 | [IntegerEntry((((v + "_") + toString(ad.caller)) + m), Y), IntegerEntry(((v + "_") + j), W), IntegerEntry(((v + "_") + k), height), Reissue(p, X, true), ScriptTransfer(ad.caller, X, p)] | |
200 | 198 | } | |
201 | 199 | ||
202 | 200 |
github/deemru/w8io/169f3d6 41.38 ms ◑