tx · 3PyELUHc6NJVeShYa92Ja6mg5CwmvweFoUX3TRrCLnyx 3NAQoM4AUNeqgrhrh2RmVACXAF18Lw3Wysc: -0.01400000 Waves 2021.09.17 18:17 [1707221] smart account 3NAQoM4AUNeqgrhrh2RmVACXAF18Lw3Wysc > SELF 0.00000000 Waves
{ "type": 13, "id": "3PyELUHc6NJVeShYa92Ja6mg5CwmvweFoUX3TRrCLnyx", "fee": 1400000, "feeAssetId": null, "timestamp": 1631891921500, "version": 2, "chainId": 84, "sender": "3NAQoM4AUNeqgrhrh2RmVACXAF18Lw3Wysc", "senderPublicKey": "GGrLCcVj972oWWPRkrKkKpet3g8W1RgGsxTppzdXqj4K", "proofs": [ "5JX71enwstgEG5gyptC4JWkYzQTNM29kN5CtYomJYYNGvZgapN44SKaEUhuEfuYhDjiWAc4ZxqNoH51yJr9Ds5xu", "3wwSjnw7CdtbbhkBCaGLZx5AbncZxSHs9VQkL8XijBWwgBLRXyyQ2BU8ALpd1LaQBHMeQH4eQyoAKtXM1WrrLQXY" ], "script": "base64:AAIFAAAAAAAAACMIAhIDCgEIEgMKAQESAwoBARIAEgMKAQESABIAEgMKAQESAAAAAFgAAAAAB3ZlcnNpb24CAAAABTEuMC4wAAAAAAprZXlWZXJzaW9uAgAAAAd2ZXJzaW9uAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAALa2V5QXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAAC2tleUFzc2V0SWRCAgAAAApCX2Fzc2V0X2lkAAAAAAtrZXlCYWxhbmNlQQIAAAAPQV9hc3NldF9iYWxhbmNlAAAAAAtrZXlCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA9rZXlCYWxhbmNlSW5pdEECAAAADEFfYXNzZXRfaW5pdAAAAAAPa2V5QmFsYW5jZUluaXRCAgAAAAxCX2Fzc2V0X2luaXQAAAAAD2tleVNoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAAE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AAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAASYWRtaW5QdWJLZXlTdGFraW5nAwMDAwMDBQAAABNjYWxsVGFrZUludG9BY2NvdW50BgUAAAAWY2FsbEVuYWJsZUZpcnN0SGFydmVzdAYFAAAAC2NhbGxTdGFraW5nBgUAAAAPZXhjaGFuZ2VUb1dhdmVzBgUAAAAPZXhjaGFuZ2VUb05TQlRzBQAAAA1zaWduZWRCeUFkbWluBwYFAAAAE211bHRpU2lnbmVkQnlBZG1pbnMFAAAAE211bHRpU2lnbmVkQnlBZG1pbnOu/xLo", "height": 1707221, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EGa8JdkWYvE62L4BYq3meGMmN73iCfvyvXuxmjPVuYMy Next: 9BoyqumZYmWUr5to1DtL4i6t8nXq6PZE177phrV862KM Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let version = "1.0.0" | |
5 | 5 | ||
6 | 6 | let keyVersion = "version" | |
7 | 7 | ||
8 | 8 | let keyActive = "active" | |
9 | 9 | ||
10 | 10 | let keyAssetIdA = "A_asset_id" | |
11 | 11 | ||
12 | 12 | let keyAssetIdB = "B_asset_id" | |
13 | 13 | ||
14 | 14 | let keyBalanceA = "A_asset_balance" | |
15 | 15 | ||
16 | 16 | let keyBalanceB = "B_asset_balance" | |
17 | 17 | ||
18 | 18 | let keyBalanceInitA = "A_asset_init" | |
19 | 19 | ||
20 | 20 | let keyBalanceInitB = "B_asset_init" | |
21 | 21 | ||
22 | 22 | let keyShareAssetId = "share_asset_id" | |
23 | 23 | ||
24 | 24 | let keyShareAssetSupply = "share_asset_supply" | |
25 | 25 | ||
26 | 26 | let keyCommission = "commission" | |
27 | 27 | ||
28 | 28 | let keyCommissionScaleDelimiter = "commission_scale_delimiter" | |
29 | 29 | ||
30 | 30 | let keyCause = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let keyFirstHarvest = "first_harvest" | |
33 | 33 | ||
34 | 34 | let keyFirstHarvestHeight = "first_harvest_height" | |
35 | 35 | ||
36 | 36 | let keyShareLimit = "share_limit_on_first_harvest" | |
37 | 37 | ||
38 | 38 | let keyBasePeriod = "base_period" | |
39 | 39 | ||
40 | 40 | let keyPeriodLength = "period_length" | |
41 | 41 | ||
42 | 42 | let keyStartHeight = "start_height" | |
43 | 43 | ||
44 | 44 | let keyOracleAssetPriority = "asset_priority_" | |
45 | 45 | ||
46 | 46 | let keyOracleScriptHash = "script_hash_cpmm" | |
47 | 47 | ||
48 | 48 | let keyInitPoolHeight = "init_pool_height" | |
49 | 49 | ||
50 | 50 | let keyAdminPubKey1 = "admin_pub_1" | |
51 | 51 | ||
52 | 52 | let keyAdminPubKey2 = "admin_pub_2" | |
53 | 53 | ||
54 | 54 | let keyAdminPubKey3 = "admin_pub_3" | |
55 | 55 | ||
56 | 56 | let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
57 | 57 | ||
58 | 58 | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
59 | 59 | case string: String => | |
60 | 60 | fromBase58String(string) | |
61 | 61 | case nothing => | |
62 | 62 | throw("Admin public key is empty") | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
67 | 67 | ||
68 | 68 | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
69 | 69 | ||
70 | 70 | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
71 | 71 | ||
72 | 72 | let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
73 | 73 | ||
74 | 74 | let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
75 | 75 | ||
76 | 76 | let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
77 | 77 | ||
78 | 78 | let votingAddress = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ') | |
79 | 79 | ||
80 | 80 | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
81 | 81 | ||
82 | 82 | let NSBT = base58'36mg8NZTaFRDygiVwb8uBnLR51hetJruUCZcxhaVcHj9' | |
83 | 83 | ||
84 | 84 | let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
85 | 85 | ||
86 | 86 | let EURN = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA' | |
87 | 87 | ||
88 | 88 | let stakingUSDNNSBTAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
89 | 89 | ||
90 | 90 | let stakingEURNAddress = Address(base58'3MyVqAbmKWh339gF6hy8faWw1jGeTV2wnGE') | |
91 | 91 | ||
92 | 92 | let USDNToWavesExchanger = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37') | |
93 | 93 | ||
94 | 94 | let USDNToNSBTExchanger = Address(base58'3Mye9wVR7d2mc6Y5ZJTu11svzgUQ7o8H9dA') | |
95 | 95 | ||
96 | 96 | let stakingFeeInUSDN = 270000 | |
97 | 97 | ||
98 | 98 | let stakingFeeInEURN = 234000 | |
99 | 99 | ||
100 | 100 | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, keyBasePeriod), "Empty keyBasePeriod") | |
101 | 101 | ||
102 | 102 | let startHeight = valueOrErrorMessage(getInteger(votingAddress, keyStartHeight), "Empty keyStartHeight") | |
103 | 103 | ||
104 | 104 | let periodLength = valueOrErrorMessage(getInteger(votingAddress, keyPeriodLength), "Empty keyPeriodLength") | |
105 | 105 | ||
106 | 106 | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 1) | |
107 | 107 | ||
108 | 108 | let isActive = getBooleanValue(this, keyActive) | |
109 | 109 | ||
110 | 110 | let strAssetIdA = getStringValue(this, keyAssetIdA) | |
111 | 111 | ||
112 | 112 | let strAssetIdB = getStringValue(this, keyAssetIdB) | |
113 | 113 | ||
114 | 114 | let assetIdA = if ((strAssetIdA == "WAVES")) | |
115 | 115 | then unit | |
116 | 116 | else fromBase58String(strAssetIdA) | |
117 | 117 | ||
118 | 118 | let assetIdB = if ((strAssetIdB == "WAVES")) | |
119 | 119 | then unit | |
120 | 120 | else fromBase58String(strAssetIdB) | |
121 | 121 | ||
122 | 122 | let assetNameA = match assetIdA { | |
123 | 123 | case id: ByteVector => | |
124 | 124 | value(assetInfo(id)).name | |
125 | 125 | case waves: Unit => | |
126 | 126 | "WAVES" | |
127 | 127 | case _ => | |
128 | 128 | throw("Match error") | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | let assetNameB = match assetIdB { | |
132 | 132 | case id: ByteVector => | |
133 | 133 | value(assetInfo(id)).name | |
134 | 134 | case waves: Unit => | |
135 | 135 | "WAVES" | |
136 | 136 | case _ => | |
137 | 137 | throw("Match error") | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | let balanceA = getIntegerValue(this, keyBalanceA) | |
141 | 141 | ||
142 | 142 | let balanceB = getIntegerValue(this, keyBalanceB) | |
143 | 143 | ||
144 | 144 | let shareAssetId = fromBase58String(getStringValue(this, keyShareAssetId)) | |
145 | 145 | ||
146 | 146 | let shareAssetSupply = getIntegerValue(this, keyShareAssetSupply) | |
147 | 147 | ||
148 | 148 | let commission = 3000 | |
149 | 149 | ||
150 | 150 | let commissionGovernance = 1200 | |
151 | 151 | ||
152 | 152 | let commissionScaleDelimiter = 1000000 | |
153 | 153 | ||
154 | 154 | let scaleValue3 = 1000 | |
155 | 155 | ||
156 | 156 | let scaleValue8 = 100000000 | |
157 | 157 | ||
158 | 158 | let slippageToleranceDelimiter = 1000 | |
159 | 159 | ||
160 | 160 | let scaleValue8Digits = 8 | |
161 | 161 | ||
162 | 162 | let comissionForInitalization = 1000000000 | |
163 | 163 | ||
164 | 164 | func accountBalance (assetId) = match assetId { | |
165 | 165 | case id: ByteVector => | |
166 | 166 | assetBalance(this, id) | |
167 | 167 | case waves: Unit => | |
168 | 168 | wavesBalance(this).available | |
169 | 169 | case _ => | |
170 | 170 | throw("Match error") | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func stakedAmount (assetId) = { | |
175 | 175 | let stakedAmountCalculated = match assetId { | |
176 | 176 | case aId: ByteVector => | |
177 | 177 | if (if ((aId == USDN)) | |
178 | 178 | then true | |
179 | 179 | else (aId == NSBT)) | |
180 | 180 | then getInteger(stakingUSDNNSBTAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this))) | |
181 | 181 | else if ((aId == EURN)) | |
182 | 182 | then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(this))) | |
183 | 183 | else 0 | |
184 | 184 | case _: Unit => | |
185 | 185 | 0 | |
186 | 186 | case _ => | |
187 | 187 | throw("Match error") | |
188 | 188 | } | |
189 | 189 | match stakedAmountCalculated { | |
190 | 190 | case i: Int => | |
191 | 191 | i | |
192 | 192 | case _ => | |
193 | 193 | 0 | |
194 | 194 | } | |
195 | 195 | } | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func isAllowedAsset (assetId) = match assetId { | |
199 | 199 | case id: ByteVector => | |
200 | 200 | if (if ((id == USDN)) | |
201 | 201 | then true | |
202 | 202 | else (id == SWOP)) | |
203 | 203 | then true | |
204 | 204 | else false | |
205 | 205 | case waves: Unit => | |
206 | 206 | true | |
207 | 207 | case _ => | |
208 | 208 | throw("Match error") | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | let stakedAmountA = stakedAmount(assetIdA) | |
213 | 213 | ||
214 | 214 | let stakedAmountB = stakedAmount(assetIdB) | |
215 | 215 | ||
216 | 216 | let assetInitA = getIntegerValue(this, keyBalanceInitA) | |
217 | 217 | ||
218 | 218 | let assetInitB = getIntegerValue(this, keyBalanceInitB) | |
219 | 219 | ||
220 | 220 | let availableBalanceA = (balanceA - stakedAmountA) | |
221 | 221 | ||
222 | 222 | let availableBalanceB = (balanceB - stakedAmountB) | |
223 | 223 | ||
224 | 224 | let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA) | |
225 | 225 | ||
226 | 226 | let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB) | |
227 | 227 | ||
228 | 228 | let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA)) | |
229 | 229 | then (accountBalanceWithStakedB >= balanceB) | |
230 | 230 | else false | |
231 | 231 | ||
232 | 232 | func getAssetInfo (assetId) = match assetId { | |
233 | 233 | case id: ByteVector => | |
234 | 234 | let stringId = toBase58String(id) | |
235 | 235 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
236 | 236 | $Tuple3(stringId, info.name, info.decimals) | |
237 | 237 | case waves: Unit => | |
238 | 238 | $Tuple3("WAVES", "WAVES", 8) | |
239 | 239 | case _ => | |
240 | 240 | throw("Match error") | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES")) | |
245 | 245 | then $Tuple3("WAVES", "WAVES", 8) | |
246 | 246 | else { | |
247 | 247 | let stringId = assetStr | |
248 | 248 | let id = fromBase58String(assetStr) | |
249 | 249 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
250 | 250 | $Tuple3(stringId, info.name, info.decimals) | |
251 | 251 | } | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func deductStakingFee (amount,assetId,secondAssetId) = if (if ((assetId == USDN)) | |
258 | 258 | then true | |
259 | 259 | else (assetId == EURN)) | |
260 | 260 | then { | |
261 | 261 | let stakinFee = if ((assetId == USDN)) | |
262 | 262 | then (stakingFeeInUSDN * (if ((secondAssetId == NSBT)) | |
263 | 263 | then 2 | |
264 | 264 | else 1)) | |
265 | 265 | else if ((assetId == EURN)) | |
266 | 266 | then stakingFeeInEURN | |
267 | 267 | else 0 | |
268 | 268 | let result = (amount - stakinFee) | |
269 | 269 | if ((0 >= result)) | |
270 | 270 | then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakinFee)) + "USDN/EURN")) | |
271 | 271 | else result | |
272 | 272 | } | |
273 | 273 | else amount | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func getStakingFee (assetId,secondAssetId) = if ((assetId == USDN)) | |
277 | 277 | then (stakingFeeInUSDN * (if ((secondAssetId == NSBT)) | |
278 | 278 | then 2 | |
279 | 279 | else 1)) | |
280 | 280 | else if ((assetId == EURN)) | |
281 | 281 | then stakingFeeInEURN | |
282 | 282 | else 0 | |
283 | 283 | ||
284 | 284 | ||
285 | 285 | func throwInsufficientAvailableBalance (amount,available,assetName) = throw((((((((("Insufficient DApp balance to pay " + toString(amount)) + " ") + assetName) + " due to staking. Available: ") + toString(available)) + " ") + assetName) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
286 | 286 | ||
287 | 287 | ||
288 | 288 | func throwInsufficientAvailableBalances (amountA,amountB) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(amountA)) + " ") + assetNameA) + " and ") + toString(amountB)) + " ") + assetNameB) + " due to staking. Available: ") + toString(availableBalanceA)) + " ") + assetNameA) + " and ") + toString(availableBalanceB)) + " ") + assetNameB) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
289 | 289 | ||
290 | 290 | ||
291 | 291 | func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceWithStakedA)) + " ") + assetNameA) + ", ") + toString(accountBalanceWithStakedB)) + " ") + assetNameB) + ". State: ") + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB)) | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | @Callable(i) | |
295 | 295 | func init (userAddressStr) = { | |
296 | 296 | let $t083608437 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
297 | 297 | let pmtAmount1 = $t083608437._1 | |
298 | 298 | let pmtAssetId1 = $t083608437._2 | |
299 | 299 | let $t084428519 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
300 | 300 | let pmtAmount2 = $t084428519._1 | |
301 | 301 | let pmtAssetId2 = $t084428519._2 | |
302 | 302 | let $t085248607 = $Tuple2(i.payments[2].amount, i.payments[2].assetId) | |
303 | 303 | let pmtAmountSWOP = $t085248607._1 | |
304 | 304 | let pmtAssetIdSWOP = $t085248607._2 | |
305 | 305 | let check = isDataStorageUntouched(this) | |
306 | 306 | let userScriptHash = scriptHash(this) | |
307 | 307 | let userAddress = addressFromStringValue(userAddressStr) | |
308 | 308 | if ((i.caller == this)) | |
309 | 309 | then throw("You can't call yourself") | |
310 | 310 | else if (if ((pmtAssetIdSWOP != SWOP)) | |
311 | 311 | then true | |
312 | 312 | else (pmtAmountSWOP != comissionForInitalization)) | |
313 | 313 | then throw("You need to attach 10 SWOP tokens") | |
314 | 314 | else if (if (!(isAllowedAsset(pmtAssetId1))) | |
315 | 315 | then !(isAllowedAsset(pmtAssetId2)) | |
316 | 316 | else false) | |
317 | 317 | then throw("One of assets must be USDN, WAVES or SWOP") | |
318 | 318 | else if (if ((userScriptHash != value(getBinary(oracle, keyOracleScriptHash)))) | |
319 | 319 | then true | |
320 | 320 | else !(check)) | |
321 | 321 | then throw("Unexpected script was found.") | |
322 | 322 | else if (isDefined(getBoolean(this, keyActive))) | |
323 | 323 | then throw("DApp is already active") | |
324 | 324 | else if ((pmtAssetId1 == pmtAssetId2)) | |
325 | 325 | then throw("Assets must be different") | |
326 | 326 | else { | |
327 | 327 | let pmtStrAssetId1 = match pmtAssetId1 { | |
328 | 328 | case id: ByteVector => | |
329 | 329 | toBase58String(id) | |
330 | 330 | case waves: Unit => | |
331 | 331 | "WAVES" | |
332 | 332 | case _ => | |
333 | 333 | throw("Match error") | |
334 | 334 | } | |
335 | 335 | let pmtStrAssetId2 = match pmtAssetId2 { | |
336 | 336 | case id: ByteVector => | |
337 | 337 | toBase58String(id) | |
338 | 338 | case waves: Unit => | |
339 | 339 | "WAVES" | |
340 | 340 | case _ => | |
341 | 341 | throw("Match error") | |
342 | 342 | } | |
343 | 343 | let asset1Priority = valueOrElse(getInteger(oracle, (keyOracleAssetPriority + pmtStrAssetId1)), 999999) | |
344 | 344 | let asset2Priority = valueOrElse(getInteger(oracle, (keyOracleAssetPriority + pmtStrAssetId2)), 999999) | |
345 | 345 | let $t0996310190 = if ((asset2Priority > asset1Priority)) | |
346 | 346 | then $Tuple4(pmtAmount2, pmtAssetId2, pmtAmount1, pmtAssetId1) | |
347 | 347 | else $Tuple4(pmtAmount1, pmtAssetId1, pmtAmount2, pmtAssetId2) | |
348 | 348 | let pmtAmountA = $t0996310190._1 | |
349 | 349 | let pmtAssetIdA = $t0996310190._2 | |
350 | 350 | let pmtAmountB = $t0996310190._3 | |
351 | 351 | let pmtAssetIdB = $t0996310190._4 | |
352 | 352 | let $t01019910276 = getAssetInfo(pmtAssetIdA) | |
353 | 353 | let pmtStrAssetIdA = $t01019910276._1 | |
354 | 354 | let pmtAssetNameA = $t01019910276._2 | |
355 | 355 | let pmtDecimalsA = $t01019910276._3 | |
356 | 356 | let $t01028510362 = getAssetInfo(pmtAssetIdB) | |
357 | 357 | let pmtStrAssetIdB = $t01028510362._1 | |
358 | 358 | let pmtAssetNameB = $t01028510362._2 | |
359 | 359 | let pmtDecimalsB = $t01028510362._3 | |
360 | 360 | let addParams = [toString(this), ((pmtAssetNameA + "_") + pmtAssetNameB), pmtStrAssetIdA, pmtStrAssetIdB] | |
361 | 361 | let addPool = invoke(oracle, "addPool", addParams, nil) | |
362 | 362 | if ((addPool == addPool)) | |
363 | 363 | then if (!(isDefined(getString(oracle, ("pool_" + toString(this)))))) | |
364 | 364 | then throw("Pool is not added") | |
365 | 365 | else { | |
366 | 366 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
367 | 367 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
368 | 368 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
369 | 369 | let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN) | |
370 | 370 | let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN) | |
371 | 371 | let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN) | |
372 | 372 | let shareInitialSupply = fraction(arg1, arg2, arg3) | |
373 | 373 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
374 | 374 | let shareIssueId = calculateAssetId(shareIssue) | |
375 | 375 | let baseEntry = [StringEntry(keyVersion, version), BooleanEntry(keyActive, true), StringEntry(keyAssetIdA, pmtStrAssetIdA), StringEntry(keyAssetIdB, pmtStrAssetIdB), IntegerEntry(keyBalanceA, pmtAmountA), IntegerEntry(keyBalanceB, pmtAmountB), IntegerEntry(keyCommission, commission), IntegerEntry(keyCommissionScaleDelimiter, commissionScaleDelimiter), shareIssue, StringEntry(keyShareAssetId, toBase58String(shareIssueId)), IntegerEntry(keyShareAssetSupply, shareInitialSupply), IntegerEntry(keyInitPoolHeight, height), ScriptTransfer(userAddress, shareInitialSupply, shareIssueId), ScriptTransfer(walletAddress, comissionForInitalization, SWOP)] | |
376 | 376 | baseEntry | |
377 | 377 | } | |
378 | 378 | else throw("Strict value is not equal to itself.") | |
379 | 379 | } | |
380 | 380 | } | |
381 | 381 | ||
382 | 382 | ||
383 | 383 | ||
384 | 384 | @Callable(i) | |
385 | 385 | func keepLimitForFirstHarvest (shareLimit) = if (!(isActive)) | |
386 | 386 | then throw("DApp is inactive at this moment") | |
387 | 387 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey))) | |
388 | 388 | then throw("Only admin can call this function") | |
389 | 389 | else [IntegerEntry(keyShareLimit, shareLimit)] | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | ||
393 | 393 | @Callable(i) | |
394 | 394 | func replenishWithTwoTokens (slippageTolerance) = { | |
395 | 395 | let pmtAssetIdA = i.payments[0].assetId | |
396 | 396 | let pmtAssetIdB = i.payments[1].assetId | |
397 | 397 | let pmtAmountA = deductStakingFee(i.payments[0].amount, pmtAssetIdA, pmtAssetIdB) | |
398 | 398 | let pmtAmountB = deductStakingFee(i.payments[1].amount, pmtAssetIdB, pmtAssetIdA) | |
399 | 399 | if (if ((balanceA == 0)) | |
400 | 400 | then (balanceB == 0) | |
401 | 401 | else false) | |
402 | 402 | then { | |
403 | 403 | let $t01328213359 = getAssetInfo(pmtAssetIdA) | |
404 | 404 | let pmtStrAssetIdA = $t01328213359._1 | |
405 | 405 | let pmtAssetNameA = $t01328213359._2 | |
406 | 406 | let pmtDecimalsA = $t01328213359._3 | |
407 | 407 | let $t01336813445 = getAssetInfo(pmtAssetIdB) | |
408 | 408 | let pmtStrAssetIdB = $t01336813445._1 | |
409 | 409 | let pmtAssetNameB = $t01336813445._2 | |
410 | 410 | let pmtDecimalsB = $t01336813445._3 | |
411 | 411 | let tokenRatio = fraction(fraction(assetInitA, scaleValue8, pmtAmountA), scaleValue3, fraction(assetInitB, scaleValue8, pmtAmountB)) | |
412 | 412 | if ((pmtAssetIdA == pmtAssetIdB)) | |
413 | 413 | then throw("Assets must be different") | |
414 | 414 | else { | |
415 | 415 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
416 | 416 | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
417 | 417 | if (!(isActive)) | |
418 | 418 | then throw("DApp is inactive at this moment") | |
419 | 419 | else if (if ((0 > slippageTolerance)) | |
420 | 420 | then true | |
421 | 421 | else (slippageTolerance > slippageToleranceDelimiter)) | |
422 | 422 | then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance))) | |
423 | 423 | else if ((size(i.payments) != 2)) | |
424 | 424 | then throw("Two attached assets expected") | |
425 | 425 | else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio)) | |
426 | 426 | then true | |
427 | 427 | else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter))) | |
428 | 428 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
429 | 429 | else if (if ((pmtAssetIdA != assetIdA)) | |
430 | 430 | then true | |
431 | 431 | else (pmtAssetIdB != assetIdB)) | |
432 | 432 | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
433 | 433 | else if ((shareInitialSupply == 0)) | |
434 | 434 | then throw("Too small amount to replenish") | |
435 | 435 | else if (!(hasEnoughBalance)) | |
436 | 436 | then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious()) | |
437 | 437 | else [Reissue(shareAssetId, shareInitialSupply, true), IntegerEntry(keyBalanceA, pmtAmountA), IntegerEntry(keyBalanceB, pmtAmountB), IntegerEntry(keyShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareAssetId)] | |
438 | 438 | } | |
439 | 439 | } | |
440 | 440 | else { | |
441 | 441 | let tokenRatio = fraction(fraction(balanceA, scaleValue8, pmtAmountA), scaleValue3, fraction(balanceB, scaleValue8, pmtAmountB)) | |
442 | 442 | let ratioShareTokensInA = fraction(pmtAmountA, scaleValue8, balanceA) | |
443 | 443 | let ratioShareTokensInB = fraction(pmtAmountB, scaleValue8, balanceB) | |
444 | 444 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scaleValue8) | |
445 | 445 | if (!(isActive)) | |
446 | 446 | then throw("DApp is inactive at this moment") | |
447 | 447 | else if (if ((0 > slippageTolerance)) | |
448 | 448 | then true | |
449 | 449 | else (slippageTolerance > slippageToleranceDelimiter)) | |
450 | 450 | then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance))) | |
451 | 451 | else if ((size(i.payments) != 2)) | |
452 | 452 | then throw("Two attached assets expected") | |
453 | 453 | else if (if ((pmtAssetIdA != assetIdA)) | |
454 | 454 | then true | |
455 | 455 | else (pmtAssetIdB != assetIdB)) | |
456 | 456 | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
457 | 457 | else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio)) | |
458 | 458 | then true | |
459 | 459 | else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter))) | |
460 | 460 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
461 | 461 | else if ((shareTokenToPayAmount == 0)) | |
462 | 462 | then throw("Too small amount to replenish") | |
463 | 463 | else if (!(hasEnoughBalance)) | |
464 | 464 | then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious()) | |
465 | 465 | else [IntegerEntry(keyBalanceA, (balanceA + pmtAmountA)), IntegerEntry(keyBalanceB, (balanceB + pmtAmountB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)] | |
466 | 466 | } | |
467 | 467 | } | |
468 | 468 | ||
469 | 469 | ||
470 | 470 | ||
471 | 471 | @Callable(i) | |
472 | 472 | func withdraw () = { | |
473 | 473 | let $t01784417994 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
474 | 474 | let pmtAmount = $t01784417994._1 | |
475 | 475 | let pmtAssetId = $t01784417994._2 | |
476 | 476 | let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA, assetIdB) | |
477 | 477 | let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB, assetIdA) | |
478 | 478 | if (!(isActive)) | |
479 | 479 | then throw("DApp is inactive at this moment") | |
480 | 480 | else if ((size(i.payments) != 1)) | |
481 | 481 | then throw("One attached payment expected") | |
482 | 482 | else if ((pmtAssetId != shareAssetId)) | |
483 | 483 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
484 | 484 | else if (!(hasEnoughBalance)) | |
485 | 485 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
486 | 486 | else if (if ((amountToPayA > availableBalanceA)) | |
487 | 487 | then true | |
488 | 488 | else (amountToPayB > availableBalanceB)) | |
489 | 489 | then throwInsufficientAvailableBalances(amountToPayA, amountToPayB) | |
490 | 490 | else [IntegerEntry(keyBalanceA, (balanceA - amountToPayA)), IntegerEntry(keyBalanceB, (balanceB - amountToPayB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply - pmtAmount)), Burn(shareAssetId, pmtAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)] | |
491 | 491 | } | |
492 | 492 | ||
493 | 493 | ||
494 | 494 | ||
495 | 495 | @Callable(i) | |
496 | 496 | func exchange (minAmountToReceive) = { | |
497 | 497 | let $t01922019295 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
498 | 498 | let pmtAmount = $t01922019295._1 | |
499 | 499 | let pmtAssetId = $t01922019295._2 | |
500 | 500 | func calculateFees (tokenFrom,tokenTo) = { | |
501 | 501 | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
502 | 502 | let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter) | |
503 | 503 | let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter) | |
504 | 504 | if ((minAmountToReceive > amountWithFee)) | |
505 | 505 | then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive))) | |
506 | 506 | else $Tuple3(amountWithoutFee, amountWithFee, governanceReward) | |
507 | 507 | } | |
508 | 508 | ||
509 | 509 | if (!(isActive)) | |
510 | 510 | then throw("DApp is inactive at this moment") | |
511 | 511 | else if (if ((balanceA == 0)) | |
512 | 512 | then true | |
513 | 513 | else (balanceB == 0)) | |
514 | 514 | then throw("Can't exchange with zero balance") | |
515 | 515 | else if ((0 >= minAmountToReceive)) | |
516 | 516 | then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive))) | |
517 | 517 | else if ((size(i.payments) != 1)) | |
518 | 518 | then throw("One attached payment expected") | |
519 | 519 | else if (!(hasEnoughBalance)) | |
520 | 520 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
521 | 521 | else if ((pmtAssetId == assetIdA)) | |
522 | 522 | then { | |
523 | 523 | let assetIdSend = assetIdB | |
524 | 524 | let $t02056920660 = calculateFees(balanceA, balanceB) | |
525 | 525 | let amountWithoutFee = $t02056920660._1 | |
526 | 526 | let amountWithFee = $t02056920660._2 | |
527 | 527 | let governanceReward = $t02056920660._3 | |
528 | 528 | let newBalanceA = (balanceA + pmtAmount) | |
529 | 529 | let newBalanceB = ((balanceB - amountWithFee) - governanceReward) | |
530 | 530 | if (if ((stakedAmountA >= newBalanceA)) | |
531 | 531 | then true | |
532 | 532 | else (stakedAmountB >= newBalanceB)) | |
533 | 533 | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB) | |
534 | 534 | else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)] | |
535 | 535 | } | |
536 | 536 | else if ((pmtAssetId == assetIdB)) | |
537 | 537 | then { | |
538 | 538 | let assetIdSend = assetIdA | |
539 | 539 | let $t02147921570 = calculateFees(balanceB, balanceA) | |
540 | 540 | let amountWithoutFee = $t02147921570._1 | |
541 | 541 | let amountWithFee = $t02147921570._2 | |
542 | 542 | let governanceReward = $t02147921570._3 | |
543 | 543 | let newBalanceA = ((balanceA - amountWithFee) - governanceReward) | |
544 | 544 | let newBalanceB = (balanceB + pmtAmount) | |
545 | 545 | if (if ((stakedAmountA >= newBalanceA)) | |
546 | 546 | then true | |
547 | 547 | else (stakedAmountB >= newBalanceB)) | |
548 | 548 | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA) | |
549 | 549 | else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)] | |
550 | 550 | } | |
551 | 551 | else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
552 | 552 | } | |
553 | 553 | ||
554 | 554 | ||
555 | 555 | ||
556 | 556 | @Callable(i) | |
557 | 557 | func shutdown () = if (!(isActive)) | |
558 | 558 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
559 | 559 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
560 | 560 | then throw("Only admin can call this function") | |
561 | 561 | else suspend("Paused by admin") | |
562 | 562 | ||
563 | 563 | ||
564 | 564 | ||
565 | 565 | @Callable(i) | |
566 | 566 | func activate () = if (isActive) | |
567 | 567 | then throw("DApp is already active") | |
568 | 568 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
569 | 569 | then throw("Only admin can call this function") | |
570 | 570 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
571 | 571 | ||
572 | 572 | ||
573 | 573 | ||
574 | 574 | @Callable(i) | |
575 | 575 | func takeIntoAccountExtraFunds (amountLeave) = { | |
576 | 576 | let uncountableAmountEnrollAssetA = (accountBalanceWithStakedA - balanceA) | |
577 | 577 | let uncountableAmountEnrollAssetB = (accountBalanceWithStakedB - balanceB) | |
578 | 578 | let amountEnrollA = (uncountableAmountEnrollAssetA - (if ((assetIdA == unit)) | |
579 | 579 | then amountLeave | |
580 | 580 | else 0)) | |
581 | 581 | let amountEnrollB = (uncountableAmountEnrollAssetB - (if ((assetIdB == unit)) | |
582 | 582 | then amountLeave | |
583 | 583 | else 0)) | |
584 | 584 | if (!(isActive)) | |
585 | 585 | then throw("DApp is inactive at this moment") | |
586 | 586 | else if ((i.caller != this)) | |
587 | 587 | then throw("Only the DApp itself can call this function") | |
588 | 588 | else if ((0 > amountLeave)) | |
589 | 589 | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave))) | |
590 | 590 | else if (if ((0 > uncountableAmountEnrollAssetA)) | |
591 | 591 | then true | |
592 | 592 | else (0 > uncountableAmountEnrollAssetB)) | |
593 | 593 | then suspend("Enroll amount negative") | |
594 | 594 | else if (if ((0 > amountEnrollA)) | |
595 | 595 | then true | |
596 | 596 | else (0 > amountEnrollB)) | |
597 | 597 | then throw("Too large amountLeave") | |
598 | 598 | else [IntegerEntry(keyBalanceA, (balanceA + amountEnrollA)), IntegerEntry(keyBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
599 | 599 | } | |
600 | 600 | ||
601 | 601 | ||
602 | 602 | ||
603 | 603 | @Callable(i) | |
604 | 604 | func enableFirstHarvest () = [BooleanEntry(keyFirstHarvest, true), IntegerEntry(keyFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))] | |
605 | 605 | ||
606 | 606 | ||
607 | 607 | @Verifier(tx) | |
608 | 608 | func verify () = { | |
609 | 609 | let multiSignedByAdmins = { | |
610 | 610 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
611 | 611 | then 1 | |
612 | 612 | else 0 | |
613 | 613 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
614 | 614 | then 1 | |
615 | 615 | else 0 | |
616 | 616 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
617 | 617 | then 1 | |
618 | 618 | else 0 | |
619 | 619 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
620 | 620 | } | |
621 | 621 | match tx { | |
622 | 622 | case inv: InvokeScriptTransaction => | |
623 | 623 | let callTakeIntoAccount = if ((inv.dApp == this)) | |
624 | 624 | then (inv.function == "takeIntoAccountExtraFunds") | |
625 | 625 | else false | |
626 | 626 | let callEnableFirstHarvest = if ((inv.dApp == this)) | |
627 | 627 | then (inv.function == "enableFirstHarvest") | |
628 | 628 | else false | |
629 | 629 | let callStaking = if (if ((inv.dApp == stakingUSDNNSBTAddress)) | |
630 | 630 | then if (if (if ((inv.function == "lockNeutrino")) | |
631 | 631 | then (size(inv.payments) == 1) | |
632 | 632 | else false) | |
633 | 633 | then if ((inv.payments[0].assetId == USDN)) | |
634 | 634 | then true | |
635 | 635 | else (inv.payments[0].assetId == NSBT) | |
636 | 636 | else false) | |
637 | 637 | then true | |
638 | 638 | else if ((inv.function == "unlockNeutrino")) | |
639 | 639 | then (size(inv.payments) == 0) | |
640 | 640 | else false | |
641 | 641 | else false) | |
642 | 642 | then true | |
643 | 643 | else if ((inv.dApp == stakingEURNAddress)) | |
644 | 644 | then if (if (if ((inv.function == "startStaking")) | |
645 | 645 | then (size(inv.payments) == 1) | |
646 | 646 | else false) | |
647 | 647 | then (inv.payments[0].assetId == EURN) | |
648 | 648 | else false) | |
649 | 649 | then true | |
650 | 650 | else if ((inv.function == "stopStaking")) | |
651 | 651 | then (size(inv.payments) == 0) | |
652 | 652 | else false | |
653 | 653 | else false | |
654 | 654 | let exchangeToWaves = if (if (if ((inv.dApp == USDNToWavesExchanger)) | |
655 | 655 | then (inv.function == "exchange") | |
656 | 656 | else false) | |
657 | 657 | then (assetIdA == USDN) | |
658 | 658 | else false) | |
659 | 659 | then true | |
660 | 660 | else if (if ((assetIdB == USDN)) | |
661 | 661 | then (size(inv.payments) == 1) | |
662 | 662 | else false) | |
663 | 663 | then (inv.payments[0].assetId == USDN) | |
664 | 664 | else false | |
665 | 665 | let exchangeToNSBTs = if (if (if ((inv.dApp == USDNToNSBTExchanger)) | |
666 | 666 | then (inv.function == "exchange") | |
667 | 667 | else false) | |
668 | 668 | then (assetIdA == NSBT) | |
669 | 669 | else false) | |
670 | 670 | then true | |
671 | 671 | else if (if ((assetIdB == NSBT)) | |
672 | 672 | then (size(inv.payments) == 1) | |
673 | 673 | else false) | |
674 | 674 | then (inv.payments[0].assetId == USDN) | |
675 | 675 | else false | |
676 | 676 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
677 | 677 | then true | |
678 | 678 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
679 | 679 | then true | |
680 | 680 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
681 | 681 | then true | |
682 | 682 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking) | |
683 | 683 | if (if (if (if (if (if (callTakeIntoAccount) | |
684 | 684 | then true | |
685 | 685 | else callEnableFirstHarvest) | |
686 | 686 | then true | |
687 | 687 | else callStaking) | |
688 | 688 | then true | |
689 | 689 | else exchangeToWaves) | |
690 | 690 | then true | |
691 | 691 | else exchangeToNSBTs) | |
692 | 692 | then signedByAdmin | |
693 | 693 | else false) | |
694 | 694 | then true | |
695 | 695 | else multiSignedByAdmins | |
696 | 696 | case _ => | |
697 | 697 | multiSignedByAdmins | |
698 | 698 | } | |
699 | 699 | } | |
700 | 700 |
github/deemru/w8io/026f985 60.75 ms ◑