tx · 43FZvy6giziBb2gyS8b7MmoXiukiuouSXGY7VMdpd4W2 3P4AdC9J6MzTEi2LL9xgQN8EimMnbk4d6Nt: -0.00600000 Waves 2024.03.26 15:54 [4100954] smart account 3P4AdC9J6MzTEi2LL9xgQN8EimMnbk4d6Nt > SELF 0.00000000 Waves
{ "type": 13, "id": "43FZvy6giziBb2gyS8b7MmoXiukiuouSXGY7VMdpd4W2", "fee": 600000, "feeAssetId": null, "timestamp": 1711457702446, "version": 2, "chainId": 87, "sender": "3P4AdC9J6MzTEi2LL9xgQN8EimMnbk4d6Nt", "senderPublicKey": "33BMe2b9KpjJyCQXAKa3DKHqSBjB7q2mEJoiP17cRLAN", "proofs": [ "3W2RztZour9nqhKGGBsEVZpirpU1TGxoU6yuim4zKeWV36aUv6GoPgFuP31AFheio2k8ThbnqBTccGiLbj4DbLe6" ], "script": "base64:BgILCAISABIAEgMKAQEWAA1rZXlJbnZva2VOZXh0AgtpbnZva2UgbmV4dAACZDgAgMLXLwAIcHJvamVjdEIJAQdBZGRyZXNzAQEaAVdwbDRmhirDATU6QoAL3cOQY/2jW4AAS60AB3Jld2FyZHMJAQdBZGRyZXNzAQEaAVcvrvFwaQNjny0gZUUh1HEd/jGd8viso2IABmJvdW50eQkBB0FkZHJlc3MBARoBV7YjoAYajOBZFu8wyv9e/PgMkdYAnWtPwwAKc3RhYmxlc3dhcAkBB0FkZHJlc3MBARoBV3jqxOOJIQWZhtKvJn+sb9l421+tvLFYcAAHdnZ4dG5scAEgbK344M+K4XFHDQp5aAF0Yjjr7215882Ns7bGR8K4aQcABnN3YXZlcwEgCB/I9xYw7VHCKRvsrBqP/JBxHFk4LeshgbA3QfBF0UoACWJ1cm54dG5JZAEgJE91eWp+Mzm4+wz/hKlxXF7KLd4zoMRdafnqRBHsTFQADFNXQVZFU19zdGFrZQkBB0FkZHJlc3MBARoBV33Je5MUef/nUfGxSsdv+WodgJVHz1gjfgEIX2xvYWRJbnQCBGtleV8IZGVmYXVsdF8EByRt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2VOZXh0AD4APwMJAAACCQERQGV4dHJOYXRpdmUoMTA1MCkCBQR0aGlzBQ1rZXlJbnZva2VOZXh0AD8AQAMJAAACCQERQGV4dHJOYXRpdmUoMTA1MCkCBQR0aGlzBQ1rZXlJbnZva2VOZXh0AEAARgAABQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQELY2hhbmdlRW50cnkBCkludm9rZU5leHQDCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAhxhY2Nlc3Mgb25seSBieSBwcm9qZWN0IG93bmVyCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQ1rZXlJbnZva2VOZXh0BQpJbnZva2VOZXh0BQNuaWwAtFMekA==", "height": 4100954, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 24c4rXrnLqpFvGQipeANtc5vam1CVjXLVnHR4GdeCVJM Next: 9Z5YYPbViQ48JFJYzdV89Tf6x4jxHtQjkaFbcRe25qup Diff:
Old | New | Differences | |
---|---|---|---|
140 | 140 | then invoke(bounty, "payRewards", nil, nil) | |
141 | 141 | else unit | |
142 | 142 | if ((inv00 == inv00)) | |
143 | - | then { | |
144 | - | let usdc = if ((getIntegerValue(this, keyInvokeNext) == 70)) | |
145 | - | then invoke(stableswap, "claimAll ", nil, nil) | |
146 | - | else unit | |
147 | - | if ((usdc == usdc)) | |
148 | - | then { | |
149 | - | let usdt = if ((getIntegerValue(this, keyInvokeNext) == 70)) | |
150 | - | then invoke(stableswap, "claimAll ", nil, nil) | |
151 | - | else unit | |
152 | - | if ((usdt == usdt)) | |
153 | - | then [IntegerEntry(keyInvokeNext, if ((getIntegerValue(this, keyInvokeNext) == 0)) | |
154 | - | then 1 | |
155 | - | else if ((getIntegerValue(this, keyInvokeNext) == 1)) | |
156 | - | then if ((burnxtnwavesprice >= getIntegerValue(projectB, "ATH in wavelets"))) | |
157 | - | then 10 | |
158 | - | else 20 | |
159 | - | else if ((getIntegerValue(this, keyInvokeNext) == 10)) | |
160 | - | then 11 | |
161 | - | else if ((getIntegerValue(this, keyInvokeNext) == 11)) | |
162 | - | then 12 | |
163 | - | else if ((getIntegerValue(this, keyInvokeNext) == 12)) | |
164 | - | then 13 | |
165 | - | else if ((getIntegerValue(this, keyInvokeNext) == 13)) | |
166 | - | then 14 | |
167 | - | else if ((getIntegerValue(this, keyInvokeNext) == 14)) | |
168 | - | then 15 | |
169 | - | else if ((getIntegerValue(this, keyInvokeNext) == 15)) | |
170 | - | then 16 | |
171 | - | else if ((getIntegerValue(this, keyInvokeNext) == 16)) | |
172 | - | then 30 | |
173 | - | else if ((getIntegerValue(this, keyInvokeNext) == 20)) | |
174 | - | then 30 | |
175 | - | else if ((getIntegerValue(this, keyInvokeNext) == 30)) | |
176 | - | then 31 | |
177 | - | else if ((getIntegerValue(this, keyInvokeNext) == 31)) | |
178 | - | then 32 | |
179 | - | else if ((getIntegerValue(this, keyInvokeNext) == 32)) | |
180 | - | then 33 | |
181 | - | else if ((getIntegerValue(this, keyInvokeNext) == 33)) | |
182 | - | then 40 | |
183 | - | else if ((getIntegerValue(this, keyInvokeNext) == 34)) | |
184 | - | then 35 | |
185 | - | else if ((getIntegerValue(this, keyInvokeNext) == 40)) | |
186 | - | then 50 | |
187 | - | else if ((getIntegerValue(this, keyInvokeNext) == 50)) | |
188 | - | then 51 | |
189 | - | else if ((getIntegerValue(this, keyInvokeNext) == 51)) | |
190 | - | then 52 | |
191 | - | else if ((getIntegerValue(this, keyInvokeNext) == 52)) | |
192 | - | then 60 | |
193 | - | else if ((getIntegerValue(this, keyInvokeNext) == 60)) | |
194 | - | then 61 | |
195 | - | else if ((getIntegerValue(this, keyInvokeNext) == 61)) | |
196 | - | then 62 | |
197 | - | else if ((getIntegerValue(this, keyInvokeNext) == 62)) | |
198 | - | then 63 | |
199 | - | else if ((getIntegerValue(this, keyInvokeNext) == 63)) | |
200 | - | then 64 | |
201 | - | else if ((getIntegerValue(this, keyInvokeNext) == 64)) | |
202 | - | then 70 | |
203 | - | else 0)] | |
204 | - | else throw("Strict value is not equal to itself.") | |
205 | - | } | |
206 | - | else throw("Strict value is not equal to itself.") | |
207 | - | } | |
143 | + | then [IntegerEntry(keyInvokeNext, if ((getIntegerValue(this, keyInvokeNext) == 0)) | |
144 | + | then 1 | |
145 | + | else if ((getIntegerValue(this, keyInvokeNext) == 1)) | |
146 | + | then if ((burnxtnwavesprice >= getIntegerValue(projectB, "ATH in wavelets"))) | |
147 | + | then 10 | |
148 | + | else 20 | |
149 | + | else if ((getIntegerValue(this, keyInvokeNext) == 10)) | |
150 | + | then 11 | |
151 | + | else if ((getIntegerValue(this, keyInvokeNext) == 11)) | |
152 | + | then 12 | |
153 | + | else if ((getIntegerValue(this, keyInvokeNext) == 12)) | |
154 | + | then 13 | |
155 | + | else if ((getIntegerValue(this, keyInvokeNext) == 13)) | |
156 | + | then 14 | |
157 | + | else if ((getIntegerValue(this, keyInvokeNext) == 14)) | |
158 | + | then 15 | |
159 | + | else if ((getIntegerValue(this, keyInvokeNext) == 15)) | |
160 | + | then 16 | |
161 | + | else if ((getIntegerValue(this, keyInvokeNext) == 16)) | |
162 | + | then 30 | |
163 | + | else if ((getIntegerValue(this, keyInvokeNext) == 20)) | |
164 | + | then 30 | |
165 | + | else if ((getIntegerValue(this, keyInvokeNext) == 30)) | |
166 | + | then 31 | |
167 | + | else if ((getIntegerValue(this, keyInvokeNext) == 31)) | |
168 | + | then 32 | |
169 | + | else if ((getIntegerValue(this, keyInvokeNext) == 32)) | |
170 | + | then 33 | |
171 | + | else if ((getIntegerValue(this, keyInvokeNext) == 33)) | |
172 | + | then 40 | |
173 | + | else if ((getIntegerValue(this, keyInvokeNext) == 34)) | |
174 | + | then 35 | |
175 | + | else if ((getIntegerValue(this, keyInvokeNext) == 40)) | |
176 | + | then 50 | |
177 | + | else if ((getIntegerValue(this, keyInvokeNext) == 50)) | |
178 | + | then 51 | |
179 | + | else if ((getIntegerValue(this, keyInvokeNext) == 51)) | |
180 | + | then 52 | |
181 | + | else if ((getIntegerValue(this, keyInvokeNext) == 52)) | |
182 | + | then 60 | |
183 | + | else if ((getIntegerValue(this, keyInvokeNext) == 60)) | |
184 | + | then 61 | |
185 | + | else if ((getIntegerValue(this, keyInvokeNext) == 61)) | |
186 | + | then 62 | |
187 | + | else if ((getIntegerValue(this, keyInvokeNext) == 62)) | |
188 | + | then 63 | |
189 | + | else if ((getIntegerValue(this, keyInvokeNext) == 63)) | |
190 | + | then 64 | |
191 | + | else if ((getIntegerValue(this, keyInvokeNext) == 64)) | |
192 | + | then 70 | |
193 | + | else 0)] | |
208 | 194 | else throw("Strict value is not equal to itself.") | |
209 | 195 | } | |
210 | 196 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let keyInvokeNext = "invoke next" | |
5 | 5 | ||
6 | 6 | let d8 = 100000000 | |
7 | 7 | ||
8 | 8 | let projectB = Address(base58'3PCBL2vbjAVFbiCwmGsPmT6QdATutQnM8ov') | |
9 | 9 | ||
10 | 10 | let rewards = Address(base58'3P6H24XKLyRX8RKwyA5ARsChE6WhjDcVBiZ') | |
11 | 11 | ||
12 | 12 | let bounty = Address(base58'3PJXxPS9FxZsSLyP9gA47dSLwMinoFyfYFC') | |
13 | 13 | ||
14 | 14 | let stableswap = Address(base58'3PCxF4JryswYYp9mpUtE725wjTgvpBmp3M9') | |
15 | 15 | ||
16 | 16 | let vvxtnlp = base58'8KEtor9aSsSj38MknyAE7k1uRThHY9prAXgiE4D7WpyL' | |
17 | 17 | ||
18 | 18 | let swaves = base58'YiNbofFzC17jEHHCMwrRcpy9MrrjabMMLZxg8g5xmf7' | |
19 | 19 | ||
20 | 20 | let burnxtnId = base58'3SjxA2YLdfF9fTRbzLm9xFn27C6MW34W1YsdJ6Axefns' | |
21 | 21 | ||
22 | 22 | let SWAVES_stake = Address(base58'3PDPzZVLhN1EuzGy4xAxjjTVkawKDLEaHiV') | |
23 | 23 | ||
24 | 24 | func _loadInt (key_,default_) = match getInteger(SWAVES_stake, key_) { | |
25 | 25 | case a: Int => | |
26 | 26 | a | |
27 | 27 | case _ => | |
28 | 28 | default_ | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func _loadBigInt (key_,default_) = match getBinary(SWAVES_stake, key_) { | |
33 | 33 | case a: ByteVector => | |
34 | 34 | toBigInt(a) | |
35 | 35 | case _ => | |
36 | 36 | default_ | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | let WX_BURNXTN_WAVES = Address(base58'3P5vwLbXddLWpsRspftMxLuzfsjk3dLT3n5') | |
41 | 41 | ||
42 | 42 | let lastRate = _loadBigInt("LAST_RATE", toBigInt(1000000000000)) | |
43 | 43 | ||
44 | 44 | let currentRate = _loadBigInt("CURRENT_RATE", toBigInt(0)) | |
45 | 45 | ||
46 | 46 | let lastHeight = _loadInt("LAST_HEIGHT", 0) | |
47 | 47 | ||
48 | 48 | let targetHeight = min([_loadInt("TARGET_HEIGHT", 0), height]) | |
49 | 49 | ||
50 | 50 | let lastRateUpdated = (lastRate + (currentRate * toBigInt((targetHeight - lastHeight)))) | |
51 | 51 | ||
52 | 52 | let baseAmount = toInt(fraction(toBigInt(assetBalance(WX_BURNXTN_WAVES, swaves)), lastRateUpdated, toBigInt(1000000000000), FLOOR)) | |
53 | 53 | ||
54 | 54 | let wavesInWX = (wavesBalance(WX_BURNXTN_WAVES).regular + baseAmount) | |
55 | 55 | ||
56 | 56 | let burnxtnInWX = assetBalance(WX_BURNXTN_WAVES, burnxtnId) | |
57 | 57 | ||
58 | 58 | let burnxtnwavesprice = fraction(d8, wavesInWX, burnxtnInWX) | |
59 | 59 | ||
60 | 60 | @Callable(i) | |
61 | 61 | func invoker () = { | |
62 | 62 | let inv1 = invoke(Address(base58'3PAucbbumdUXmhzcR421zGiayphEdo2tRoz'), "withdraw", nil, nil) | |
63 | 63 | if ((inv1 == inv1)) | |
64 | 64 | then { | |
65 | 65 | let inv2 = if ((50 > assetBalance(Address(base58'3PAucbbumdUXmhzcR421zGiayphEdo2tRoz'), vvxtnlp))) | |
66 | 66 | then invoke(Address(base58'3PAkmJniMgnnAej5pYf2jFYkCbZow5pt9tr'), "withdraw", nil, nil) | |
67 | 67 | else invoke(Address(base58'3PAucbbumdUXmhzcR421zGiayphEdo2tRoz'), "importVVXTNLP", nil, nil) | |
68 | 68 | if ((inv2 == inv2)) | |
69 | 69 | then { | |
70 | 70 | let inv3 = invoke(Address(base58'3PPCzX2doZ7agBNuGSKqjrbdXgGEtE7CpQ3'), "withdraw", nil, nil) | |
71 | 71 | if ((inv3 == inv3)) | |
72 | 72 | then { | |
73 | 73 | let inv4 = invoke(Address(base58'3PHLhWPrs1mrpM1ZDUv1VmUnZRwchADJELc'), "withdraw", nil, nil) | |
74 | 74 | if ((inv4 == inv4)) | |
75 | 75 | then nil | |
76 | 76 | else throw("Strict value is not equal to itself.") | |
77 | 77 | } | |
78 | 78 | else throw("Strict value is not equal to itself.") | |
79 | 79 | } | |
80 | 80 | else throw("Strict value is not equal to itself.") | |
81 | 81 | } | |
82 | 82 | else throw("Strict value is not equal to itself.") | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | ||
87 | 87 | @Callable(i) | |
88 | 88 | func selector () = if (if ((i.caller != this)) | |
89 | 89 | then (i.caller != stableswap) | |
90 | 90 | else false) | |
91 | 91 | then throw("no access") | |
92 | 92 | else { | |
93 | 93 | let inv00 = if ((getIntegerValue(this, keyInvokeNext) == 0)) | |
94 | 94 | then invoke(projectB, "burnXTNandClaim", nil, nil) | |
95 | 95 | else if ((getIntegerValue(this, keyInvokeNext) == 1)) | |
96 | 96 | then invoke(projectB, "SURFandVVXTNLP", nil, nil) | |
97 | 97 | else if ((getIntegerValue(this, keyInvokeNext) == 10)) | |
98 | 98 | then invoke(projectB, "burnBURNXTN", nil, nil) | |
99 | 99 | else if ((getIntegerValue(this, keyInvokeNext) == 11)) | |
100 | 100 | then invoke(projectB, "grow1", nil, nil) | |
101 | 101 | else if ((getIntegerValue(this, keyInvokeNext) == 12)) | |
102 | 102 | then invoke(projectB, "grow2", nil, nil) | |
103 | 103 | else if ((getIntegerValue(this, keyInvokeNext) == 13)) | |
104 | 104 | then invoke(projectB, "grow3", nil, nil) | |
105 | 105 | else if ((getIntegerValue(this, keyInvokeNext) == 14)) | |
106 | 106 | then invoke(projectB, "grow4", nil, nil) | |
107 | 107 | else if ((getIntegerValue(this, keyInvokeNext) == 15)) | |
108 | 108 | then invoke(projectB, "grow5", nil, nil) | |
109 | 109 | else if ((getIntegerValue(this, keyInvokeNext) == 16)) | |
110 | 110 | then invoke(projectB, "grow6", nil, nil) | |
111 | 111 | else if ((getIntegerValue(this, keyInvokeNext) == 20)) | |
112 | 112 | then invoke(projectB, "pump", nil, nil) | |
113 | 113 | else if ((getIntegerValue(this, keyInvokeNext) == 30)) | |
114 | 114 | then invoke(projectB, "PZbbb", nil, nil) | |
115 | 115 | else if ((getIntegerValue(this, keyInvokeNext) == 31)) | |
116 | 116 | then invoke(projectB, "claimBBB", nil, nil) | |
117 | 117 | else if ((getIntegerValue(this, keyInvokeNext) == 32)) | |
118 | 118 | then invoke(projectB, "burnSURF", nil, nil) | |
119 | 119 | else if ((getIntegerValue(this, keyInvokeNext) == 33)) | |
120 | 120 | then invoke(projectB, "puzzlePZbbb", nil, nil) | |
121 | 121 | else if ((getIntegerValue(this, keyInvokeNext) == 34)) | |
122 | 122 | then invoke(projectB, "stakePZbbb", nil, nil) | |
123 | 123 | else if ((getIntegerValue(this, keyInvokeNext) == 40)) | |
124 | 124 | then invoke(projectB, "dEntry", nil, nil) | |
125 | 125 | else if ((getIntegerValue(this, keyInvokeNext) == 50)) | |
126 | 126 | then invoke(rewards, "claimRewards", nil, nil) | |
127 | 127 | else if ((getIntegerValue(this, keyInvokeNext) == 51)) | |
128 | 128 | then invoke(rewards, "loyaltyRewards", nil, nil) | |
129 | 129 | else if ((getIntegerValue(this, keyInvokeNext) == 52)) | |
130 | 130 | then invoke(rewards, "adminRewards", nil, nil) | |
131 | 131 | else if ((getIntegerValue(this, keyInvokeNext) == 60)) | |
132 | 132 | then invoke(bounty, "updateBalanceEntry", nil, nil) | |
133 | 133 | else if ((getIntegerValue(this, keyInvokeNext) == 61)) | |
134 | 134 | then invoke(bounty, "claim", nil, nil) | |
135 | 135 | else if ((getIntegerValue(this, keyInvokeNext) == 62)) | |
136 | 136 | then invoke(bounty, "swap", nil, nil) | |
137 | 137 | else if ((getIntegerValue(this, keyInvokeNext) == 63)) | |
138 | 138 | then invoke(bounty, "totalBalanceAll", nil, nil) | |
139 | 139 | else if ((getIntegerValue(this, keyInvokeNext) == 64)) | |
140 | 140 | then invoke(bounty, "payRewards", nil, nil) | |
141 | 141 | else unit | |
142 | 142 | if ((inv00 == inv00)) | |
143 | - | then { | |
144 | - | let usdc = if ((getIntegerValue(this, keyInvokeNext) == 70)) | |
145 | - | then invoke(stableswap, "claimAll ", nil, nil) | |
146 | - | else unit | |
147 | - | if ((usdc == usdc)) | |
148 | - | then { | |
149 | - | let usdt = if ((getIntegerValue(this, keyInvokeNext) == 70)) | |
150 | - | then invoke(stableswap, "claimAll ", nil, nil) | |
151 | - | else unit | |
152 | - | if ((usdt == usdt)) | |
153 | - | then [IntegerEntry(keyInvokeNext, if ((getIntegerValue(this, keyInvokeNext) == 0)) | |
154 | - | then 1 | |
155 | - | else if ((getIntegerValue(this, keyInvokeNext) == 1)) | |
156 | - | then if ((burnxtnwavesprice >= getIntegerValue(projectB, "ATH in wavelets"))) | |
157 | - | then 10 | |
158 | - | else 20 | |
159 | - | else if ((getIntegerValue(this, keyInvokeNext) == 10)) | |
160 | - | then 11 | |
161 | - | else if ((getIntegerValue(this, keyInvokeNext) == 11)) | |
162 | - | then 12 | |
163 | - | else if ((getIntegerValue(this, keyInvokeNext) == 12)) | |
164 | - | then 13 | |
165 | - | else if ((getIntegerValue(this, keyInvokeNext) == 13)) | |
166 | - | then 14 | |
167 | - | else if ((getIntegerValue(this, keyInvokeNext) == 14)) | |
168 | - | then 15 | |
169 | - | else if ((getIntegerValue(this, keyInvokeNext) == 15)) | |
170 | - | then 16 | |
171 | - | else if ((getIntegerValue(this, keyInvokeNext) == 16)) | |
172 | - | then 30 | |
173 | - | else if ((getIntegerValue(this, keyInvokeNext) == 20)) | |
174 | - | then 30 | |
175 | - | else if ((getIntegerValue(this, keyInvokeNext) == 30)) | |
176 | - | then 31 | |
177 | - | else if ((getIntegerValue(this, keyInvokeNext) == 31)) | |
178 | - | then 32 | |
179 | - | else if ((getIntegerValue(this, keyInvokeNext) == 32)) | |
180 | - | then 33 | |
181 | - | else if ((getIntegerValue(this, keyInvokeNext) == 33)) | |
182 | - | then 40 | |
183 | - | else if ((getIntegerValue(this, keyInvokeNext) == 34)) | |
184 | - | then 35 | |
185 | - | else if ((getIntegerValue(this, keyInvokeNext) == 40)) | |
186 | - | then 50 | |
187 | - | else if ((getIntegerValue(this, keyInvokeNext) == 50)) | |
188 | - | then 51 | |
189 | - | else if ((getIntegerValue(this, keyInvokeNext) == 51)) | |
190 | - | then 52 | |
191 | - | else if ((getIntegerValue(this, keyInvokeNext) == 52)) | |
192 | - | then 60 | |
193 | - | else if ((getIntegerValue(this, keyInvokeNext) == 60)) | |
194 | - | then 61 | |
195 | - | else if ((getIntegerValue(this, keyInvokeNext) == 61)) | |
196 | - | then 62 | |
197 | - | else if ((getIntegerValue(this, keyInvokeNext) == 62)) | |
198 | - | then 63 | |
199 | - | else if ((getIntegerValue(this, keyInvokeNext) == 63)) | |
200 | - | then 64 | |
201 | - | else if ((getIntegerValue(this, keyInvokeNext) == 64)) | |
202 | - | then 70 | |
203 | - | else 0)] | |
204 | - | else throw("Strict value is not equal to itself.") | |
205 | - | } | |
206 | - | else throw("Strict value is not equal to itself.") | |
207 | - | } | |
143 | + | then [IntegerEntry(keyInvokeNext, if ((getIntegerValue(this, keyInvokeNext) == 0)) | |
144 | + | then 1 | |
145 | + | else if ((getIntegerValue(this, keyInvokeNext) == 1)) | |
146 | + | then if ((burnxtnwavesprice >= getIntegerValue(projectB, "ATH in wavelets"))) | |
147 | + | then 10 | |
148 | + | else 20 | |
149 | + | else if ((getIntegerValue(this, keyInvokeNext) == 10)) | |
150 | + | then 11 | |
151 | + | else if ((getIntegerValue(this, keyInvokeNext) == 11)) | |
152 | + | then 12 | |
153 | + | else if ((getIntegerValue(this, keyInvokeNext) == 12)) | |
154 | + | then 13 | |
155 | + | else if ((getIntegerValue(this, keyInvokeNext) == 13)) | |
156 | + | then 14 | |
157 | + | else if ((getIntegerValue(this, keyInvokeNext) == 14)) | |
158 | + | then 15 | |
159 | + | else if ((getIntegerValue(this, keyInvokeNext) == 15)) | |
160 | + | then 16 | |
161 | + | else if ((getIntegerValue(this, keyInvokeNext) == 16)) | |
162 | + | then 30 | |
163 | + | else if ((getIntegerValue(this, keyInvokeNext) == 20)) | |
164 | + | then 30 | |
165 | + | else if ((getIntegerValue(this, keyInvokeNext) == 30)) | |
166 | + | then 31 | |
167 | + | else if ((getIntegerValue(this, keyInvokeNext) == 31)) | |
168 | + | then 32 | |
169 | + | else if ((getIntegerValue(this, keyInvokeNext) == 32)) | |
170 | + | then 33 | |
171 | + | else if ((getIntegerValue(this, keyInvokeNext) == 33)) | |
172 | + | then 40 | |
173 | + | else if ((getIntegerValue(this, keyInvokeNext) == 34)) | |
174 | + | then 35 | |
175 | + | else if ((getIntegerValue(this, keyInvokeNext) == 40)) | |
176 | + | then 50 | |
177 | + | else if ((getIntegerValue(this, keyInvokeNext) == 50)) | |
178 | + | then 51 | |
179 | + | else if ((getIntegerValue(this, keyInvokeNext) == 51)) | |
180 | + | then 52 | |
181 | + | else if ((getIntegerValue(this, keyInvokeNext) == 52)) | |
182 | + | then 60 | |
183 | + | else if ((getIntegerValue(this, keyInvokeNext) == 60)) | |
184 | + | then 61 | |
185 | + | else if ((getIntegerValue(this, keyInvokeNext) == 61)) | |
186 | + | then 62 | |
187 | + | else if ((getIntegerValue(this, keyInvokeNext) == 62)) | |
188 | + | then 63 | |
189 | + | else if ((getIntegerValue(this, keyInvokeNext) == 63)) | |
190 | + | then 64 | |
191 | + | else if ((getIntegerValue(this, keyInvokeNext) == 64)) | |
192 | + | then 70 | |
193 | + | else 0)] | |
208 | 194 | else throw("Strict value is not equal to itself.") | |
209 | 195 | } | |
210 | 196 | ||
211 | 197 | ||
212 | 198 | ||
213 | 199 | @Callable(i) | |
214 | 200 | func changeEntry (InvokeNext) = if ((i.caller != this)) | |
215 | 201 | then throw("access only by project owner") | |
216 | 202 | else [IntegerEntry(keyInvokeNext, InvokeNext)] | |
217 | 203 | ||
218 | 204 |
github/deemru/w8io/3ef1775 37.74 ms ◑