tx · EAY93SRrPz8yPnVuUTf24j7PrGn6EJkcFZs2YZPGShdQ

3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37:  -0.03100000 Waves

2024.07.31 11:43 [3218036] smart account 3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37 > SELF 0.00000000 Waves

{ "type": 13, "id": "EAY93SRrPz8yPnVuUTf24j7PrGn6EJkcFZs2YZPGShdQ", "fee": 3100000, "feeAssetId": null, "timestamp": 1722415448766, "version": 1, "sender": "3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37", "senderPublicKey": "vmMXxwQAMUAoisvL193ptPiTtaWQqL5YNu2zs1ouTbY", "proofs": [ "4a4bsCKomXSWJcuutpiyzmSQjg91a7hxYFbebYpbQE8WRvBa7SRct2i1sjUvTFZYeY6TJBG3opyam3gN5YzRe3Tp" ], "script": "base64:BwJbCAISAwoBCBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGF4ACXNlcGFyYXRvcgICX18AB2NoYWluSWQJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACGNoYWluSWRXAQFXABBjb250cmFjdEZpbGVuYW1lAhdmdXR1cmVzX2NhbGN1bGF0b3IucmlkZQAFbXVsdDgAgMLXLwAMbXVsdDE4QmlnSW50CQC2AgEAgICQu7rWrfANAA13YXZlc0RlY2ltYWxzAAgADHVzZHREZWNpbWFscwAGAAt3YXZlc1N0cmluZwIFV0FWRVMADXF1ZXVlSXRlbVNpemUAIAAEYmlnMAkAtgIBAAAACklOREVYX0xJU1QJAMwIAgAACQDMCAIAAQkAzAgCAAIJAMwIAgADCQDMCAIABAkAzAgCAAUJAMwIAgAGCQDMCAIABwkAzAgCAAgJAMwIAgAJCQDMCAIACgkAzAgCAAsJAMwIAgAMCQDMCAIADQkAzAgCAA4JAMwIAgAPCQDMCAIAEAkAzAgCABEJAMwIAgASCQDMCAIAEwUDbmlsA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sBQNuaWwJAJQKAgUDbmlsBQtpbnZvY2F0aW9ucwkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQADAwkBCWlzRGVmaW5lZAEFFGZhY3RvcnlBZGRyZXNzT3B0aW9uCQEJaXNEZWZpbmVkAQkAnQgCBQ5mYWN0b3J5QWRkcmVzcwUJa011bHRpc2lnBwQHJG1hdGNoMAkAnQgCBQ5mYWN0b3J5QWRkcmVzcwUJa011bHRpc2lnAwkAAQIFByRtYXRjaDACBlN0cmluZwQIbXVsdGlzaWcFByRtYXRjaDAECXN0YXR1c0tleQkBB2tTdGF0dXMCCQClCAEFBHRoaXMJANgEAQgFAnR4AmlkBAZzdGF0dXMJAQt2YWx1ZU9yRWxzZQIJAJsIAgkBEUBleHRyTmF0aXZlKDEwNjIpAQUIbXVsdGlzaWcFCXN0YXR1c0tleQcFBnN0YXR1cwcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXlxCyfZ", "chainId": 84, "height": 3218036, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3uceZoYcAbY3d3yXKcKLK2QFpqMG1NxGpLVS55fZ7PY3 Next: 9UgCWRGapQR88ZwYJMuPTATxTgiQcNany8jBRCmvpHXj Diff:
OldNewDifferences
342342 let creditA = valueOrElse(getInteger(factoryAddress, kCredit(accountAddress, amountAssetId)), 0)
343343 let creditB = valueOrElse(getInteger(factoryAddress, kCredit(accountAddress, priceAssetId)), 0)
344344 let status = valueOrErrorMessage(getInteger(factoryAddress, kRequestStatus(requestId)), ("status not found. RequestId = " + toBase58String(requestId)))
345- $Tuple12(assetIdToString(amountAssetId), assetIdToString(priceAssetId), toString(accountAddress), toBase58String(accountPublicKey), leverage, toBase58String(requestId), deposited, creditA, creditB, getAssetBalance(parseAssetId(kSyntheticAssetId(amountAssetId)), accountAddress), getAssetBalance(parseAssetId(kSyntheticAssetId(priceAssetId)), accountAddress), status)
345+ $Tuple12(assetIdToString(amountAssetId), assetIdToString(priceAssetId), toString(accountAddress), toBase58String(accountPublicKey), leverage, toBase58String(requestId), deposited, creditA, creditB, getAssetBalance(parseAssetId(getStringValue(kSyntheticAssetId(amountAssetId))), accountAddress), getAssetBalance(parseAssetId(getStringValue(kSyntheticAssetId(priceAssetId))), accountAddress), status)
346346 }
347347
348348
386386 else throwErr(("accounts limit is " + toString(accountsLimit())))]
387387 if ((checks == checks))
388388 then {
389- let $t01415715690 = if ((size(accountsQueue()) == 0))
389+ let $t01419115724 = if ((size(accountsQueue()) == 0))
390390 then $Tuple2([ScriptTransfer(factoryAddress, rewardAmount(), unit)], [invoke(factoryAddress, "integerEntry", [kRequestStatus(requestId), REQUEST_STATUS_EMPTY], nil), invoke(factoryAddress, "binaryEntry", [kRequestsQueue(), (requestsQueue() + requestId)], nil), invoke(factoryAddress, "integerEntry", [kRequestLeverage(requestId), leverage], nil)])
391391 else {
392392 let accountPublicKey = take(accountsQueue(), queueItemSize)
394394 let creatorAddress = addressFromPublicKey(valueOrErrorMessage(getBinary(factoryAddress, kAccountCreatorPublicKey(accountAddress)), wrapErr("invalid creator public key")))
395395 $Tuple2([ScriptTransfer(creatorAddress, rewardAmount(), unit)], [invoke(factoryAddress, "binaryEntry", [kAccountsQueue(), drop(accountsQueue(), queueItemSize)], nil), invoke(factoryAddress, "integerEntry", [kRequestStatus(requestId), REQUEST_STATUS_READY], nil), invoke(factoryAddress, "binaryEntry", [kRequestIdToAccountPublicKey(requestId), accountPublicKey], nil), invoke(factoryAddress, "stringEntry", [kAccountAddressToRequestId(accountAddress), toBase58String(requestId)], nil), invoke(factoryAddress, "integerEntry", [kLeverage(accountAddress), leverage], nil)])
396396 }
397- let actions = $t01415715690._1
398- let factoryActions = $t01415715690._2
397+ let actions = $t01419115724._1
398+ let factoryActions = $t01419115724._2
399399 $Tuple2(actions, (factoryActions ++ [invoke(factoryAddress, "binaryEntry", [kRequestOwnerPublicKey(requestId), callerPublicKey], nil), invoke(factoryAddress, "binaryEntry", [kRequestsByOwner(userAddress), (requestsByOwner(userAddress) + requestId)], nil), invoke(factoryAddress, "stringEntry", [kRequestAmountAssetId(requestId), amountAssetIdStr], nil), invoke(factoryAddress, "stringEntry", [kRequestPriceAssetId(requestId), priceAssetIdStr], nil)]))
400400 }
401401 else throw("Strict value is not equal to itself.")
428428 else throwErr("invalid script")]
429429 if ((checks == checks))
430430 then {
431- let $t01694518186 = if ((size(requestsQueue()) == 0))
431+ let $t01697918220 = if ((size(requestsQueue()) == 0))
432432 then $Tuple2(nil, [invoke(factoryAddress, "binaryEntry", [kAccountsQueue(), (accountsQueue() + accountPublicKey)], nil)])
433433 else {
434434 let requestId = take(requestsQueue(), queueItemSize)
435435 let leverage = valueOrErrorMessage(getInteger(factoryAddress, kRequestLeverage(requestId)), wrapErr("request's leverage is undefined"))
436436 $Tuple2(nil, [invoke(factoryAddress, "integerEntry", [kRequestStatus(requestId), REQUEST_STATUS_READY], nil), invoke(factoryAddress, "binaryEntry", [kRequestIdToAccountPublicKey(requestId), accountPublicKey], nil), invoke(factoryAddress, "binaryEntry", [kRequestsQueue(), drop(requestsQueue(), queueItemSize)], nil), invoke(factoryAddress, "stringEntry", [kAccountAddressToRequestId(accountAddress), toBase58String(requestId)], nil), invoke(factoryAddress, "transferWaves", [creatorAddress.bytes, rewardAmount()], nil), invoke(factoryAddress, "integerEntry", [kLeverage(accountAddress), leverage], nil)])
437437 }
438- let actions = $t01694518186._1
439- let factoryActions = $t01694518186._2
438+ let actions = $t01697918220._1
439+ let factoryActions = $t01697918220._2
440440 $Tuple2(actions, (factoryActions ++ [invoke(factoryAddress, "binaryEntry", [kAccountCreatorPublicKey(accountAddress), creatorPublicKey], nil)]))
441441 }
442442 else throw("Strict value is not equal to itself.")
618618 let userRequests = valueOrElse(getBinary(factoryAddress, kRequestsByOwner(userAddress)), base58'')
619619 let userRequestsNumber = (size(userRequests) / queueItemSize)
620620 func getAccountsData (acc,count) = {
621- let $t02562225664 = acc
622- let accDataList = $t02562225664._1
623- let rawBytes = $t02562225664._2
624- let maxSize = $t02562225664._3
621+ let $t02565625698 = acc
622+ let accDataList = $t02565625698._1
623+ let rawBytes = $t02565625698._2
624+ let maxSize = $t02565625698._3
625625 if ((maxSize > count))
626626 then {
627627 let requestId = take(rawBytes, queueItemSize)
634634 else acc
635635 }
636636
637- let $t02616826273 = {
637+ let $t02620226307 = {
638638 let $l = INDEX_LIST
639639 let $s = size($l)
640640 let $acc0 = $Tuple3(nil, userRequests, userRequestsNumber)
648648
649649 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
650650 }
651- let accDataList = $t02616826273._1
652- let _a = $t02616826273._2
653- let _b = $t02616826273._3
651+ let accDataList = $t02620226307._1
652+ let _a = $t02620226307._2
653+ let _b = $t02620226307._3
654654 $Tuple2(nil, accDataList)
655655 }
656656 else throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "__"
55
66 let chainId = take(drop(this.bytes, 1), 1)
77
88 let chainIdW = base58'2W'
99
1010 let contractFilename = "futures_calculator.ride"
1111
1212 let mult8 = 100000000
1313
1414 let mult18BigInt = toBigInt(1000000000000000000)
1515
1616 let wavesDecimals = 8
1717
1818 let usdtDecimals = 6
1919
2020 let wavesString = "WAVES"
2121
2222 let queueItemSize = 32
2323
2424 let big0 = toBigInt(0)
2525
2626 let INDEX_LIST = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
2727
2828 let kMultisig = "%s__multisig"
2929
3030 func kStatus (dapp,txId) = makeString(["%s__status", dapp, txId], separator)
3131
3232
3333 let kShutdown = "%s__shutdown"
3434
3535 let kPublicKeys = "%s__publicKeys"
3636
3737 let kMatcherPublicKey = "%s__matcherPublicKey"
3838
3939 func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), mult18BigInt, toBigInt(origScaleMult))
4040
4141
4242 func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), mult18BigInt))
4343
4444
4545 func validateAddress (address) = isDefined(addressFromString(address))
4646
4747
4848 func wrapErr (s) = ((contractFilename + ": ") + s)
4949
5050
5151 func throwErr (s) = throw(wrapErr(s))
5252
5353
5454 func ensurePositive (v,s) = if ((v >= 0))
5555 then v
5656 else throwErr((s + " value should be positive"))
5757
5858
5959 func parseAssetId (input) = if ((input == wavesString))
6060 then unit
6161 else fromBase58String(input)
6262
6363
6464 func assetIdToString (input) = if ((input == unit))
6565 then wavesString
6666 else toBase58String(value(input))
6767
6868
6969 func getAssetInfoOrFail (assetId) = valueOrErrorMessage(assetInfo(assetId), wrapErr("invalid asset info"))
7070
7171
7272 func getAssetDecimalsOrFail (assetId) = match assetId {
7373 case _: Unit =>
7474 wavesDecimals
7575 case assetId: ByteVector =>
7676 getAssetInfoOrFail(assetId).decimals
7777 case _ =>
7878 throw("Match error")
7979 }
8080
8181
8282 func getAssetBalance (assetId,address) = match assetId {
8383 case _: Unit =>
8484 wavesBalance(address).available
8585 case assetId: ByteVector =>
8686 assetBalance(address, assetId)
8787 case _ =>
8888 throw("Match error")
8989 }
9090
9191
9292 func pow10 (n) = pow(10, 0, n, 0, 0, DOWN)
9393
9494
9595 func pow10Decimals (assetId) = pow10(getAssetDecimalsOrFail(assetId))
9696
9797
9898 let kFactoryAddress = "%s__factoryAddress"
9999
100100 let factoryAddressOption = match getString(this, kFactoryAddress) {
101101 case s: String =>
102102 addressFromString(s)
103103 case _: Unit =>
104104 unit
105105 case _ =>
106106 throw("Match error")
107107 }
108108
109109 let factoryAddress = valueOrErrorMessage(factoryAddressOption, wrapErr("invalid factory address"))
110110
111111 let kUsdtAssetId = "%s__usdtAssetId"
112112
113113 let usdtAssetIdOption = match getString(factoryAddress, kUsdtAssetId) {
114114 case s: String =>
115115 parseAssetId(s)
116116 case _: Unit =>
117117 unit
118118 case _ =>
119119 throw("Match error")
120120 }
121121
122122 let usdtAssetId = valueOrErrorMessage(usdtAssetIdOption, wrapErr("invalid usdt asset id"))
123123
124124 let kPricesAddress = "%s__calculatorAddress"
125125
126126 let shutdown = valueOrElse(getBoolean(factoryAddress, kShutdown), false)
127127
128128 func mustAddress (caller,address) = if ((caller == address))
129129 then true
130130 else throwErr("permission denied")
131131
132132
133133 func mustThis (caller) = mustAddress(caller, this)
134134
135135
136136 func mustFactory (caller) = mustAddress(caller, factoryAddress)
137137
138138
139139 func mustAdmin (callerPublicKey) = {
140140 let multisig = addressFromStringValue(getStringValue(factoryAddress, kMultisig))
141141 let publicKeysList = split(getStringValue(multisig, kPublicKeys), separator)
142142 if (containsElement(publicKeysList, toBase58String(callerPublicKey)))
143143 then true
144144 else throwErr("not allowed")
145145 }
146146
147147
148148 let kAccountScript = "%s__accountScript"
149149
150150 func accountScript () = valueOrErrorMessage(getBinary(factoryAddress, kAccountScript), wrapErr("account script is not set"))
151151
152152
153153 let kRewardAmount = "%s__rewardAmount"
154154
155155 func rewardAmount () = valueOrErrorMessage(getInteger(factoryAddress, kRewardAmount), wrapErr("reward amount is not set"))
156156
157157
158158 let kAccountsLimit = "%s__accountsLimit"
159159
160160 let accountsLimitDefault = 20
161161
162162 func accountsLimit () = valueOrElse(getInteger(factoryAddress, kAccountsLimit), accountsLimitDefault)
163163
164164
165165 func kDeposited (accountAddress) = makeString(["%s%s", "deposited", toString(accountAddress)], separator)
166166
167167
168168 func depositedOption (accountAddress) = getInteger(factoryAddress, kDeposited(accountAddress))
169169
170170
171171 func kCredit (accountAddress,assetId) = makeString(["%s%s%s", "credit", toString(accountAddress), assetIdToString(assetId)], separator)
172172
173173
174174 func creditOption (accountAddress,assetId) = getInteger(factoryAddress, kCredit(accountAddress, assetId))
175175
176176
177177 func kLeverage (accountAddress) = makeString(["%s%s", "leverage", toString(accountAddress)], separator)
178178
179179
180180 func kRequestLeverage (requestId) = makeString(["%s%s", "requestLeverage", toBase58String(requestId)], separator)
181181
182182
183183 func kSyntheticAssetId (baseAssetId) = makeString(["%s%s", "syntheticAssetId", assetIdToString(baseAssetId)], separator)
184184
185185
186186 func kBaseAssetId (syntheticAssetId) = makeString(["%s%s", "baseAssetId", assetIdToString(syntheticAssetId)], separator)
187187
188188
189189 let REQUEST_STATUS_EMPTY = 0
190190
191191 let REQUEST_STATUS_READY = 1
192192
193193 func kRequestStatus (requestId) = makeString(["%s%s", toBase58String(requestId), "status"], separator)
194194
195195
196196 func kAccountCreatorPublicKey (accountAddress) = makeString(["%s%s", toString(accountAddress), "creatorPublicKey"], separator)
197197
198198
199199 func kRequestOwnerPublicKey (requestId) = makeString(["%s%s", toBase58String(requestId), "ownerPublicKey"], separator)
200200
201201
202202 func kRequestAmountAssetId (requestId) = makeString(["%s%s", toBase58String(requestId), "amountAssetId"], separator)
203203
204204
205205 func kRequestPriceAssetId (requestId) = makeString(["%s%s", toBase58String(requestId), "priceAssetId"], separator)
206206
207207
208208 func kRequestIdToAccountPublicKey (requestId) = makeString(["%s%s", toBase58String(requestId), "requestIdToAccountPublicKey"], separator)
209209
210210
211211 func kAccountAddressToRequestId (accountAddress) = makeString(["%s%s", toString(accountAddress), "accountAddressToRequestId"], separator)
212212
213213
214214 func kRequestsQueue () = makeString(["%s", "requestsQueue"], separator)
215215
216216
217217 func requestsQueue () = valueOrElse(getBinary(factoryAddress, kRequestsQueue()), base58'')
218218
219219
220220 func kAccountsQueue () = makeString(["%s", "accountsQueue"], separator)
221221
222222
223223 func accountsQueue () = valueOrElse(getBinary(factoryAddress, kAccountsQueue()), base58'')
224224
225225
226226 func kRequestsByOwner (ownerAddress) = makeString(["%s%s", "requests", toString(ownerAddress)], separator)
227227
228228
229229 func requestsByOwner (ownerAddress) = valueOrElse(getBinary(factoryAddress, kRequestsByOwner(ownerAddress)), base58'')
230230
231231
232232 func kPairAllowed (amountAssetId,priceAssetId) = makeString(["%s%s%s", assetIdToString(amountAssetId), assetIdToString(priceAssetId), "pairAllowed"], separator)
233233
234234
235235 func pairAllowed (amountAssetId,priceAssetId) = valueOrElse(getBoolean(factoryAddress, kPairAllowed(amountAssetId, priceAssetId)), false)
236236
237237
238238 func kPrice (assetId) = makeString(["%s", assetIdToString(assetId)], separator)
239239
240240
241241 func kPairPricesListKey (amountAssetId,priceAssetId) = makeString(["%s%s%s", assetIdToString(amountAssetId), assetIdToString(priceAssetId), "pairSettingPrices"], separator)
242242
243243
244244 func getPairPricesList (amountAssetId,priceAssetId) = match getString(factoryAddress, kPairPricesListKey(amountAssetId, priceAssetId)) {
245245 case s: String =>
246246 split(s, separator)
247247 case _ =>
248248 nil
249249 }
250250
251251
252252 func kPairSettingsKey (amountAssetId,priceAssetId,priceString) = makeString(["%s%s%d%s", assetIdToString(amountAssetId), assetIdToString(priceAssetId), priceString, "settings"], separator)
253253
254254
255255 func getCurrentPrice (assetId) = {
256256 let matcherPublicKey = fromBase58String(valueOrErrorMessage(getString(factoryAddress, kMatcherPublicKey), wrapErr("invalid matcher public key")))
257257 let matcherAddress = addressFromPublicKey(matcherPublicKey)
258258 let price = valueOrErrorMessage(getInteger(matcherAddress, kPrice(assetId)), wrapErr(("invalid price, assetId = " + assetIdToString(assetId))))
259259 price
260260 }
261261
262262
263263 func calcTotalCredit (creditA,creditB,currentPrice) = (fraction(creditA, currentPrice, mult18BigInt) + creditB)
264264
265265
266266 func calcTotalBalance (balanceA,balanceB,currentPrice) = (fraction(balanceA, currentPrice, mult18BigInt) + balanceB)
267267
268268
269269 func calcPnl (totalBalance,totalCredit) = (totalBalance - totalCredit)
270270
271271
272272 func calcCreditAvailable (deposit,leverage,totalCredit) = (fraction(deposit, leverage, mult18BigInt) - totalCredit)
273273
274274
275275 func calcRealInCredit (credit,balance) = if ((credit > big0))
276276 then (credit - balance)
277277 else big0
278278
279279
280280 func calcFree (credit,balance) = if ((credit > big0))
281281 then (balance - credit)
282282 else big0
283283
284284
285285 func calcShortPrice (free,realInCredit) = if ((realInCredit > big0))
286286 then max([big0, fraction(free, mult18BigInt, realInCredit)])
287287 else big0
288288
289289
290290 func calcLongPrice (free,realInCredit) = if ((realInCredit > big0))
291291 then max([big0, fraction(realInCredit, mult18BigInt, free)])
292292 else big0
293293
294294
295295 func calcStartMargin (realInCreditA,realInCreditB,currentPrice,settingsMargin) = fraction((fraction(realInCreditA, currentPrice, mult18BigInt) + realInCreditB), settingsMargin, mult18BigInt)
296296
297297
298298 func calcMarginSupply (settingsMarginSupply,settingsMargin,startMargin) = fraction(settingsMarginSupply, startMargin, settingsMargin)
299299
300300
301301 func calcLiquidationPrice (deposit,marginSupply,realInCreditA,realInCreditB,shortPrice,longPrice) = {
302302 let liquidationPriceA = if ((realInCreditA > big0))
303303 then (((deposit - marginSupply) / realInCreditA) + shortPrice)
304304 else big0
305305 let liquidationPriceB = if ((realInCreditB > big0))
306306 then (longPrice - ((deposit - marginSupply) / (realInCreditA / longPrice)))
307307 else big0
308308 (liquidationPriceA + liquidationPriceB)
309309 }
310310
311311
312312 func getRequestId (accountAddress) = {
313313 let requestId = fromBase58String(valueOrErrorMessage(getString(factoryAddress, kAccountAddressToRequestId(accountAddress)), wrapErr("invalid account address: request id is undefined")))
314314 requestId
315315 }
316316
317317
318318 func getAccountAssets (accountAddress) = {
319319 let requestId = getRequestId(accountAddress)
320320 let amountAssetId = parseAssetId(valueOrErrorMessage(getString(factoryAddress, kRequestAmountAssetId(requestId)), wrapErr("invalid amount asset id")))
321321 let priceAssetId = parseAssetId(valueOrErrorMessage(getString(factoryAddress, kRequestPriceAssetId(requestId)), wrapErr("invalid amount price id")))
322322 $Tuple2(amountAssetId, priceAssetId)
323323 }
324324
325325
326326 func getAccountOwnerPublicKey (accountAddress) = {
327327 let requestId = getRequestId(accountAddress)
328328 let requestOwnerPublicKey = valueOrErrorMessage(getBinary(factoryAddress, kRequestOwnerPublicKey(requestId)), wrapErr("invalid amount asset id"))
329329 requestOwnerPublicKey
330330 }
331331
332332
333333 func getAccountInfoInternal (accountAddress) = {
334334 let $t01118711255 = getAccountAssets(accountAddress)
335335 let amountAssetId = $t01118711255._1
336336 let priceAssetId = $t01118711255._2
337337 let leverage = valueOrErrorMessage(getInteger(factoryAddress, kLeverage(accountAddress)), wrapErr("leverage should be defined"))
338338 let requestId = getRequestId(accountAddress)
339339 let accountPublicKey = valueOrErrorMessage(getBinary(factoryAddress, kRequestIdToAccountPublicKey(requestId)), "kRequestIdToAccountPublicKey not found")
340340 let deposited = valueOrElse(depositedOption(accountAddress), 0)
341341 let currentPrice = toX18(getCurrentPrice(amountAssetId), pow10Decimals(priceAssetId))
342342 let creditA = valueOrElse(getInteger(factoryAddress, kCredit(accountAddress, amountAssetId)), 0)
343343 let creditB = valueOrElse(getInteger(factoryAddress, kCredit(accountAddress, priceAssetId)), 0)
344344 let status = valueOrErrorMessage(getInteger(factoryAddress, kRequestStatus(requestId)), ("status not found. RequestId = " + toBase58String(requestId)))
345- $Tuple12(assetIdToString(amountAssetId), assetIdToString(priceAssetId), toString(accountAddress), toBase58String(accountPublicKey), leverage, toBase58String(requestId), deposited, creditA, creditB, getAssetBalance(parseAssetId(kSyntheticAssetId(amountAssetId)), accountAddress), getAssetBalance(parseAssetId(kSyntheticAssetId(priceAssetId)), accountAddress), status)
345+ $Tuple12(assetIdToString(amountAssetId), assetIdToString(priceAssetId), toString(accountAddress), toBase58String(accountPublicKey), leverage, toBase58String(requestId), deposited, creditA, creditB, getAssetBalance(parseAssetId(getStringValue(kSyntheticAssetId(amountAssetId))), accountAddress), getAssetBalance(parseAssetId(getStringValue(kSyntheticAssetId(priceAssetId))), accountAddress), status)
346346 }
347347
348348
349349 @Callable(i)
350350 func init (factoryAddressStr) = {
351351 let checkCaller = mustThis(i.caller)
352352 if ((checkCaller == checkCaller))
353353 then $Tuple2([StringEntry(kFactoryAddress, factoryAddressStr)], unit)
354354 else throw("Strict value is not equal to itself.")
355355 }
356356
357357
358358
359359 @Callable(i)
360360 func requestAccount (callerPublicKey,args) = {
361361 let ckecks = [if (!(shutdown))
362362 then true
363363 else throwErr("not allowed"), mustFactory(i.caller)]
364364 if ((ckecks == ckecks))
365365 then {
366366 let amountAssetIdStr = args[0]
367367 let priceAssetIdStr = args[1]
368368 let leverage = valueOrErrorMessage(parseInt(args[2]), wrapErr("invalid leverage"))
369369 let userAddress = addressFromPublicKey(callerPublicKey)
370370 let requestId = sha256(((userAddress.bytes + fromBase58String(amountAssetIdStr)) + fromBase58String(priceAssetIdStr)))
371371 let amountAssetId = parseAssetId(amountAssetIdStr)
372372 let priceAssetId = parseAssetId(priceAssetIdStr)
373373 let userRequestsNumber = (size(kRequestsByOwner(userAddress)) / queueItemSize)
374374 let checks = [if ((size(i.payments) == 1))
375375 then true
376376 else throwErr("1 payment is required"), if ((i.payments[0].assetId == unit))
377377 then true
378378 else throwErr("invalid asset"), if ((i.payments[0].amount == rewardAmount()))
379379 then true
380380 else throwErr("invalid amount"), if (pairAllowed(amountAssetId, priceAssetId))
381381 then true
382382 else throwErr("pair is not allowed"), if ((getInteger(factoryAddress, kRequestStatus(requestId)) == unit))
383383 then true
384384 else throwErr("account is already exists"), if ((accountsLimit() > userRequestsNumber))
385385 then true
386386 else throwErr(("accounts limit is " + toString(accountsLimit())))]
387387 if ((checks == checks))
388388 then {
389- let $t01415715690 = if ((size(accountsQueue()) == 0))
389+ let $t01419115724 = if ((size(accountsQueue()) == 0))
390390 then $Tuple2([ScriptTransfer(factoryAddress, rewardAmount(), unit)], [invoke(factoryAddress, "integerEntry", [kRequestStatus(requestId), REQUEST_STATUS_EMPTY], nil), invoke(factoryAddress, "binaryEntry", [kRequestsQueue(), (requestsQueue() + requestId)], nil), invoke(factoryAddress, "integerEntry", [kRequestLeverage(requestId), leverage], nil)])
391391 else {
392392 let accountPublicKey = take(accountsQueue(), queueItemSize)
393393 let accountAddress = addressFromPublicKey(accountPublicKey)
394394 let creatorAddress = addressFromPublicKey(valueOrErrorMessage(getBinary(factoryAddress, kAccountCreatorPublicKey(accountAddress)), wrapErr("invalid creator public key")))
395395 $Tuple2([ScriptTransfer(creatorAddress, rewardAmount(), unit)], [invoke(factoryAddress, "binaryEntry", [kAccountsQueue(), drop(accountsQueue(), queueItemSize)], nil), invoke(factoryAddress, "integerEntry", [kRequestStatus(requestId), REQUEST_STATUS_READY], nil), invoke(factoryAddress, "binaryEntry", [kRequestIdToAccountPublicKey(requestId), accountPublicKey], nil), invoke(factoryAddress, "stringEntry", [kAccountAddressToRequestId(accountAddress), toBase58String(requestId)], nil), invoke(factoryAddress, "integerEntry", [kLeverage(accountAddress), leverage], nil)])
396396 }
397- let actions = $t01415715690._1
398- let factoryActions = $t01415715690._2
397+ let actions = $t01419115724._1
398+ let factoryActions = $t01419115724._2
399399 $Tuple2(actions, (factoryActions ++ [invoke(factoryAddress, "binaryEntry", [kRequestOwnerPublicKey(requestId), callerPublicKey], nil), invoke(factoryAddress, "binaryEntry", [kRequestsByOwner(userAddress), (requestsByOwner(userAddress) + requestId)], nil), invoke(factoryAddress, "stringEntry", [kRequestAmountAssetId(requestId), amountAssetIdStr], nil), invoke(factoryAddress, "stringEntry", [kRequestPriceAssetId(requestId), priceAssetIdStr], nil)]))
400400 }
401401 else throw("Strict value is not equal to itself.")
402402 }
403403 else throw("Strict value is not equal to itself.")
404404 }
405405
406406
407407
408408 @Callable(i)
409409 func addAccount (callerPublicKey,args) = {
410410 let ckecks = [if (!(shutdown))
411411 then true
412412 else throwErr("not allowed"), mustFactory(i.caller)]
413413 if ((ckecks == ckecks))
414414 then {
415415 let creatorPublicKey = fromBase58String(args[0])
416416 let accountPublicKey = callerPublicKey
417417 let accountAddress = addressFromPublicKey(callerPublicKey)
418418 let creatorAddress = addressFromPublicKey(creatorPublicKey)
419419 let checks = [if ((getBinary(factoryAddress, kAccountCreatorPublicKey(accountAddress)) == unit))
420420 then true
421421 else throwErr("account is already exists"), if ( match scriptHash(accountAddress) {
422422 case b: ByteVector =>
423423 (b == blake2b256_32Kb(accountScript()))
424424 case _ =>
425425 false
426426 })
427427 then true
428428 else throwErr("invalid script")]
429429 if ((checks == checks))
430430 then {
431- let $t01694518186 = if ((size(requestsQueue()) == 0))
431+ let $t01697918220 = if ((size(requestsQueue()) == 0))
432432 then $Tuple2(nil, [invoke(factoryAddress, "binaryEntry", [kAccountsQueue(), (accountsQueue() + accountPublicKey)], nil)])
433433 else {
434434 let requestId = take(requestsQueue(), queueItemSize)
435435 let leverage = valueOrErrorMessage(getInteger(factoryAddress, kRequestLeverage(requestId)), wrapErr("request's leverage is undefined"))
436436 $Tuple2(nil, [invoke(factoryAddress, "integerEntry", [kRequestStatus(requestId), REQUEST_STATUS_READY], nil), invoke(factoryAddress, "binaryEntry", [kRequestIdToAccountPublicKey(requestId), accountPublicKey], nil), invoke(factoryAddress, "binaryEntry", [kRequestsQueue(), drop(requestsQueue(), queueItemSize)], nil), invoke(factoryAddress, "stringEntry", [kAccountAddressToRequestId(accountAddress), toBase58String(requestId)], nil), invoke(factoryAddress, "transferWaves", [creatorAddress.bytes, rewardAmount()], nil), invoke(factoryAddress, "integerEntry", [kLeverage(accountAddress), leverage], nil)])
437437 }
438- let actions = $t01694518186._1
439- let factoryActions = $t01694518186._2
438+ let actions = $t01697918220._1
439+ let factoryActions = $t01697918220._2
440440 $Tuple2(actions, (factoryActions ++ [invoke(factoryAddress, "binaryEntry", [kAccountCreatorPublicKey(accountAddress), creatorPublicKey], nil)]))
441441 }
442442 else throw("Strict value is not equal to itself.")
443443 }
444444 else throw("Strict value is not equal to itself.")
445445 }
446446
447447
448448
449449 @Callable(i)
450450 func deposit (callerPublicKey,args) = {
451451 let payment = i.payments[0]
452452 let accountAddress = valueOrErrorMessage(addressFromString(args[0]), wrapErr("invalid account address"))
453453 let ckecks = [if (!(shutdown))
454454 then true
455455 else throwErr("not allowed"), mustFactory(i.caller), if ((size(i.payments) == 1))
456456 then true
457457 else throwErr("1 payment is required"), if ((payment.assetId == usdtAssetId))
458458 then true
459459 else throwErr("invalid asset"), if ((getInteger(factoryAddress, kRequestStatus(getRequestId(accountAddress))) == REQUEST_STATUS_READY))
460460 then true
461461 else throwErr("account is not ready")]
462462 if ((ckecks == ckecks))
463463 then {
464464 let actions = [ScriptTransfer(accountAddress, payment.amount, payment.assetId)]
465465 let factoryActions = [invoke(factoryAddress, "integerEntry", [kDeposited(accountAddress), (valueOrElse(depositedOption(accountAddress), 0) + payment.amount)], nil)]
466466 $Tuple2(actions, factoryActions)
467467 }
468468 else throw("Strict value is not equal to itself.")
469469 }
470470
471471
472472
473473 @Callable(i)
474474 func withdraw (callerPublicKey,args) = {
475475 let ckecks = [if (!(shutdown))
476476 then true
477477 else throwErr("not allowed"), mustFactory(i.caller)]
478478 if ((ckecks == ckecks))
479479 then {
480480 let userAddress = addressFromPublicKey(callerPublicKey)
481481 let accountAddress = valueOrErrorMessage(addressFromString(args[0]), wrapErr("invalid account address"))
482482 let amount = valueOrErrorMessage(parseInt(args[1]), wrapErr("invalid amount"))
483483 let assetId = parseAssetId(args[2])
484484 let invocations = [invoke(accountAddress, "transferAsset", [userAddress.bytes, amount, assetId], nil)]
485485 $Tuple2(nil, invocations)
486486 }
487487 else throw("Strict value is not equal to itself.")
488488 }
489489
490490
491491
492492 @Callable(i)
493493 func borrow (callerPublicKey,args) = {
494494 let accountAddress = valueOrErrorMessage(addressFromString(args[0]), wrapErr("invalid account address"))
495495 let assetIdRequested = parseAssetId(args[1])
496496 let amountRequested = ensurePositive(valueOrErrorMessage(parseInt(args[2]), wrapErr("invalid requested amount")), "requested amount")
497497 let accountOwnerPublicKey = getAccountOwnerPublicKey(accountAddress)
498498 let userAddress = addressFromPublicKey(callerPublicKey)
499499 let ckecks = [if (!(shutdown))
500500 then true
501501 else throwErr("not allowed"), mustFactory(i.caller), if ((callerPublicKey == accountOwnerPublicKey))
502502 then true
503503 else throwErr("can be called by account owner only")]
504504 if ((ckecks == ckecks))
505505 then {
506506 let amountAssetId = getAccountAssets(accountAddress)._1
507507 let deposited = toX18(valueOrElse(depositedOption(accountAddress), 0), pow10Decimals(usdtAssetId))
508508 let currentPrice = toX18(getCurrentPrice(amountAssetId), pow10Decimals(usdtAssetId))
509509 let creditA = toX18(valueOrElse(getInteger(factoryAddress, kCredit(accountAddress, amountAssetId)), 0), pow10Decimals(amountAssetId))
510510 let creditB = toX18(valueOrElse(getInteger(factoryAddress, kCredit(accountAddress, usdtAssetId)), 0), pow10Decimals(usdtAssetId))
511511 let totalCredit = calcTotalCredit(creditA, creditB, currentPrice)
512512 let leverage = toX18(valueOrErrorMessage(getInteger(factoryAddress, kLeverage(accountAddress)), wrapErr("leverage should be defined")), 1)
513513 let creditAvailableUsdt = calcCreditAvailable(deposited, leverage, totalCredit)
514514 let creditAvailable = if ((assetIdRequested == amountAssetId))
515515 then fromX18(fraction(creditAvailableUsdt, mult18BigInt, currentPrice), pow10Decimals(amountAssetId))
516516 else if ((assetIdRequested == usdtAssetId))
517517 then fromX18(creditAvailableUsdt, pow10Decimals(usdtAssetId))
518518 else throwErr("invalid requested asset id")
519519 let syntheticAssetId = parseAssetId(valueOrErrorMessage(getString(factoryAddress, kSyntheticAssetId(assetIdRequested)), wrapErr("synthetic asset for requested asset is undefined")))
520520 let amountToSend = if ((creditAvailable >= amountRequested))
521521 then amountRequested
522522 else throwErr(("credit available = " + toString(creditAvailable)))
523523 let factoryActions = [invoke(factoryAddress, "integerEntry", [kCredit(accountAddress, assetIdRequested), (valueOrElse(creditOption(accountAddress, assetIdRequested), 0) + amountToSend)], nil), invoke(factoryAddress, "transferAsset", [userAddress.bytes, amountToSend, syntheticAssetId], nil)]
524524 $Tuple2(nil, [factoryActions, creditAvailable])
525525 }
526526 else throw("Strict value is not equal to itself.")
527527 }
528528
529529
530530
531531 @Callable(i)
532532 func repay (callerPublicKey,args) = {
533533 let ckecks = [if (!(shutdown))
534534 then true
535535 else throwErr("not allowed"), mustFactory(i.caller)]
536536 if ((ckecks == ckecks))
537537 then $Tuple2(nil, unit)
538538 else throw("Strict value is not equal to itself.")
539539 }
540540
541541
542542
543543 @Callable(i)
544544 func setPairAllowance (callerPublicKey,args) = {
545545 let ckecks = [if (!(shutdown))
546546 then true
547547 else throwErr("not allowed"), mustFactory(i.caller), mustAdmin(callerPublicKey)]
548548 if ((ckecks == ckecks))
549549 then {
550550 let amountAssetIdStr = args[0]
551551 let priceAssetIdStr = args[1]
552552 let allowStr = args[2]
553553 let amountAssetId = parseAssetId(amountAssetIdStr)
554554 let priceAssetId = parseAssetId(priceAssetIdStr)
555555 let allow = (allowStr == "true")
556556 let invocations = [invoke(factoryAddress, "booleanEntry", [kPairAllowed(amountAssetId, priceAssetId), allow], nil)]
557557 $Tuple2(nil, invocations)
558558 }
559559 else throw("Strict value is not equal to itself.")
560560 }
561561
562562
563563
564564 @Callable(i)
565565 func addSyntheticAsset (callerPublicKey,args) = {
566566 let baseAssetId = parseAssetId(args[0])
567567 let syntheticAssetId = parseAssetId(args[1])
568568 let ckecks = [if (!(shutdown))
569569 then true
570570 else throwErr("not allowed"), mustFactory(i.caller), mustAdmin(callerPublicKey), if ((getString(factoryAddress, kSyntheticAssetId(baseAssetId)) == unit))
571571 then true
572572 else throwErr("invalid base asset"), if ((getString(factoryAddress, kBaseAssetId(syntheticAssetId)) == unit))
573573 then true
574574 else throwErr("invalid synthetic asset")]
575575 if ((ckecks == ckecks))
576576 then {
577577 let invocations = [invoke(factoryAddress, "stringEntry", [kSyntheticAssetId(baseAssetId), assetIdToString(syntheticAssetId)], nil), invoke(factoryAddress, "stringEntry", [kBaseAssetId(syntheticAssetId), assetIdToString(baseAssetId)], nil)]
578578 $Tuple2(nil, invocations)
579579 }
580580 else throw("Strict value is not equal to itself.")
581581 }
582582
583583
584584
585585 @Callable(i)
586586 func doShutdown (callerPublicKey,args) = {
587587 let checks = [mustFactory(i.caller), mustAdmin(callerPublicKey)]
588588 if ((checks == checks))
589589 then {
590590 let invocations = [invoke(factoryAddress, "booleanEntry", [kShutdown, true], nil)]
591591 $Tuple2(nil, invocations)
592592 }
593593 else throw("Strict value is not equal to itself.")
594594 }
595595
596596
597597
598598 @Callable(i)
599599 func getAccountInfoREADONLY (callerPublicKey,args) = {
600600 let checks = [mustFactory(i.caller)]
601601 if ((checks == checks))
602602 then {
603603 let accountAddress = valueOrErrorMessage(addressFromString(args[0]), wrapErr("invalid account address"))
604604 let data = getAccountInfoInternal(accountAddress)
605605 $Tuple2(nil, data)
606606 }
607607 else throw("Strict value is not equal to itself.")
608608 }
609609
610610
611611
612612 @Callable(i)
613613 func getUserInfoREADONLY (callerPublicKey,args) = {
614614 let checks = [mustFactory(i.caller)]
615615 if ((checks == checks))
616616 then {
617617 let userAddress = valueOrErrorMessage(addressFromString(args[0]), wrapErr("invalid user address"))
618618 let userRequests = valueOrElse(getBinary(factoryAddress, kRequestsByOwner(userAddress)), base58'')
619619 let userRequestsNumber = (size(userRequests) / queueItemSize)
620620 func getAccountsData (acc,count) = {
621- let $t02562225664 = acc
622- let accDataList = $t02562225664._1
623- let rawBytes = $t02562225664._2
624- let maxSize = $t02562225664._3
621+ let $t02565625698 = acc
622+ let accDataList = $t02565625698._1
623+ let rawBytes = $t02565625698._2
624+ let maxSize = $t02565625698._3
625625 if ((maxSize > count))
626626 then {
627627 let requestId = take(rawBytes, queueItemSize)
628628 let newRawBytes = drop(rawBytes, queueItemSize)
629629 let accountPublicKey = valueOrErrorMessage(getBinary(factoryAddress, kRequestIdToAccountPublicKey(requestId)), "kRequestIdToAccountPublicKey not found")
630630 let accountAddress = addressFromPublicKey(accountPublicKey)
631631 let data = getAccountInfoInternal(accountAddress)
632632 $Tuple3((accDataList :+ data), newRawBytes, maxSize)
633633 }
634634 else acc
635635 }
636636
637- let $t02616826273 = {
637+ let $t02620226307 = {
638638 let $l = INDEX_LIST
639639 let $s = size($l)
640640 let $acc0 = $Tuple3(nil, userRequests, userRequestsNumber)
641641 func $f0_1 ($a,$i) = if (($i >= $s))
642642 then $a
643643 else getAccountsData($a, $l[$i])
644644
645645 func $f0_2 ($a,$i) = if (($i >= $s))
646646 then $a
647647 else throw("List size exceeds 20")
648648
649649 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
650650 }
651- let accDataList = $t02616826273._1
652- let _a = $t02616826273._2
653- let _b = $t02616826273._3
651+ let accDataList = $t02620226307._1
652+ let _a = $t02620226307._2
653+ let _b = $t02620226307._3
654654 $Tuple2(nil, accDataList)
655655 }
656656 else throw("Strict value is not equal to itself.")
657657 }
658658
659659
660660
661661 @Callable(i)
662662 func getPairSettingsInfoREADONLY (callerPublicKey,args) = {
663663 let amountAsset = parseAssetId(args[0])
664664 let priceAsset = parseAssetId(args[1])
665665 let pricesList = getPairPricesList(amountAsset, priceAsset)
666666 func getPairSettings (acc,pricesString) = {
667667 let settingsKey = kPairSettingsKey(amountAsset, priceAsset, pricesString)
668668 let settingsStringValue = getStringValue(factoryAddress, settingsKey)
669669 let sList = split(settingsStringValue, separator)
670670 let price = parseInt(pricesString)
671671 let maxLeverage = parseInt(sList[1])
672672 let initialMargin = parseInt(sList[2])
673673 let maintenanceMargin = parseInt(sList[3])
674674 (acc :+ $Tuple4(price, maxLeverage, initialMargin, maintenanceMargin))
675675 }
676676
677677 let data = {
678678 let $l = pricesList
679679 let $s = size($l)
680680 let $acc0 = nil
681681 func $f0_1 ($a,$i) = if (($i >= $s))
682682 then $a
683683 else getPairSettings($a, $l[$i])
684684
685685 func $f0_2 ($a,$i) = if (($i >= $s))
686686 then $a
687687 else throw("List size exceeds 20")
688688
689689 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
690690 }
691691 $Tuple2(nil, data)
692692 }
693693
694694
695695
696696 @Callable(i)
697697 func editPairSettings (callerPublicKey,args) = {
698698 let checks = [mustFactory(i.caller)]
699699 if ((checks == checks))
700700 then {
701701 let amountAsset = parseAssetId(args[0])
702702 let priceAsset = parseAssetId(args[1])
703703 let price = args[2]
704704 let maxLeverage = args[3]
705705 let initialMargin = args[4]
706706 let maintenanceMargin = args[5]
707707 let pairPricesListKey = kPairPricesListKey(amountAsset, priceAsset)
708708 let settingsKey = kPairSettingsKey(amountAsset, priceAsset, price)
709709 let pricesList = getPairPricesList(amountAsset, priceAsset)
710710 let newList = match indexOf(pricesList, price) {
711711 case ind: Int =>
712712 pricesList
713713 case _ =>
714714 (pricesList :+ price)
715715 }
716716 let check2 = [valueOrErrorMessage(parseInt(price), wrapErr("price value is not an Int")), valueOrErrorMessage(maxLeverage, wrapErr("maxLeverage value is not an Int")), valueOrErrorMessage(initialMargin, wrapErr("initialMargin value is not an Int")), valueOrErrorMessage(maintenanceMargin, wrapErr("maintenanceMargin value is not an Int")), if ((20 >= size(newList)))
717717 then true
718718 else throwErr("exceeded max prices list size (20)")]
719719 if ((check2 == check2))
720720 then {
721721 let pairSettingValue = makeString(["%s%s%s", maxLeverage, initialMargin, maintenanceMargin], separator)
722722 let invocations = [invoke(factoryAddress, "stringEntry", [kPairPricesListKey(amountAsset, priceAsset), makeString(newList, separator)], nil), invoke(factoryAddress, "stringEntry", [kPairSettingsKey(amountAsset, priceAsset, price), pairSettingValue], nil)]
723723 $Tuple2(nil, invocations)
724724 }
725725 else throw("Strict value is not equal to itself.")
726726 }
727727 else throw("Strict value is not equal to itself.")
728728 }
729729
730730
731731
732732 @Callable(i)
733733 func deletePairSettings (callerPublicKey,args) = {
734734 let checks = [mustFactory(i.caller)]
735735 if ((checks == checks))
736736 then {
737737 let amountAsset = parseAssetId(args[0])
738738 let priceAsset = parseAssetId(args[1])
739739 let price = args[2]
740740 let settingsKey = kPairSettingsKey(amountAsset, priceAsset, price)
741741 let pairPricesListKey = kPairPricesListKey(amountAsset, priceAsset)
742742 let pricesList = getPairPricesList(amountAsset, priceAsset)
743743 let newList = match indexOf(pricesList, price) {
744744 case ind: Int =>
745745 removeByIndex(pricesList, ind)
746746 case _ =>
747747 pricesList
748748 }
749749 let invocations = [invoke(factoryAddress, "deleteEntry", [settingsKey], nil), if ((size(newList) == 0))
750750 then invoke(factoryAddress, "deleteEntry", [kPairPricesListKey(amountAsset, priceAsset)], nil)
751751 else invoke(factoryAddress, "stringEntry", [kPairPricesListKey(amountAsset, priceAsset), makeString(newList, separator)], nil)]
752752 $Tuple2(nil, invocations)
753753 }
754754 else throw("Strict value is not equal to itself.")
755755 }
756756
757757
758758 @Verifier(tx)
759759 func verify () = if (if (isDefined(factoryAddressOption))
760760 then isDefined(getString(factoryAddress, kMultisig))
761761 else false)
762762 then match getString(factoryAddress, kMultisig) {
763763 case multisig: String =>
764764 let statusKey = kStatus(toString(this), toBase58String(tx.id))
765765 let status = valueOrElse(getBoolean(addressFromStringValue(multisig), statusKey), false)
766766 status
767767 case _ =>
768768 false
769769 }
770770 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
771771

github/deemru/w8io/169f3d6 
107.60 ms