tx · HuFRsRJWM3rHg3LRijdQWBybRKieZtpENAUpoivbdYQa 3MyTUSFjgJWsmoQEBpeF3N1bmtdr2XMS1uU: -0.01400000 Waves 2020.12.12 20:34 [1305756] smart account 3MyTUSFjgJWsmoQEBpeF3N1bmtdr2XMS1uU > SELF 0.00000000 Waves
{ "type": 13, "id": "HuFRsRJWM3rHg3LRijdQWBybRKieZtpENAUpoivbdYQa", "fee": 1400000, "feeAssetId": null, "timestamp": 1607794479366, "version": 1, "sender": "3MyTUSFjgJWsmoQEBpeF3N1bmtdr2XMS1uU", "senderPublicKey": "HNibf5h44NsszRrbctryRBWzFba3biyjEoufpZuraEha", "proofs": [ "2P8H6mQMBL4STQoB9asKwZDvLsdQ8QrfppDoQg7xr9UoZFazcVmXRzSTvbCECdx8VHFZVA1xPVDjtxFpnVLc23PA" ], "script": "base64:AAIEAAAAAAAAABkIAhIAEgMKAQgSAwoBCBIECgIIARIDCgEIAAAAHQAAAAAMYWRtaW5QdWJLZXkxAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAMYWRtaW5QdWJLZXkyAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAMYWRtaW5QdWJLZXkzAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIBCw4urkIHVb2qNxBs9qTjp1syq7kXV66XeA6G21smcfAAAAABJhZG1pblB1YktleVN0YWtpbmcBAAAAIBCw4urkIHVb2qNxBs9qTjp1syq7kXV66XeA6G21smcfAAAAABRrZXlTaGFyZVRva2Vuc0xvY2tlZAIAAAAaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAAAAAEGtleUN1cnJlbnRSZXdhcmQCAAAAD19jdXJyZW50X3Jld2FyZAAAAAAVa2V5UmV3YXJkVXBkYXRlSGVpZ2h0AgAAABVfcmV3YXJkX3VwZGF0ZV9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ABLAAAAAIFAAAABHBvb2wCAAAAAV8JAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAABNrZXlVc2VyTGFzdEludGVyZXN0BQAAAA91c2VyTmV3SW50ZXJlc3QJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACBQAAAARwb29sAgAAAAFfBQAAAA9rZXlMYXN0SW50ZXJlc3QFAAAAD2N1cnJlbnRJbnRlcmVzdAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIFAAAABHBvb2wCAAAAAV8FAAAAFWtleUxhc3RJbnRlcmVzdEhlaWdodAUAAAAGaGVpZ2h0CQAETAAAAAIJAQAAAAdSZWlzc3VlAAAAAwUAAAAEU1dPUAUAAAALY2xhaW1BbW91bnQGCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAALY2xhaW1BbW91bnQFAAAABFNXT1AFAAAAA25pbAAAAAA8N8TX", "chainId": 84, "height": 1305756, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8Wh6DDowwwMKUct7S2SyAaUGjsYLHDCoL59ae6zwt7tE Next: 4wsqEb4m3RVC8ZWeUG58V3FBCZ9P4yshGzsMdEsWhoyv Diff:
Old | New | Differences | |
---|---|---|---|
102 | 102 | then 0 | |
103 | 103 | else { | |
104 | 104 | let X = (S * (height - J)) | |
105 | - | (I + fraction(X, W, T)) | |
105 | + | if (true) | |
106 | + | then throw(toString(fraction(X, W, T))) | |
107 | + | else (I + fraction(X, W, T)) | |
106 | 108 | } | |
107 | 109 | else { | |
108 | 110 | let Y = (U * (F - J)) |
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_interest" | |
29 | 29 | ||
30 | 30 | let n = "SWOP_id" | |
31 | 31 | ||
32 | 32 | let o = "_address" | |
33 | 33 | ||
34 | 34 | let p = Address(base58'3N5F5DCmWNzT8ZPe1tBfiXaVYzWJriaJZ9E') | |
35 | 35 | ||
36 | 36 | let q = fromBase58String(getStringValue(this, n)) | |
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 | 46 | func u (v) = valueOrErrorMessage(getInteger(this, (v + f)), (("No data on the key: " + v) + f)) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func w (v) = fromBase58String(getStringValue(value(addressFromString(v)), "share_asset_id")) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func x (y,z) = { | |
53 | 53 | let A = value(assetInfo(y)).decimals | |
54 | 54 | let B = value(assetInfo(z)).decimals | |
55 | 55 | let C = ((B - A) + 8) | |
56 | 56 | pow(10, 0, C, 0, 0, HALFDOWN) | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func D (v) = { | |
61 | 61 | let E = valueOrErrorMessage(getInteger(p, (v + g)), (((("No data on the key: " + v) + g) + " at address ") + toString(p))) | |
62 | 62 | let F = valueOrErrorMessage(getInteger(p, (v + h)), (((("No data on the key: " + v) + h) + " at address ") + toString(p))) | |
63 | 63 | let G = valueOrErrorMessage(getInteger(p, (v + h)), (((("No data on the key: " + v) + i) + " at address ") + toString(p))) | |
64 | 64 | $Tuple3(E, F, G) | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func H (v) = { | |
69 | 69 | let I = valueOrErrorMessage(getInteger(this, (v + j)), (((("No data on the key: " + v) + "_") + v) + j)) | |
70 | 70 | let J = valueOrErrorMessage(getInteger(this, (v + k)), (("No data on the key: " + v) + k)) | |
71 | 71 | $Tuple2(J, I) | |
72 | 72 | } | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func K (v,L) = { | |
76 | 76 | let M = getInteger(this, (((v + "_") + toString(L)) + m)) | |
77 | 77 | let N = getInteger(this, (((v + "_") + toString(L)) + l)) | |
78 | 78 | let O = { | |
79 | 79 | let P = M | |
80 | 80 | if ($isInstanceOf(P, "Int")) | |
81 | 81 | then { | |
82 | 82 | let M = P | |
83 | 83 | M | |
84 | 84 | } | |
85 | 85 | else 0 | |
86 | 86 | } | |
87 | 87 | let Q = { | |
88 | 88 | let P = N | |
89 | 89 | if ($isInstanceOf(P, "Int")) | |
90 | 90 | then { | |
91 | 91 | let N = P | |
92 | 92 | N | |
93 | 93 | } | |
94 | 94 | else 0 | |
95 | 95 | } | |
96 | 96 | $Tuple2(O, Q) | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func R (J,F,I,S,T,U,V,W) = if ((J > F)) | |
101 | 101 | then if ((T == 0)) | |
102 | 102 | then 0 | |
103 | 103 | else { | |
104 | 104 | let X = (S * (height - J)) | |
105 | - | (I + fraction(X, W, T)) | |
105 | + | if (true) | |
106 | + | then throw(toString(fraction(X, W, T))) | |
107 | + | else (I + fraction(X, W, T)) | |
106 | 108 | } | |
107 | 109 | else { | |
108 | 110 | let Y = (U * (F - J)) | |
109 | 111 | let Z = (I + fraction(Y, W, T)) | |
110 | 112 | let X = (S * (height - F)) | |
111 | 113 | (Z + fraction(X, W, T)) | |
112 | 114 | } | |
113 | 115 | ||
114 | 116 | ||
115 | 117 | func aa (v,ab) = { | |
116 | 118 | let V = w(v) | |
117 | 119 | let W = x(q, V) | |
118 | 120 | let T = u(v) | |
119 | 121 | let ac = H(v) | |
120 | 122 | let J = ac._1 | |
121 | 123 | let I = ac._2 | |
122 | 124 | let ad = D(v) | |
123 | 125 | let S = ad._1 | |
124 | 126 | let F = ad._2 | |
125 | 127 | let U = ad._3 | |
126 | 128 | let ae = K(v, ab) | |
127 | 129 | let M = ae._1 | |
128 | 130 | let Q = ae._2 | |
129 | 131 | let af = R(J, F, I, S, T, U, V, W) | |
130 | 132 | let ag = fraction(Q, (af - M), W) | |
131 | 133 | let ah = af | |
132 | 134 | $Tuple4(ah, af, ag, Q) | |
133 | 135 | } | |
134 | 136 | ||
135 | 137 | ||
136 | 138 | func ai (v,aj) = { | |
137 | 139 | let ak = value(addressFromString(getStringValue(this, (v + o)))) | |
138 | 140 | let al = fromBase58String(getStringValue(ak, "share_asset_id")) | |
139 | 141 | if ((aj == al)) | |
140 | 142 | then true | |
141 | 143 | else false | |
142 | 144 | } | |
143 | 145 | ||
144 | 146 | ||
145 | 147 | @Callable(am) | |
146 | 148 | func init () = if (!(containsElement([a, b, c], am.callerPublicKey))) | |
147 | 149 | then throw("Only admin can call this function") | |
148 | 150 | else { | |
149 | 151 | let an = Issue("SWOP", "SWOP protocol token", 1, 8, true) | |
150 | 152 | let ao = calculateAssetId(an) | |
151 | 153 | [Issue("SWOP", "SWOP protocol token", 1, 8, true), StringEntry(n, toBase58String(ao))] | |
152 | 154 | } | |
153 | 155 | ||
154 | 156 | ||
155 | 157 | ||
156 | 158 | @Callable(am) | |
157 | 159 | func initPoolShareLocking (v) = if (!(containsElement([a, b, c], am.callerPublicKey))) | |
158 | 160 | then throw("Only admin can call this function") | |
159 | 161 | else { | |
160 | 162 | let ap = D(v) | |
161 | 163 | let E = ap._1 | |
162 | 164 | let F = ap._2 | |
163 | 165 | let U = ap._3 | |
164 | 166 | [StringEntry((v + o), v), IntegerEntry((v + f), 0), IntegerEntry((v + g), 0), IntegerEntry((v + j), 0), IntegerEntry((v + k), height), IntegerEntry((v + h), F), IntegerEntry((v + i), U)] | |
165 | 167 | } | |
166 | 168 | ||
167 | 169 | ||
168 | 170 | ||
169 | 171 | @Callable(am) | |
170 | 172 | func lockShareTokens (v) = { | |
171 | 173 | let aq = $Tuple2(am.payments[0].amount, am.payments[0].assetId) | |
172 | 174 | let ar = aq._1 | |
173 | 175 | let aj = aq._2 | |
174 | 176 | if (!(ai(v, aj))) | |
175 | 177 | then throw("Incorrect pmtAssetId") | |
176 | 178 | else { | |
177 | 179 | let as = aa(v, am.caller) | |
178 | 180 | let ah = as._1 | |
179 | 181 | let af = as._2 | |
180 | 182 | let ag = as._3 | |
181 | 183 | let Q = as._4 | |
182 | 184 | let at = (Q + ar) | |
183 | 185 | let au = u(v) | |
184 | 186 | let av = (au + ar) | |
185 | 187 | [IntegerEntry((((v + "_") + toString(am.caller)) + m), ah), IntegerEntry((((v + "_") + toString(am.caller)) + l), at), IntegerEntry((v + j), af), IntegerEntry((v + k), height), IntegerEntry((v + f), av)] | |
186 | 188 | } | |
187 | 189 | } | |
188 | 190 | ||
189 | 191 | ||
190 | 192 | ||
191 | 193 | @Callable(am) | |
192 | 194 | func withdrawShareTokens (v,aw) = { | |
193 | 195 | let ax = aa(v, am.caller) | |
194 | 196 | let ah = ax._1 | |
195 | 197 | let af = ax._2 | |
196 | 198 | let ag = ax._3 | |
197 | 199 | let Q = ax._4 | |
198 | 200 | if ((aw > Q)) | |
199 | 201 | then throw("Withdraw amount more then user locked amount") | |
200 | 202 | else { | |
201 | 203 | let at = (Q - aw) | |
202 | 204 | let ay = fromBase58String(getStringValue(this, (v + "share_asset_id"))) | |
203 | 205 | [IntegerEntry((((v + "_") + toString(am.caller)) + m), ah), IntegerEntry((((v + "_") + toString(am.caller)) + l), at), IntegerEntry((v + j), af), IntegerEntry((v + k), height), Reissue(q, ag, true), ScriptTransfer(am.caller, ag, q), ScriptTransfer(am.caller, aw, ay)] | |
204 | 206 | } | |
205 | 207 | } | |
206 | 208 | ||
207 | 209 | ||
208 | 210 | ||
209 | 211 | @Callable(am) | |
210 | 212 | func claim (v) = { | |
211 | 213 | let T = u(v) | |
212 | 214 | let az = H(v) | |
213 | 215 | let J = az._1 | |
214 | 216 | let I = az._2 | |
215 | 217 | let aA = D(v) | |
216 | 218 | let S = aA._1 | |
217 | 219 | let F = aA._2 | |
218 | 220 | let U = aA._3 | |
219 | 221 | let aB = aa(v, am.caller) | |
220 | 222 | let ah = aB._1 | |
221 | 223 | let af = aB._2 | |
222 | 224 | let ag = aB._3 | |
223 | 225 | let Q = aB._4 | |
224 | 226 | [IntegerEntry((((v + "_") + toString(am.caller)) + m), ah), IntegerEntry(((v + "_") + j), af), IntegerEntry(((v + "_") + k), height), Reissue(q, ag, true), ScriptTransfer(am.caller, ag, q)] | |
225 | 227 | } | |
226 | 228 | ||
227 | 229 |
github/deemru/w8io/169f3d6 66.25 ms ◑