tx · A7YETDhSCzJGMoQUktAxZAMXJLmVrnG4dmGnquGdajnc

3N3c8hF3E1qiSZ27uH3XZvtWSso9QFckZUb:  -0.03300000 Waves

2024.09.17 11:07 [3287404] smart account 3N3c8hF3E1qiSZ27uH3XZvtWSso9QFckZUb > SELF 0.00000000 Waves

{ "type": 13, "id": "A7YETDhSCzJGMoQUktAxZAMXJLmVrnG4dmGnquGdajnc", "fee": 3300000, "feeAssetId": null, "timestamp": 1726560418229, "version": 2, "chainId": 84, "sender": "3N3c8hF3E1qiSZ27uH3XZvtWSso9QFckZUb", "senderPublicKey": "9Dkh2UiuYRqFTQrAXgJJbJuG3Q6VDPhiYHrsdfQx42Zx", "proofs": [ "66q6hZrY5vMy683MSsreoJpCYV2PKNNVw7MJZPfWLX8Gqy3vnqUQg1vtKCRFzwsUFLHATDFzSt6aXpVsDKLDZ3Rj" ], "script": "base64:BwJnCAISAwoBCBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGF4ACXNlcGFyYXRvcgICX18AB2NoYWluSWQJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACGNoYWluSWRXAQFXABBjb250cmFjdEZpbGVuYW1lAhdmdXR1cmVzX2NhbGN1bGF0b3IucmlkZQAFbXVsdDgAgMLXLwAMbXVsdDE4QmlnSW50CQC2AgEAgICQu7rWrfANAA13YXZlc0RlY2ltYWxzAAgADHVzZHREZWNpbWFscwAGAAt3YXZlc1N0cmluZwIFV0FWRVMADXF1ZXVlSXRlbVNpemUAIAAEYmlnMAkAtgIBAAAACklOREVYX0xJU1QJAMwIAgAACQDMCAIAAQkAzAgCAAIJAMwIAgADCQDMCAIABAkAzAgCAAUJAMwIAgAGCQDMCAIABwkAzAgCAAgJAMwIAgAJCQDMCAIACgkAzAgCAAsJAMwIAgAMCQDMCAIADQkAzAgCAA4JAMwIAgAPCQDMCAIAEAkAzAg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AIFDmZhY3RvcnlBZGRyZXNzBQlrTXVsdGlzaWcHBAckbWF0Y2gwCQCdCAIFDmZhY3RvcnlBZGRyZXNzBQlrTXVsdGlzaWcDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAhtdWx0aXNpZwUHJG1hdGNoMAQJc3RhdHVzS2V5CQEHa1N0YXR1cwIJAKUIAQUEdGhpcwkA2AQBCAUCdHgCaWQEBnN0YXR1cwkBC3ZhbHVlT3JFbHNlAgkAmwgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQhtdWx0aXNpZwUJc3RhdHVzS2V5BwUGc3RhdHVzBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleZWY+XU=", "height": 3287404, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4JnZHetswEK2vsWqraSxe7r7vnkPPqWEAfEXWdgZV7kj Next: none Diff:
OldNewDifferences
224224 func requestsQueue () = valueOrElse(getBinary(factoryAddress, kRequestsQueue()), base58'')
225225
226226
227-func kAccountsQueue () = makeString(["%s", "accountsQueue"], separator)
228-
229-
230-func accountsQueue () = valueOrElse(getBinary(factoryAddress, kAccountsQueue()), base58'')
231-
232-
233227 func kRequestsByOwner (ownerAddress) = makeString(["%s%s", "requests", toString(ownerAddress)], separator)
234228
235229
338332
339333
340334 func getAccountInfoInternal (accountAddress) = {
341- let $t01142011488 = getAccountAssets(accountAddress)
342- let amountAssetId = $t01142011488._1
343- let priceAssetId = $t01142011488._2
335+ let $t01125511323 = getAccountAssets(accountAddress)
336+ let amountAssetId = $t01125511323._1
337+ let priceAssetId = $t01125511323._2
344338 let leverage = valueOrErrorMessage(getInteger(factoryAddress, kLeverage(accountAddress)), wrapErr("leverage should be defined"))
345339 let requestId = getRequestId(accountAddress)
346340 let accountPublicKey = valueOrErrorMessage(getBinary(factoryAddress, kRequestIdToAccountPublicKey(requestId)), "kRequestIdToAccountPublicKey not found")
447441 let priceAssetIdStr = args[1]
448442 let leverage = valueOrErrorMessage(parseInt(args[2]), wrapErr("invalid leverage"))
449443 let userAddress = addressFromPublicKey(callerPublicKey)
450- let requestId = sha256(((userAddress.bytes + fromBase58String(amountAssetIdStr)) + fromBase58String(priceAssetIdStr)))
444+ let requestId = sha256(i.transactionId)
451445 let amountAssetId = parseAssetId(amountAssetIdStr)
452446 let priceAssetId = parseAssetId(priceAssetIdStr)
453447 let userRequestsNumber = (size(kRequestsByOwner(userAddress)) / queueItemSize)
459453 then true
460454 else throwErr("invalid amount"), if (pairAllowed(amountAssetId, priceAssetId))
461455 then true
462- else throwErr("pair is not allowed"), if ((getInteger(factoryAddress, kRequestStatus(requestId)) == unit))
456+ else throwErr("pair is not allowed"), if ((leverage == 2))
457+ then true
458+ else throwErr("leverage is not allowed"), if ((getInteger(factoryAddress, kRequestStatus(requestId)) == unit))
463459 then true
464460 else throwErr("account is already exists"), if ((accountsLimit() > userRequestsNumber))
465461 then true
466462 else throwErr(("accounts limit is " + toString(accountsLimit())))]
467463 if ((checks == checks))
468464 then {
469- let $t01862820083 = $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)])
470- let actions = $t01862820083._1
471- let factoryActions = $t01862820083._2
472- $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)]))
465+ let actions = [ScriptTransfer(factoryAddress, rewardAmount(), unit)]
466+ $Tuple2(actions, [invoke(factoryAddress, "integerEntry", [kRequestStatus(requestId), REQUEST_STATUS_EMPTY], nil), invoke(factoryAddress, "binaryEntry", [kRequestsQueue(), (requestsQueue() + requestId)], nil), invoke(factoryAddress, "binaryEntry", [kRequestsByOwner(userAddress), (requestsByOwner(userAddress) + requestId)], nil), invoke(factoryAddress, "binaryEntry", [kRequestOwnerPublicKey(requestId), callerPublicKey], nil), invoke(factoryAddress, "stringEntry", [kRequestAmountAssetId(requestId), amountAssetIdStr], nil), invoke(factoryAddress, "stringEntry", [kRequestPriceAssetId(requestId), priceAssetIdStr], nil), invoke(factoryAddress, "integerEntry", [kRequestLeverage(requestId), leverage], nil)])
473467 }
474468 else throw("Strict value is not equal to itself.")
475469 }
470+ else throw("Strict value is not equal to itself.")
471+ }
472+
473+
474+
475+@Callable(i)
476+func editAccount (callerPublicKey,args) = {
477+ let accountAddress = valueOrErrorMessage(addressFromString(args[0]), wrapErr("invalid account address"))
478+ let amountAssetIdStr = args[1]
479+ let priceAssetIdStr = args[2]
480+ let leverage = valueOrErrorMessage(parseInt(args[3]), wrapErr("invalid leverage"))
481+ let requestId = getRequestId(accountAddress)
482+ let ownerPublicKey = getAccountOwnerPublicKey(accountAddress)
483+ let amountAssetId = parseAssetId(amountAssetIdStr)
484+ let priceAssetId = parseAssetId(priceAssetIdStr)
485+ let checks = [if (!(shutdown))
486+ then true
487+ else throwErr("not allowed"), mustFactory(i.caller), if ((callerPublicKey == ownerPublicKey))
488+ then true
489+ else throwErr("caller is not an account owner"), if (pairAllowed(amountAssetId, priceAssetId))
490+ then true
491+ else throwErr("pair is not allowed"), if ((leverage == 2))
492+ then true
493+ else throwErr("leverage is not allowed"), if ((getInteger(factoryAddress, kRequestStatus(requestId)) == REQUEST_STATUS_READY))
494+ then true
495+ else throwErr("account is not ready")]
496+ if ((checks == checks))
497+ then $Tuple2(nil, [invoke(factoryAddress, "stringEntry", [kRequestAmountAssetId(requestId), amountAssetIdStr], nil), invoke(factoryAddress, "stringEntry", [kRequestPriceAssetId(requestId), priceAssetIdStr], nil), invoke(factoryAddress, "integerEntry", [kRequestLeverage(requestId), leverage], nil)])
476498 else throw("Strict value is not equal to itself.")
477499 }
478500
501523 else throwErr("invalid script")]
502524 if ((checks == checks))
503525 then {
504- let $t02133822649 = if ((size(requestsQueue()) == 0))
505- then $Tuple2(nil, nil)
526+ let $t02126422409 = if ((size(requestsQueue()) == 0))
527+ then $Tuple2(throwErr("requests queue is empty"), nil)
506528 else {
507529 let requestId = take(requestsQueue(), queueItemSize)
508530 let leverage = valueOrErrorMessage(getInteger(factoryAddress, kRequestLeverage(requestId)), wrapErr("request's leverage is undefined"))
509531 $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)])
510532 }
511- let actions = $t02133822649._1
512- let factoryActions = $t02133822649._2
533+ let actions = $t02126422409._1
534+ let factoryActions = $t02126422409._2
513535 $Tuple2(actions, (factoryActions ++ [invoke(factoryAddress, "binaryEntry", [kAccountCreatorPublicKey(accountAddress), creatorPublicKey], nil)]))
514536 }
515537 else throw("Strict value is not equal to itself.")
540562
541563 @Callable(i)
542564 func deposit (callerPublicKey,args) = {
543- let $t02367023743 = depositINTERNAL(callerPublicKey, args, i)
544- let actions = $t02367023743._1
545- let factoryActions = $t02367023743._2
565+ let $t02343023503 = depositINTERNAL(callerPublicKey, args, i)
566+ let actions = $t02343023503._1
567+ let factoryActions = $t02343023503._2
546568 $Tuple2(actions, factoryActions)
547569 }
548570
550572
551573 @Callable(i)
552574 func borrow (callerPublicKey,args) = {
553- let $t02389823970 = borrowINTERNAL(callerPublicKey, args, i)
554- let actions = $t02389823970._1
555- let factoryActions = $t02389823970._2
575+ let $t02365823730 = borrowINTERNAL(callerPublicKey, args, i)
576+ let actions = $t02365823730._1
577+ let factoryActions = $t02365823730._2
556578 $Tuple2(actions, factoryActions)
557579 }
558580
561583 @Callable(i)
562584 func depositAndBorrow (callerPublicKey,args) = {
563585 let accountAddress = args[0]
564- let $t02416624265 = depositINTERNAL(callerPublicKey, [accountAddress], i)
565- let depositActions = $t02416624265._1
566- let depositFactoryActions = $t02416624265._2
567- let $t02426824352 = borrowINTERNAL(callerPublicKey, args, i)
568- let borrowActions = $t02426824352._1
569- let borrowFactoryActions = $t02426824352._2
586+ let $t02392624025 = depositINTERNAL(callerPublicKey, [accountAddress], i)
587+ let depositActions = $t02392624025._1
588+ let depositFactoryActions = $t02392624025._2
589+ let $t02402824112 = borrowINTERNAL(callerPublicKey, args, i)
590+ let borrowActions = $t02402824112._1
591+ let borrowFactoryActions = $t02402824112._2
570592 $Tuple2((depositActions ++ borrowActions), (depositFactoryActions ++ borrowFactoryActions))
571593 }
572594
662684 let userRequests = valueOrElse(getBinary(factoryAddress, kRequestsByOwner(userAddress)), base58'')
663685 let userRequestsNumber = (size(userRequests) / queueItemSize)
664686 func getAccountsData (acc,count) = {
665- let $t02728527327 = acc
666- let accDataList = $t02728527327._1
667- let rawBytes = $t02728527327._2
668- let maxSize = $t02728527327._3
687+ let $t02704527087 = acc
688+ let accDataList = $t02704527087._1
689+ let rawBytes = $t02704527087._2
690+ let maxSize = $t02704527087._3
669691 if ((maxSize > count))
670692 then {
671693 let requestId = take(rawBytes, queueItemSize)
678700 else acc
679701 }
680702
681- let $t02783127936 = {
703+ let $t02759127696 = {
682704 let $l = INDEX_LIST
683705 let $s = size($l)
684706 let $acc0 = $Tuple3(nil, userRequests, userRequestsNumber)
692714
693715 $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)
694716 }
695- let accDataList = $t02783127936._1
696- let _a = $t02783127936._2
697- let _b = $t02783127936._3
717+ let accDataList = $t02759127696._1
718+ let _a = $t02759127696._2
719+ let _b = $t02759127696._3
698720 $Tuple2(nil, accDataList)
699721 }
700722 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 multisigAddressString = getString(factoryAddress, kMultisig)
141141 let isAdmin = match multisigAddressString {
142142 case addressString: String =>
143143 let multisig = addressFromStringValue(addressString)
144144 let publicKeysList = split(getStringValue(multisig, kPublicKeys), separator)
145145 containsElement(publicKeysList, toBase58String(callerPublicKey))
146146 case _ =>
147147 (addressFromPublicKey(callerPublicKey) == factoryAddress)
148148 }
149149 if (isAdmin)
150150 then true
151151 else throwErr("not allowed")
152152 }
153153
154154
155155 let kAccountScript = "%s__accountScript"
156156
157157 func accountScript () = valueOrErrorMessage(getBinary(factoryAddress, kAccountScript), wrapErr("account script is not set"))
158158
159159
160160 let kRewardAmount = "%s__rewardAmount"
161161
162162 func rewardAmount () = valueOrErrorMessage(getInteger(factoryAddress, kRewardAmount), wrapErr("reward amount is not set"))
163163
164164
165165 let kAccountsLimit = "%s__accountsLimit"
166166
167167 let accountsLimitDefault = 20
168168
169169 func accountsLimit () = valueOrElse(getInteger(factoryAddress, kAccountsLimit), accountsLimitDefault)
170170
171171
172172 func kDeposited (accountAddress) = makeString(["%s%s", "deposited", toString(accountAddress)], separator)
173173
174174
175175 func depositedOption (accountAddress) = getInteger(factoryAddress, kDeposited(accountAddress))
176176
177177
178178 func kCredit (accountAddress,assetId) = makeString(["%s%s%s", "credit", toString(accountAddress), assetIdToString(assetId)], separator)
179179
180180
181181 func creditOption (accountAddress,assetId) = getInteger(factoryAddress, kCredit(accountAddress, assetId))
182182
183183
184184 func kLeverage (accountAddress) = makeString(["%s%s", "leverage", toString(accountAddress)], separator)
185185
186186
187187 func kRequestLeverage (requestId) = makeString(["%s%s", "requestLeverage", toBase58String(requestId)], separator)
188188
189189
190190 func kSyntheticAssetId (baseAssetId) = makeString(["%s%s", "syntheticAssetId", assetIdToString(baseAssetId)], separator)
191191
192192
193193 func kBaseAssetId (syntheticAssetId) = makeString(["%s%s", "baseAssetId", assetIdToString(syntheticAssetId)], separator)
194194
195195
196196 let REQUEST_STATUS_EMPTY = 0
197197
198198 let REQUEST_STATUS_READY = 1
199199
200200 func kRequestStatus (requestId) = makeString(["%s%s", toBase58String(requestId), "status"], separator)
201201
202202
203203 func kAccountCreatorPublicKey (accountAddress) = makeString(["%s%s", toString(accountAddress), "creatorPublicKey"], separator)
204204
205205
206206 func kRequestOwnerPublicKey (requestId) = makeString(["%s%s", toBase58String(requestId), "ownerPublicKey"], separator)
207207
208208
209209 func kRequestAmountAssetId (requestId) = makeString(["%s%s", toBase58String(requestId), "amountAssetId"], separator)
210210
211211
212212 func kRequestPriceAssetId (requestId) = makeString(["%s%s", toBase58String(requestId), "priceAssetId"], separator)
213213
214214
215215 func kRequestIdToAccountPublicKey (requestId) = makeString(["%s%s", toBase58String(requestId), "requestIdToAccountPublicKey"], separator)
216216
217217
218218 func kAccountAddressToRequestId (accountAddress) = makeString(["%s%s", toString(accountAddress), "accountAddressToRequestId"], separator)
219219
220220
221221 func kRequestsQueue () = makeString(["%s", "requestsQueue"], separator)
222222
223223
224224 func requestsQueue () = valueOrElse(getBinary(factoryAddress, kRequestsQueue()), base58'')
225225
226226
227-func kAccountsQueue () = makeString(["%s", "accountsQueue"], separator)
228-
229-
230-func accountsQueue () = valueOrElse(getBinary(factoryAddress, kAccountsQueue()), base58'')
231-
232-
233227 func kRequestsByOwner (ownerAddress) = makeString(["%s%s", "requests", toString(ownerAddress)], separator)
234228
235229
236230 func requestsByOwner (ownerAddress) = valueOrElse(getBinary(factoryAddress, kRequestsByOwner(ownerAddress)), base58'')
237231
238232
239233 func kPairAllowed (amountAssetId,priceAssetId) = makeString(["%s%s%s", assetIdToString(amountAssetId), assetIdToString(priceAssetId), "pairAllowed"], separator)
240234
241235
242236 func pairAllowed (amountAssetId,priceAssetId) = valueOrElse(getBoolean(factoryAddress, kPairAllowed(amountAssetId, priceAssetId)), false)
243237
244238
245239 func kPrice (assetId) = makeString(["%s", assetIdToString(assetId)], separator)
246240
247241
248242 func kPairPricesListKey (amountAssetId,priceAssetId) = makeString(["%s%s%s", assetIdToString(amountAssetId), assetIdToString(priceAssetId), "pairSettingPrices"], separator)
249243
250244
251245 func getPairPricesList (amountAssetId,priceAssetId) = match getString(factoryAddress, kPairPricesListKey(amountAssetId, priceAssetId)) {
252246 case s: String =>
253247 split(s, separator)
254248 case _ =>
255249 nil
256250 }
257251
258252
259253 func kPairSettingsKey (amountAssetId,priceAssetId,priceString) = makeString(["%s%s%d%s", assetIdToString(amountAssetId), assetIdToString(priceAssetId), priceString, "settings"], separator)
260254
261255
262256 func getCurrentPrice (assetId) = {
263257 let matcherPublicKey = fromBase58String(valueOrErrorMessage(getString(factoryAddress, kMatcherPublicKey), wrapErr("invalid matcher public key")))
264258 let matcherAddress = addressFromPublicKey(matcherPublicKey)
265259 let price = valueOrErrorMessage(getInteger(matcherAddress, kPrice(assetId)), wrapErr(("invalid price, assetId = " + assetIdToString(assetId))))
266260 price
267261 }
268262
269263
270264 func calcTotalCredit (creditA,creditB,currentPrice) = (fraction(creditA, currentPrice, mult18BigInt) + creditB)
271265
272266
273267 func calcTotalBalance (balanceA,balanceB,currentPrice) = (fraction(balanceA, currentPrice, mult18BigInt) + balanceB)
274268
275269
276270 func calcPnl (totalBalance,totalCredit) = (totalBalance - totalCredit)
277271
278272
279273 func calcCreditAvailable (deposit,leverage,totalCredit) = (fraction(deposit, leverage, mult18BigInt) - totalCredit)
280274
281275
282276 func calcRealInCredit (credit,balance) = if ((credit > big0))
283277 then (credit - balance)
284278 else big0
285279
286280
287281 func calcFree (credit,balance) = if ((credit > big0))
288282 then (balance - credit)
289283 else big0
290284
291285
292286 func calcShortPrice (free,realInCredit) = if ((realInCredit > big0))
293287 then max([big0, fraction(free, mult18BigInt, realInCredit)])
294288 else big0
295289
296290
297291 func calcLongPrice (free,realInCredit) = if ((realInCredit > big0))
298292 then max([big0, fraction(realInCredit, mult18BigInt, free)])
299293 else big0
300294
301295
302296 func calcStartMargin (realInCreditA,realInCreditB,currentPrice,settingsMargin) = fraction((fraction(realInCreditA, currentPrice, mult18BigInt) + realInCreditB), settingsMargin, mult18BigInt)
303297
304298
305299 func calcMarginSupply (settingsMarginSupply,settingsMargin,startMargin) = fraction(settingsMarginSupply, startMargin, settingsMargin)
306300
307301
308302 func calcLiquidationPrice (deposit,marginSupply,realInCreditA,realInCreditB,shortPrice,longPrice) = {
309303 let liquidationPriceA = if ((realInCreditA > big0))
310304 then (((deposit - marginSupply) / realInCreditA) + shortPrice)
311305 else big0
312306 let liquidationPriceB = if ((realInCreditB > big0))
313307 then (longPrice - ((deposit - marginSupply) / (realInCreditA / longPrice)))
314308 else big0
315309 (liquidationPriceA + liquidationPriceB)
316310 }
317311
318312
319313 func getRequestId (accountAddress) = {
320314 let requestId = fromBase58String(valueOrErrorMessage(getString(factoryAddress, kAccountAddressToRequestId(accountAddress)), wrapErr("invalid account address: request id is undefined")))
321315 requestId
322316 }
323317
324318
325319 func getAccountAssets (accountAddress) = {
326320 let requestId = getRequestId(accountAddress)
327321 let amountAssetId = parseAssetId(valueOrErrorMessage(getString(factoryAddress, kRequestAmountAssetId(requestId)), wrapErr("invalid amount asset id")))
328322 let priceAssetId = parseAssetId(valueOrErrorMessage(getString(factoryAddress, kRequestPriceAssetId(requestId)), wrapErr("invalid amount price id")))
329323 $Tuple2(amountAssetId, priceAssetId)
330324 }
331325
332326
333327 func getAccountOwnerPublicKey (accountAddress) = {
334328 let requestId = getRequestId(accountAddress)
335329 let requestOwnerPublicKey = valueOrErrorMessage(getBinary(factoryAddress, kRequestOwnerPublicKey(requestId)), wrapErr("invalid amount asset id"))
336330 requestOwnerPublicKey
337331 }
338332
339333
340334 func getAccountInfoInternal (accountAddress) = {
341- let $t01142011488 = getAccountAssets(accountAddress)
342- let amountAssetId = $t01142011488._1
343- let priceAssetId = $t01142011488._2
335+ let $t01125511323 = getAccountAssets(accountAddress)
336+ let amountAssetId = $t01125511323._1
337+ let priceAssetId = $t01125511323._2
344338 let leverage = valueOrErrorMessage(getInteger(factoryAddress, kLeverage(accountAddress)), wrapErr("leverage should be defined"))
345339 let requestId = getRequestId(accountAddress)
346340 let accountPublicKey = valueOrErrorMessage(getBinary(factoryAddress, kRequestIdToAccountPublicKey(requestId)), "kRequestIdToAccountPublicKey not found")
347341 let deposited = valueOrElse(depositedOption(accountAddress), 0)
348342 let currentPrice = toX18(getCurrentPrice(amountAssetId), pow10Decimals(priceAssetId))
349343 let creditA = valueOrElse(getInteger(factoryAddress, kCredit(accountAddress, amountAssetId)), 0)
350344 let creditB = valueOrElse(getInteger(factoryAddress, kCredit(accountAddress, priceAssetId)), 0)
351345 let status = valueOrErrorMessage(getInteger(factoryAddress, kRequestStatus(requestId)), ("status not found. RequestId = " + toBase58String(requestId)))
352346 let synthAmountAssetId = getString(factoryAddress, kSyntheticAssetId(amountAssetId))
353347 let synthAmountAssetBalance = match synthAmountAssetId {
354348 case s: String =>
355349 getAssetBalance(parseAssetId(s), accountAddress)
356350 case _ =>
357351 0
358352 }
359353 let synthPriceAssetId = getString(factoryAddress, kSyntheticAssetId(priceAssetId))
360354 let synthPriceAssetBalance = match synthPriceAssetId {
361355 case s: String =>
362356 getAssetBalance(parseAssetId(s), accountAddress)
363357 case _ =>
364358 0
365359 }
366360 $Tuple12(assetIdToString(amountAssetId), assetIdToString(priceAssetId), toString(accountAddress), toBase58String(accountPublicKey), leverage, toBase58String(requestId), deposited, creditA, creditB, synthAmountAssetBalance, synthPriceAssetBalance, status)
367361 }
368362
369363
370364 func depositINTERNAL (callerPublicKey,args,i) = {
371365 let payment = i.payments[0]
372366 let accountAddress = valueOrErrorMessage(addressFromString(args[0]), wrapErr("invalid account address"))
373367 let ckecks = [if (!(shutdown))
374368 then true
375369 else throwErr("not allowed"), mustFactory(i.caller), if ((size(i.payments) == 1))
376370 then true
377371 else throwErr("1 payment is required"), if ((payment.assetId == usdtAssetId))
378372 then true
379373 else throwErr("invalid asset"), if ((getInteger(factoryAddress, kRequestStatus(getRequestId(accountAddress))) == REQUEST_STATUS_READY))
380374 then true
381375 else throwErr("account is not ready")]
382376 if ((ckecks == ckecks))
383377 then {
384378 let actions = [ScriptTransfer(accountAddress, payment.amount, payment.assetId)]
385379 let factoryActions = [invoke(factoryAddress, "integerEntry", [kDeposited(accountAddress), (valueOrElse(depositedOption(accountAddress), 0) + payment.amount)], nil)]
386380 $Tuple2(actions, factoryActions)
387381 }
388382 else throw("Strict value is not equal to itself.")
389383 }
390384
391385
392386 func borrowINTERNAL (callerPublicKey,args,i) = {
393387 let accountAddress = valueOrErrorMessage(addressFromString(args[0]), wrapErr("invalid account address"))
394388 let assetIdRequested = parseAssetId(args[1])
395389 let amountRequested = ensurePositive(valueOrErrorMessage(parseInt(args[2]), wrapErr("invalid requested amount")), "requested amount")
396390 let accountOwnerPublicKey = getAccountOwnerPublicKey(accountAddress)
397391 let userAddress = addressFromPublicKey(callerPublicKey)
398392 let ckecks = [if (!(shutdown))
399393 then true
400394 else throwErr("not allowed"), mustFactory(i.caller), if ((callerPublicKey == accountOwnerPublicKey))
401395 then true
402396 else throwErr("can be called by account owner only")]
403397 if ((ckecks == ckecks))
404398 then {
405399 let amountAssetId = getAccountAssets(accountAddress)._1
406400 let deposited = toX18(valueOrElse(depositedOption(accountAddress), 0), pow10Decimals(usdtAssetId))
407401 let currentPrice = toX18(getCurrentPrice(amountAssetId), pow10Decimals(usdtAssetId))
408402 let creditA = toX18(valueOrElse(getInteger(factoryAddress, kCredit(accountAddress, amountAssetId)), 0), pow10Decimals(amountAssetId))
409403 let creditB = toX18(valueOrElse(getInteger(factoryAddress, kCredit(accountAddress, usdtAssetId)), 0), pow10Decimals(usdtAssetId))
410404 let totalCredit = calcTotalCredit(creditA, creditB, currentPrice)
411405 let leverage = toX18(valueOrErrorMessage(getInteger(factoryAddress, kLeverage(accountAddress)), wrapErr("leverage should be defined")), 1)
412406 let creditAvailableUsdt = calcCreditAvailable(deposited, leverage, totalCredit)
413407 let creditAvailable = if ((assetIdRequested == amountAssetId))
414408 then fromX18(fraction(creditAvailableUsdt, mult18BigInt, currentPrice), pow10Decimals(amountAssetId))
415409 else if ((assetIdRequested == usdtAssetId))
416410 then fromX18(creditAvailableUsdt, pow10Decimals(usdtAssetId))
417411 else throwErr("invalid requested asset id")
418412 let syntheticAssetId = parseAssetId(valueOrErrorMessage(getString(factoryAddress, kSyntheticAssetId(assetIdRequested)), wrapErr("synthetic asset for requested asset is undefined")))
419413 let amountToSend = if ((creditAvailable >= amountRequested))
420414 then amountRequested
421415 else throwErr(("credit available = " + toString(creditAvailable)))
422416 let factoryActions = [invoke(factoryAddress, "integerEntry", [kCredit(accountAddress, assetIdRequested), (valueOrElse(creditOption(accountAddress, assetIdRequested), 0) + amountToSend)], nil), invoke(factoryAddress, "transferAsset", [accountAddress.bytes, amountToSend, syntheticAssetId], nil)]
423417 $Tuple2(nil, [factoryActions, creditAvailable])
424418 }
425419 else throw("Strict value is not equal to itself.")
426420 }
427421
428422
429423 @Callable(i)
430424 func init (factoryAddressStr) = {
431425 let checkCaller = mustThis(i.caller)
432426 if ((checkCaller == checkCaller))
433427 then $Tuple2([StringEntry(kFactoryAddress, factoryAddressStr)], unit)
434428 else throw("Strict value is not equal to itself.")
435429 }
436430
437431
438432
439433 @Callable(i)
440434 func requestAccount (callerPublicKey,args) = {
441435 let ckecks = [if (!(shutdown))
442436 then true
443437 else throwErr("not allowed"), mustFactory(i.caller)]
444438 if ((ckecks == ckecks))
445439 then {
446440 let amountAssetIdStr = args[0]
447441 let priceAssetIdStr = args[1]
448442 let leverage = valueOrErrorMessage(parseInt(args[2]), wrapErr("invalid leverage"))
449443 let userAddress = addressFromPublicKey(callerPublicKey)
450- let requestId = sha256(((userAddress.bytes + fromBase58String(amountAssetIdStr)) + fromBase58String(priceAssetIdStr)))
444+ let requestId = sha256(i.transactionId)
451445 let amountAssetId = parseAssetId(amountAssetIdStr)
452446 let priceAssetId = parseAssetId(priceAssetIdStr)
453447 let userRequestsNumber = (size(kRequestsByOwner(userAddress)) / queueItemSize)
454448 let checks = [if ((size(i.payments) == 1))
455449 then true
456450 else throwErr("1 payment is required"), if ((i.payments[0].assetId == unit))
457451 then true
458452 else throwErr("invalid asset"), if ((i.payments[0].amount == rewardAmount()))
459453 then true
460454 else throwErr("invalid amount"), if (pairAllowed(amountAssetId, priceAssetId))
461455 then true
462- else throwErr("pair is not allowed"), if ((getInteger(factoryAddress, kRequestStatus(requestId)) == unit))
456+ else throwErr("pair is not allowed"), if ((leverage == 2))
457+ then true
458+ else throwErr("leverage is not allowed"), if ((getInteger(factoryAddress, kRequestStatus(requestId)) == unit))
463459 then true
464460 else throwErr("account is already exists"), if ((accountsLimit() > userRequestsNumber))
465461 then true
466462 else throwErr(("accounts limit is " + toString(accountsLimit())))]
467463 if ((checks == checks))
468464 then {
469- let $t01862820083 = $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)])
470- let actions = $t01862820083._1
471- let factoryActions = $t01862820083._2
472- $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)]))
465+ let actions = [ScriptTransfer(factoryAddress, rewardAmount(), unit)]
466+ $Tuple2(actions, [invoke(factoryAddress, "integerEntry", [kRequestStatus(requestId), REQUEST_STATUS_EMPTY], nil), invoke(factoryAddress, "binaryEntry", [kRequestsQueue(), (requestsQueue() + requestId)], nil), invoke(factoryAddress, "binaryEntry", [kRequestsByOwner(userAddress), (requestsByOwner(userAddress) + requestId)], nil), invoke(factoryAddress, "binaryEntry", [kRequestOwnerPublicKey(requestId), callerPublicKey], nil), invoke(factoryAddress, "stringEntry", [kRequestAmountAssetId(requestId), amountAssetIdStr], nil), invoke(factoryAddress, "stringEntry", [kRequestPriceAssetId(requestId), priceAssetIdStr], nil), invoke(factoryAddress, "integerEntry", [kRequestLeverage(requestId), leverage], nil)])
473467 }
474468 else throw("Strict value is not equal to itself.")
475469 }
470+ else throw("Strict value is not equal to itself.")
471+ }
472+
473+
474+
475+@Callable(i)
476+func editAccount (callerPublicKey,args) = {
477+ let accountAddress = valueOrErrorMessage(addressFromString(args[0]), wrapErr("invalid account address"))
478+ let amountAssetIdStr = args[1]
479+ let priceAssetIdStr = args[2]
480+ let leverage = valueOrErrorMessage(parseInt(args[3]), wrapErr("invalid leverage"))
481+ let requestId = getRequestId(accountAddress)
482+ let ownerPublicKey = getAccountOwnerPublicKey(accountAddress)
483+ let amountAssetId = parseAssetId(amountAssetIdStr)
484+ let priceAssetId = parseAssetId(priceAssetIdStr)
485+ let checks = [if (!(shutdown))
486+ then true
487+ else throwErr("not allowed"), mustFactory(i.caller), if ((callerPublicKey == ownerPublicKey))
488+ then true
489+ else throwErr("caller is not an account owner"), if (pairAllowed(amountAssetId, priceAssetId))
490+ then true
491+ else throwErr("pair is not allowed"), if ((leverage == 2))
492+ then true
493+ else throwErr("leverage is not allowed"), if ((getInteger(factoryAddress, kRequestStatus(requestId)) == REQUEST_STATUS_READY))
494+ then true
495+ else throwErr("account is not ready")]
496+ if ((checks == checks))
497+ then $Tuple2(nil, [invoke(factoryAddress, "stringEntry", [kRequestAmountAssetId(requestId), amountAssetIdStr], nil), invoke(factoryAddress, "stringEntry", [kRequestPriceAssetId(requestId), priceAssetIdStr], nil), invoke(factoryAddress, "integerEntry", [kRequestLeverage(requestId), leverage], nil)])
476498 else throw("Strict value is not equal to itself.")
477499 }
478500
479501
480502
481503 @Callable(i)
482504 func addAccount (callerPublicKey,args) = {
483505 let ckecks = [if (!(shutdown))
484506 then true
485507 else throwErr("not allowed"), mustFactory(i.caller)]
486508 if ((ckecks == ckecks))
487509 then {
488510 let creatorPublicKey = fromBase58String(args[0])
489511 let accountPublicKey = callerPublicKey
490512 let accountAddress = addressFromPublicKey(callerPublicKey)
491513 let creatorAddress = addressFromPublicKey(creatorPublicKey)
492514 let checks = [if ((getBinary(factoryAddress, kAccountCreatorPublicKey(accountAddress)) == unit))
493515 then true
494516 else throwErr("account is already exists"), if ( match scriptHash(accountAddress) {
495517 case b: ByteVector =>
496518 (b == blake2b256_32Kb(accountScript()))
497519 case _ =>
498520 false
499521 })
500522 then true
501523 else throwErr("invalid script")]
502524 if ((checks == checks))
503525 then {
504- let $t02133822649 = if ((size(requestsQueue()) == 0))
505- then $Tuple2(nil, nil)
526+ let $t02126422409 = if ((size(requestsQueue()) == 0))
527+ then $Tuple2(throwErr("requests queue is empty"), nil)
506528 else {
507529 let requestId = take(requestsQueue(), queueItemSize)
508530 let leverage = valueOrErrorMessage(getInteger(factoryAddress, kRequestLeverage(requestId)), wrapErr("request's leverage is undefined"))
509531 $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)])
510532 }
511- let actions = $t02133822649._1
512- let factoryActions = $t02133822649._2
533+ let actions = $t02126422409._1
534+ let factoryActions = $t02126422409._2
513535 $Tuple2(actions, (factoryActions ++ [invoke(factoryAddress, "binaryEntry", [kAccountCreatorPublicKey(accountAddress), creatorPublicKey], nil)]))
514536 }
515537 else throw("Strict value is not equal to itself.")
516538 }
517539 else throw("Strict value is not equal to itself.")
518540 }
519541
520542
521543
522544 @Callable(i)
523545 func withdraw (callerPublicKey,args) = {
524546 let checks = [if (!(shutdown))
525547 then true
526548 else throwErr("not allowed"), mustFactory(i.caller)]
527549 if ((checks == checks))
528550 then {
529551 let userAddress = addressFromPublicKey(callerPublicKey)
530552 let accountAddress = valueOrErrorMessage(addressFromString(args[0]), wrapErr("invalid account address"))
531553 let amount = valueOrErrorMessage(parseInt(args[1]), wrapErr("invalid amount"))
532554 let assetId = parseAssetId(args[2])
533555 let invocations = [invoke(accountAddress, "transferAsset", [userAddress.bytes, amount, assetId], nil)]
534556 $Tuple2(nil, invocations)
535557 }
536558 else throw("Strict value is not equal to itself.")
537559 }
538560
539561
540562
541563 @Callable(i)
542564 func deposit (callerPublicKey,args) = {
543- let $t02367023743 = depositINTERNAL(callerPublicKey, args, i)
544- let actions = $t02367023743._1
545- let factoryActions = $t02367023743._2
565+ let $t02343023503 = depositINTERNAL(callerPublicKey, args, i)
566+ let actions = $t02343023503._1
567+ let factoryActions = $t02343023503._2
546568 $Tuple2(actions, factoryActions)
547569 }
548570
549571
550572
551573 @Callable(i)
552574 func borrow (callerPublicKey,args) = {
553- let $t02389823970 = borrowINTERNAL(callerPublicKey, args, i)
554- let actions = $t02389823970._1
555- let factoryActions = $t02389823970._2
575+ let $t02365823730 = borrowINTERNAL(callerPublicKey, args, i)
576+ let actions = $t02365823730._1
577+ let factoryActions = $t02365823730._2
556578 $Tuple2(actions, factoryActions)
557579 }
558580
559581
560582
561583 @Callable(i)
562584 func depositAndBorrow (callerPublicKey,args) = {
563585 let accountAddress = args[0]
564- let $t02416624265 = depositINTERNAL(callerPublicKey, [accountAddress], i)
565- let depositActions = $t02416624265._1
566- let depositFactoryActions = $t02416624265._2
567- let $t02426824352 = borrowINTERNAL(callerPublicKey, args, i)
568- let borrowActions = $t02426824352._1
569- let borrowFactoryActions = $t02426824352._2
586+ let $t02392624025 = depositINTERNAL(callerPublicKey, [accountAddress], i)
587+ let depositActions = $t02392624025._1
588+ let depositFactoryActions = $t02392624025._2
589+ let $t02402824112 = borrowINTERNAL(callerPublicKey, args, i)
590+ let borrowActions = $t02402824112._1
591+ let borrowFactoryActions = $t02402824112._2
570592 $Tuple2((depositActions ++ borrowActions), (depositFactoryActions ++ borrowFactoryActions))
571593 }
572594
573595
574596
575597 @Callable(i)
576598 func repay (callerPublicKey,args) = {
577599 let ckecks = [if (!(shutdown))
578600 then true
579601 else throwErr("not allowed"), mustFactory(i.caller)]
580602 if ((ckecks == ckecks))
581603 then $Tuple2(nil, unit)
582604 else throw("Strict value is not equal to itself.")
583605 }
584606
585607
586608
587609 @Callable(i)
588610 func setPairAllowance (callerPublicKey,args) = {
589611 let ckecks = [if (!(shutdown))
590612 then true
591613 else throwErr("not allowed"), mustFactory(i.caller), mustAdmin(callerPublicKey)]
592614 if ((ckecks == ckecks))
593615 then {
594616 let amountAssetIdStr = args[0]
595617 let priceAssetIdStr = args[1]
596618 let allowStr = args[2]
597619 let amountAssetId = parseAssetId(amountAssetIdStr)
598620 let priceAssetId = parseAssetId(priceAssetIdStr)
599621 let allow = (allowStr == "true")
600622 let invocations = [invoke(factoryAddress, "booleanEntry", [kPairAllowed(amountAssetId, priceAssetId), allow], nil)]
601623 $Tuple2(nil, invocations)
602624 }
603625 else throw("Strict value is not equal to itself.")
604626 }
605627
606628
607629
608630 @Callable(i)
609631 func addSyntheticAsset (callerPublicKey,args) = {
610632 let baseAssetId = parseAssetId(args[0])
611633 let syntheticAssetId = parseAssetId(args[1])
612634 let ckecks = [if (!(shutdown))
613635 then true
614636 else throwErr("not allowed"), mustFactory(i.caller), mustAdmin(callerPublicKey), if ((getString(factoryAddress, kSyntheticAssetId(baseAssetId)) == unit))
615637 then true
616638 else throwErr("invalid base asset"), if ((getString(factoryAddress, kBaseAssetId(syntheticAssetId)) == unit))
617639 then true
618640 else throwErr("invalid synthetic asset")]
619641 if ((ckecks == ckecks))
620642 then {
621643 let invocations = [invoke(factoryAddress, "stringEntry", [kSyntheticAssetId(baseAssetId), assetIdToString(syntheticAssetId)], nil), invoke(factoryAddress, "stringEntry", [kBaseAssetId(syntheticAssetId), assetIdToString(baseAssetId)], nil)]
622644 $Tuple2(nil, invocations)
623645 }
624646 else throw("Strict value is not equal to itself.")
625647 }
626648
627649
628650
629651 @Callable(i)
630652 func doShutdown (callerPublicKey,args) = {
631653 let checks = [mustFactory(i.caller), mustAdmin(callerPublicKey)]
632654 if ((checks == checks))
633655 then {
634656 let invocations = [invoke(factoryAddress, "booleanEntry", [kShutdown, true], nil)]
635657 $Tuple2(nil, invocations)
636658 }
637659 else throw("Strict value is not equal to itself.")
638660 }
639661
640662
641663
642664 @Callable(i)
643665 func getAccountInfoREADONLY (callerPublicKey,args) = {
644666 let checks = [mustFactory(i.caller)]
645667 if ((checks == checks))
646668 then {
647669 let accountAddress = valueOrErrorMessage(addressFromString(args[0]), wrapErr("invalid account address"))
648670 let data = getAccountInfoInternal(accountAddress)
649671 $Tuple2(nil, data)
650672 }
651673 else throw("Strict value is not equal to itself.")
652674 }
653675
654676
655677
656678 @Callable(i)
657679 func getUserInfoREADONLY (callerPublicKey,args) = {
658680 let checks = [mustFactory(i.caller)]
659681 if ((checks == checks))
660682 then {
661683 let userAddress = valueOrErrorMessage(addressFromString(args[0]), wrapErr("invalid user address"))
662684 let userRequests = valueOrElse(getBinary(factoryAddress, kRequestsByOwner(userAddress)), base58'')
663685 let userRequestsNumber = (size(userRequests) / queueItemSize)
664686 func getAccountsData (acc,count) = {
665- let $t02728527327 = acc
666- let accDataList = $t02728527327._1
667- let rawBytes = $t02728527327._2
668- let maxSize = $t02728527327._3
687+ let $t02704527087 = acc
688+ let accDataList = $t02704527087._1
689+ let rawBytes = $t02704527087._2
690+ let maxSize = $t02704527087._3
669691 if ((maxSize > count))
670692 then {
671693 let requestId = take(rawBytes, queueItemSize)
672694 let newRawBytes = drop(rawBytes, queueItemSize)
673695 let accountPublicKey = valueOrErrorMessage(getBinary(factoryAddress, kRequestIdToAccountPublicKey(requestId)), "kRequestIdToAccountPublicKey not found")
674696 let accountAddress = addressFromPublicKey(accountPublicKey)
675697 let data = getAccountInfoInternal(accountAddress)
676698 $Tuple3((accDataList :+ data), newRawBytes, maxSize)
677699 }
678700 else acc
679701 }
680702
681- let $t02783127936 = {
703+ let $t02759127696 = {
682704 let $l = INDEX_LIST
683705 let $s = size($l)
684706 let $acc0 = $Tuple3(nil, userRequests, userRequestsNumber)
685707 func $f0_1 ($a,$i) = if (($i >= $s))
686708 then $a
687709 else getAccountsData($a, $l[$i])
688710
689711 func $f0_2 ($a,$i) = if (($i >= $s))
690712 then $a
691713 else throw("List size exceeds 20")
692714
693715 $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)
694716 }
695- let accDataList = $t02783127936._1
696- let _a = $t02783127936._2
697- let _b = $t02783127936._3
717+ let accDataList = $t02759127696._1
718+ let _a = $t02759127696._2
719+ let _b = $t02759127696._3
698720 $Tuple2(nil, accDataList)
699721 }
700722 else throw("Strict value is not equal to itself.")
701723 }
702724
703725
704726
705727 @Callable(i)
706728 func getPairSettingsInfoREADONLY (callerPublicKey,args) = {
707729 let amountAsset = parseAssetId(args[0])
708730 let priceAsset = parseAssetId(args[1])
709731 let pricesList = getPairPricesList(amountAsset, priceAsset)
710732 func getPairSettings (acc,pricesString) = {
711733 let settingsKey = kPairSettingsKey(amountAsset, priceAsset, pricesString)
712734 let settingsStringValue = getStringValue(factoryAddress, settingsKey)
713735 let sList = split(settingsStringValue, separator)
714736 let price = parseInt(pricesString)
715737 let maxLeverage = parseInt(sList[1])
716738 let initialMargin = parseInt(sList[2])
717739 let maintenanceMargin = parseInt(sList[3])
718740 (acc :+ $Tuple4(price, maxLeverage, initialMargin, maintenanceMargin))
719741 }
720742
721743 let data = {
722744 let $l = pricesList
723745 let $s = size($l)
724746 let $acc0 = nil
725747 func $f0_1 ($a,$i) = if (($i >= $s))
726748 then $a
727749 else getPairSettings($a, $l[$i])
728750
729751 func $f0_2 ($a,$i) = if (($i >= $s))
730752 then $a
731753 else throw("List size exceeds 20")
732754
733755 $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)
734756 }
735757 $Tuple2(nil, data)
736758 }
737759
738760
739761
740762 @Callable(i)
741763 func editPairSettings (callerPublicKey,args) = {
742764 let checks = [mustFactory(i.caller), mustAdmin(callerPublicKey)]
743765 if ((checks == checks))
744766 then {
745767 let amountAsset = parseAssetId(args[0])
746768 let priceAsset = parseAssetId(args[1])
747769 let price = args[2]
748770 let maxLeverage = args[3]
749771 let initialMargin = args[4]
750772 let maintenanceMargin = args[5]
751773 let pairPricesListKey = kPairPricesListKey(amountAsset, priceAsset)
752774 let settingsKey = kPairSettingsKey(amountAsset, priceAsset, price)
753775 let pricesList = getPairPricesList(amountAsset, priceAsset)
754776 let newList = match indexOf(pricesList, price) {
755777 case ind: Int =>
756778 pricesList
757779 case _ =>
758780 (pricesList :+ price)
759781 }
760782 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)))
761783 then true
762784 else throwErr("exceeded max prices list size (20)")]
763785 if ((check2 == check2))
764786 then {
765787 let pairSettingValue = makeString(["%s%s%s", maxLeverage, initialMargin, maintenanceMargin], separator)
766788 let invocations = [invoke(factoryAddress, "stringEntry", [kPairPricesListKey(amountAsset, priceAsset), makeString(newList, separator)], nil), invoke(factoryAddress, "stringEntry", [kPairSettingsKey(amountAsset, priceAsset, price), pairSettingValue], nil)]
767789 $Tuple2(nil, invocations)
768790 }
769791 else throw("Strict value is not equal to itself.")
770792 }
771793 else throw("Strict value is not equal to itself.")
772794 }
773795
774796
775797
776798 @Callable(i)
777799 func deletePairSettings (callerPublicKey,args) = {
778800 let checks = [mustFactory(i.caller), mustAdmin(callerPublicKey)]
779801 if ((checks == checks))
780802 then {
781803 let amountAsset = parseAssetId(args[0])
782804 let priceAsset = parseAssetId(args[1])
783805 let price = args[2]
784806 let settingsKey = kPairSettingsKey(amountAsset, priceAsset, price)
785807 let pairPricesListKey = kPairPricesListKey(amountAsset, priceAsset)
786808 let pricesList = getPairPricesList(amountAsset, priceAsset)
787809 let newList = match indexOf(pricesList, price) {
788810 case ind: Int =>
789811 removeByIndex(pricesList, ind)
790812 case _ =>
791813 pricesList
792814 }
793815 let invocations = [invoke(factoryAddress, "deleteEntry", [settingsKey], nil), if ((size(newList) == 0))
794816 then invoke(factoryAddress, "deleteEntry", [kPairPricesListKey(amountAsset, priceAsset)], nil)
795817 else invoke(factoryAddress, "stringEntry", [kPairPricesListKey(amountAsset, priceAsset), makeString(newList, separator)], nil)]
796818 $Tuple2(nil, invocations)
797819 }
798820 else throw("Strict value is not equal to itself.")
799821 }
800822
801823
802824 @Verifier(tx)
803825 func verify () = if (if (isDefined(factoryAddressOption))
804826 then isDefined(getString(factoryAddress, kMultisig))
805827 else false)
806828 then match getString(factoryAddress, kMultisig) {
807829 case multisig: String =>
808830 let statusKey = kStatus(toString(this), toBase58String(tx.id))
809831 let status = valueOrElse(getBoolean(addressFromStringValue(multisig), statusKey), false)
810832 status
811833 case _ =>
812834 false
813835 }
814836 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
815837

github/deemru/w8io/026f985 
98.25 ms