tx · HF8GzyKsTiR5medqCq7rzPJajpfsJpX2BBA6uu3aQA5V 3N5C2THWC3XfNzmC15YBeTBLamjhhCUdeeo: -0.01400000 Waves 2022.03.05 11:14 [1950413] smart account 3N5C2THWC3XfNzmC15YBeTBLamjhhCUdeeo > SELF 0.00000000 Waves
{ "type": 13, "id": "HF8GzyKsTiR5medqCq7rzPJajpfsJpX2BBA6uu3aQA5V", "fee": 1400000, "feeAssetId": null, "timestamp": 1646468049980, "version": 1, "sender": "3N5C2THWC3XfNzmC15YBeTBLamjhhCUdeeo", "senderPublicKey": "BweqtcaAvG8gdYYQoaMsbUczGmHJAwWBShc9noVdvmWx", "proofs": [ "2s6W8doRX6Dwk1wUQVBkR6fbqkmAkBbBELF6ka3mCsxFQLFVLtdYnAzBgmCPAYG8KEUhuzB9ihxGWd7E9G5dgymM" ], "script": "base64:AAIFAAAAAAAAAHMIAhIDCgEIEgMKAQgSABIECgIBBBIDCgEBEgASBAoCAQESAwoBARIECgIICBIAEgMKAQgSBQoDAQEBEgQKAgEBEgQKAggBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIEgASAwoBARIDCgEBEgQKAggBAAAARAAAAAAKbFBkZWNpbWFscwAAAAAAAAAACAAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAxzY2FsZThCaWdJbnQJAAE2AAAAAQAAAAAABfXhAAAAAAAHc2NhbGUxOAkAATYAAAABAA3gtrOnZAAAAAAAAAp6ZXJvQmlnSW50CQABNgAAAAEAAAAAAAAAAAAAAAAAA1NFUAIAAAACX18AAAAAClBvb2xBY3RpdmUAAAAAAAAAAAEAAAAAD1Bvb2xQdXREaXNhYmxlZAAAAAAAAAAAAgAAAAATUG9vbE1hdGNoZXJEaXNhYmxlZAAAAAAAAAAAAwAAAAAMUG9vbFNodXRkb3duAAAAAAAAAAAEAAAAAA5pZHhQb29sQWRkcmVzcwAAAAAAAAAAAQAAAAANaWR4UG9vbFN0YXR1cwAAAAAAAAAAAgAAAAAQaWR4U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AADG1hdGNoZXJWYWxpZAkAAfQAAAADCAUAAAAFb3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAVvcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAEFAAAACm1hdGNoZXJQdWIDAwMFAAAACm9yZGVyVmFsaWQFAAAAC3NlbmRlclZhbGlkBwUAAAAMbWF0Y2hlclZhbGlkBwYJAQAAAA90aHJvd09yZGVyRXJyb3IAAAADBQAAAApvcmRlclZhbGlkBQAAAAtzZW5kZXJWYWxpZAUAAAAMbWF0Y2hlclZhbGlkBAAAAA90YXJnZXRQdWJsaWNLZXkEAAAAByRtYXRjaDEJAQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDEFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5c/DYWQ==", "chainId": 84, "height": 1950413, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fx6YQXt7GmVuRBbjQ7Nb8oTdQwcCGinum39MoRSruBBx Next: none Diff:
Old | New | Differences | |
---|---|---|---|
12 | 12 | let zeroBigInt = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let SEP = "__" | |
15 | - | ||
16 | - | let EMPTY = "" | |
17 | 15 | ||
18 | 16 | let PoolActive = 1 | |
19 | 17 | ||
67 | 65 | else val | |
68 | 66 | ||
69 | 67 | ||
70 | - | func | |
68 | + | func fc () = "%s__factoryContract" | |
71 | 69 | ||
72 | 70 | ||
73 | - | func | |
71 | + | func mpk () = "%s__managerPublicKey" | |
74 | 72 | ||
75 | 73 | ||
76 | - | func | |
74 | + | func pmpk () = "%s__pendingManagerPublicKey" | |
77 | 75 | ||
78 | 76 | ||
79 | - | func | |
77 | + | func pl () = "%s%s__price__last" | |
80 | 78 | ||
81 | 79 | ||
82 | - | func | |
80 | + | func ph (h,timestamp) = makeString(["%s%s%d%d__price__history", toString(h), toString(timestamp)], SEP) | |
83 | 81 | ||
84 | 82 | ||
85 | - | func | |
83 | + | func pau (userAddress,txId) = ((("%s%s%s__P__" + userAddress) + "__") + txId) | |
86 | 84 | ||
87 | 85 | ||
88 | - | func | |
86 | + | func gau (userAddress,txId) = ((("%s%s%s__G__" + userAddress) + "__") + txId) | |
89 | 87 | ||
90 | 88 | ||
91 | - | func | |
89 | + | func aa () = "%s__amountAsset" | |
92 | 90 | ||
93 | 91 | ||
94 | - | func | |
92 | + | func pa () = "%s__priceAsset" | |
95 | 93 | ||
96 | 94 | ||
97 | 95 | func keyFactoryConfig () = "%s__factoryConfig" | |
124 | 122 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
125 | 123 | ||
126 | 124 | ||
127 | - | let factoryContract = addressFromStringValue(getStringOrFail(this, | |
125 | + | let factoryContract = addressFromStringValue(getStringOrFail(this, fc())) | |
128 | 126 | ||
129 | 127 | func isGlobalShutdown () = valueOrElse(getBoolean(factoryContract, keyAllPoolsShutdown()), false) | |
130 | 128 | ||
133 | 131 | ||
134 | 132 | ||
135 | 133 | func getPoolConfig () = { | |
136 | - | let amtAsset = getStringOrFail(this, | |
137 | - | let priceAsset = getStringOrFail(this, | |
134 | + | let amtAsset = getStringOrFail(this, aa()) | |
135 | + | let priceAsset = getStringOrFail(this, pa()) | |
138 | 136 | let iPriceAsset = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAsset)) | |
139 | 137 | let iAmtAsset = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amtAsset)) | |
140 | 138 | split(getStringOrFail(factoryContract, keyPoolConfig(toString(iAmtAsset), toString(iPriceAsset))), SEP) | |
215 | 213 | then unit | |
216 | 214 | else fromBase58String(amAssetId)), ScriptTransfer(userAddress, outPrAmt, if ((prAssetId == "WAVES")) | |
217 | 215 | then unit | |
218 | - | else fromBase58String(prAssetId)), StringEntry( | |
216 | + | else fromBase58String(prAssetId)), StringEntry(gau(toString(userAddress), txId58), dataGetActionInfo(outAmAmt, outPrAmt, pmtLpAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice)] | |
219 | 217 | $Tuple10(outAmAmt, outPrAmt, amAssetId, prAssetId, amBalance, prBalance, lpEmission, curPriceX18, poolStatus, state) | |
220 | 218 | } | |
221 | 219 | } | |
291 | 289 | else calcLpAmt | |
292 | 290 | let amDiff = (inAmAssetAmt - calcAmAssetPmt) | |
293 | 291 | let prDiff = (inPrAssetAmt - calcPrAssetPmt) | |
294 | - | let commonState = [IntegerEntry( | |
292 | + | let commonState = [IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice), StringEntry(pau(userAddress, txId58), dataPutActionInfo(calcAmAssetPmt, calcPrAssetPmt, emitLpAmt, curPrice, slippageTolerance, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))] | |
295 | 293 | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEmission, lpAssetId, poolStatus, commonState, amDiff, prDiff, inAmAssetId, inPrAssetId) | |
296 | 294 | } | |
297 | 295 | } | |
379 | 377 | } | |
380 | 378 | ||
381 | 379 | ||
380 | + | func managerPublicKeyOrUnit () = match getString(mpk()) { | |
381 | + | case s: String => | |
382 | + | fromBase58String(s) | |
383 | + | case _: Unit => | |
384 | + | unit | |
385 | + | case _ => | |
386 | + | throw("Match error") | |
387 | + | } | |
388 | + | ||
389 | + | ||
390 | + | func pendingManagerPublicKeyOrUnit () = match getString(pmpk()) { | |
391 | + | case s: String => | |
392 | + | fromBase58String(s) | |
393 | + | case _: Unit => | |
394 | + | unit | |
395 | + | case _ => | |
396 | + | throw("Match error") | |
397 | + | } | |
398 | + | ||
399 | + | ||
400 | + | func mustManager (i) = { | |
401 | + | let pd = throw("Permission denied") | |
402 | + | match managerPublicKeyOrUnit() { | |
403 | + | case pk: ByteVector => | |
404 | + | if ((i.callerPublicKey == pk)) | |
405 | + | then true | |
406 | + | else pd | |
407 | + | case _: Unit => | |
408 | + | if ((i.caller == this)) | |
409 | + | then true | |
410 | + | else pd | |
411 | + | case _ => | |
412 | + | throw("Match error") | |
413 | + | } | |
414 | + | } | |
415 | + | ||
416 | + | ||
382 | 417 | @Callable(i) | |
383 | - | func constructor (factoryContract,managerPublicKey) = if ((i.caller != this)) | |
384 | - | then throw("permissions denied") | |
385 | - | else [StringEntry(keyFactoryContract(), factoryContract), StringEntry(keyManagerPublicKey(), managerPublicKey)] | |
418 | + | func constructor (factoryContract) = { | |
419 | + | let checkCaller = mustManager(i) | |
420 | + | if ((checkCaller == checkCaller)) | |
421 | + | then [StringEntry(fc(), factoryContract)] | |
422 | + | else throw("Strict value is not equal to itself.") | |
423 | + | } | |
424 | + | ||
425 | + | ||
426 | + | ||
427 | + | @Callable(i) | |
428 | + | func setManager (pendingManagerPublicKey) = { | |
429 | + | let checkCaller = mustManager(i) | |
430 | + | if ((checkCaller == checkCaller)) | |
431 | + | then { | |
432 | + | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
433 | + | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
434 | + | then [StringEntry(pmpk(), pendingManagerPublicKey)] | |
435 | + | else throw("Strict value is not equal to itself.") | |
436 | + | } | |
437 | + | else throw("Strict value is not equal to itself.") | |
438 | + | } | |
439 | + | ||
440 | + | ||
441 | + | ||
442 | + | @Callable(i) | |
443 | + | func confirmManager () = { | |
444 | + | let pm = pendingManagerPublicKeyOrUnit() | |
445 | + | let hasPM = if (isDefined(pm)) | |
446 | + | then true | |
447 | + | else throw("No pending manager") | |
448 | + | if ((hasPM == hasPM)) | |
449 | + | then { | |
450 | + | let checkPM = if ((i.callerPublicKey == value(pm))) | |
451 | + | then true | |
452 | + | else throw("You are not pending manager") | |
453 | + | if ((checkPM == checkPM)) | |
454 | + | then [StringEntry(mpk(), toBase58String(value(pm))), DeleteEntry(pmpk())] | |
455 | + | else throw("Strict value is not equal to itself.") | |
456 | + | } | |
457 | + | else throw("Strict value is not equal to itself.") | |
458 | + | } | |
386 | 459 | ||
387 | 460 | ||
388 | 461 | ||
405 | 478 | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
406 | 479 | if ((emitInv == emitInv)) | |
407 | 480 | then { | |
408 | - | let slippageAInv = if ((amDiff > 0)) | |
409 | - | then invoke(slippageContract, "put", nil, [AttachedPayment(amId, amDiff)]) | |
410 | - | else nil | |
411 | - | if ((slippageAInv == slippageAInv)) | |
481 | + | let emitInvLegacy = match emitInv { | |
482 | + | case legacyFactoryContract: Address => | |
483 | + | invoke(legacyFactoryContract, "emit", [emitLpAmt], nil) | |
484 | + | case _ => | |
485 | + | unit | |
486 | + | } | |
487 | + | if ((emitInvLegacy == emitInvLegacy)) | |
412 | 488 | then { | |
413 | - | let | |
414 | - | then invoke(slippageContract, "put", nil, [AttachedPayment( | |
489 | + | let slippageAInv = if ((amDiff > 0)) | |
490 | + | then invoke(slippageContract, "put", nil, [AttachedPayment(amId, amDiff)]) | |
415 | 491 | else nil | |
416 | - | if (( | |
492 | + | if ((slippageAInv == slippageAInv)) | |
417 | 493 | then { | |
418 | - | let lpTransfer = if (shouldAutoStake) | |
494 | + | let slippagePInv = if ((prDiff > 0)) | |
495 | + | then invoke(slippageContract, "put", nil, [AttachedPayment(prId, prDiff)]) | |
496 | + | else nil | |
497 | + | if ((slippagePInv == slippagePInv)) | |
419 | 498 | then { | |
420 | - | let slpStakeInv = invoke(stakingContract, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
421 | - | if ((slpStakeInv == slpStakeInv)) | |
422 | - | then nil | |
423 | - | else throw("Strict value is not equal to itself.") | |
499 | + | let lpTransfer = if (shouldAutoStake) | |
500 | + | then { | |
501 | + | let slpStakeInv = invoke(stakingContract, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
502 | + | if ((slpStakeInv == slpStakeInv)) | |
503 | + | then nil | |
504 | + | else throw("Strict value is not equal to itself.") | |
505 | + | } | |
506 | + | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
507 | + | (state ++ lpTransfer) | |
424 | 508 | } | |
425 | - | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
426 | - | (state ++ lpTransfer) | |
509 | + | else throw("Strict value is not equal to itself.") | |
427 | 510 | } | |
428 | 511 | else throw("Strict value is not equal to itself.") | |
429 | 512 | } | |
524 | 607 | @Callable(i) | |
525 | 608 | func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract))) | |
526 | 609 | then throw("permissions denied") | |
527 | - | else $Tuple2([StringEntry( | |
610 | + | else $Tuple2([StringEntry(aa(), amtAssetStr), StringEntry(pa(), priceAssetStr)], "success") | |
528 | 611 | ||
529 | 612 | ||
530 | 613 | ||
694 | 777 | then true | |
695 | 778 | else throwOrderError(orderValid, senderValid, matcherValid) | |
696 | 779 | case _ => | |
697 | - | let managerPublic = valueOrElse(getString(this, keyManagerPublicKey()), EMPTY) | |
698 | - | if ((managerPublic == EMPTY)) | |
699 | - | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
700 | - | else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(managerPublic)) | |
780 | + | let targetPublicKey = match managerPublicKeyOrUnit() { | |
781 | + | case pk: ByteVector => | |
782 | + | pk | |
783 | + | case _: Unit => | |
784 | + | tx.senderPublicKey | |
785 | + | case _ => | |
786 | + | throw("Match error") | |
787 | + | } | |
788 | + | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
701 | 789 | } | |
702 | 790 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let lPdecimals = 8 | |
5 | 5 | ||
6 | 6 | let scale8 = 100000000 | |
7 | 7 | ||
8 | 8 | let scale8BigInt = toBigInt(100000000) | |
9 | 9 | ||
10 | 10 | let scale18 = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let zeroBigInt = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let SEP = "__" | |
15 | - | ||
16 | - | let EMPTY = "" | |
17 | 15 | ||
18 | 16 | let PoolActive = 1 | |
19 | 17 | ||
20 | 18 | let PoolPutDisabled = 2 | |
21 | 19 | ||
22 | 20 | let PoolMatcherDisabled = 3 | |
23 | 21 | ||
24 | 22 | let PoolShutdown = 4 | |
25 | 23 | ||
26 | 24 | let idxPoolAddress = 1 | |
27 | 25 | ||
28 | 26 | let idxPoolStatus = 2 | |
29 | 27 | ||
30 | 28 | let idxPoolLPAssetId = 3 | |
31 | 29 | ||
32 | 30 | let idxAmtAssetId = 4 | |
33 | 31 | ||
34 | 32 | let idxPriceAssetId = 5 | |
35 | 33 | ||
36 | 34 | let idxAmtAssetDcm = 6 | |
37 | 35 | ||
38 | 36 | let idxPriceAssetDcm = 7 | |
39 | 37 | ||
40 | 38 | let idxIAmtAssetId = 8 | |
41 | 39 | ||
42 | 40 | let idxIPriceAssetId = 9 | |
43 | 41 | ||
44 | 42 | let idxLPAssetDcm = 10 | |
45 | 43 | ||
46 | 44 | let idxPoolAmtAssetAmt = 1 | |
47 | 45 | ||
48 | 46 | let idxPoolPriceAssetAmt = 2 | |
49 | 47 | ||
50 | 48 | let idxPoolLPAssetAmt = 3 | |
51 | 49 | ||
52 | 50 | let idxFactoryStakingContract = 1 | |
53 | 51 | ||
54 | 52 | let idxFactorySlippageContract = 7 | |
55 | 53 | ||
56 | 54 | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult)) | |
57 | 55 | ||
58 | 56 | ||
59 | 57 | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18)) | |
60 | 58 | ||
61 | 59 | ||
62 | 60 | func toScale (amt,resScale,curScale) = fraction(amt, resScale, curScale) | |
63 | 61 | ||
64 | 62 | ||
65 | 63 | func abs (val) = if ((zeroBigInt > val)) | |
66 | 64 | then -(val) | |
67 | 65 | else val | |
68 | 66 | ||
69 | 67 | ||
70 | - | func | |
68 | + | func fc () = "%s__factoryContract" | |
71 | 69 | ||
72 | 70 | ||
73 | - | func | |
71 | + | func mpk () = "%s__managerPublicKey" | |
74 | 72 | ||
75 | 73 | ||
76 | - | func | |
74 | + | func pmpk () = "%s__pendingManagerPublicKey" | |
77 | 75 | ||
78 | 76 | ||
79 | - | func | |
77 | + | func pl () = "%s%s__price__last" | |
80 | 78 | ||
81 | 79 | ||
82 | - | func | |
80 | + | func ph (h,timestamp) = makeString(["%s%s%d%d__price__history", toString(h), toString(timestamp)], SEP) | |
83 | 81 | ||
84 | 82 | ||
85 | - | func | |
83 | + | func pau (userAddress,txId) = ((("%s%s%s__P__" + userAddress) + "__") + txId) | |
86 | 84 | ||
87 | 85 | ||
88 | - | func | |
86 | + | func gau (userAddress,txId) = ((("%s%s%s__G__" + userAddress) + "__") + txId) | |
89 | 87 | ||
90 | 88 | ||
91 | - | func | |
89 | + | func aa () = "%s__amountAsset" | |
92 | 90 | ||
93 | 91 | ||
94 | - | func | |
92 | + | func pa () = "%s__priceAsset" | |
95 | 93 | ||
96 | 94 | ||
97 | 95 | func keyFactoryConfig () = "%s__factoryConfig" | |
98 | 96 | ||
99 | 97 | ||
100 | 98 | func keyMatcherPub () = "%s%s__matcher__publicKey" | |
101 | 99 | ||
102 | 100 | ||
103 | 101 | func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset") | |
104 | 102 | ||
105 | 103 | ||
106 | 104 | func keyPoolConfig (iAmtAsset,iPriceAsset) = (((("%d%d%s__" + iAmtAsset) + "__") + iPriceAsset) + "__config") | |
107 | 105 | ||
108 | 106 | ||
109 | 107 | func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr) | |
110 | 108 | ||
111 | 109 | ||
112 | 110 | func keyAllPoolsShutdown () = "%s__shutdown" | |
113 | 111 | ||
114 | 112 | ||
115 | 113 | func keyPoolWeight (contractAddress) = ("%s%s__poolWeight__" + contractAddress) | |
116 | 114 | ||
117 | 115 | ||
118 | 116 | func throwOrderError (orderValid,senderValid,matcherValid) = throw(((((("order validation failed: orderValid=" + toString(orderValid)) + " senderValid=") + toString(senderValid)) + " matcherValid=") + toString(matcherValid))) | |
119 | 117 | ||
120 | 118 | ||
121 | 119 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
122 | 120 | ||
123 | 121 | ||
124 | 122 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
125 | 123 | ||
126 | 124 | ||
127 | - | let factoryContract = addressFromStringValue(getStringOrFail(this, | |
125 | + | let factoryContract = addressFromStringValue(getStringOrFail(this, fc())) | |
128 | 126 | ||
129 | 127 | func isGlobalShutdown () = valueOrElse(getBoolean(factoryContract, keyAllPoolsShutdown()), false) | |
130 | 128 | ||
131 | 129 | ||
132 | 130 | func getMatcherPubOrFail () = fromBase58String(getStringOrFail(factoryContract, keyMatcherPub())) | |
133 | 131 | ||
134 | 132 | ||
135 | 133 | func getPoolConfig () = { | |
136 | - | let amtAsset = getStringOrFail(this, | |
137 | - | let priceAsset = getStringOrFail(this, | |
134 | + | let amtAsset = getStringOrFail(this, aa()) | |
135 | + | let priceAsset = getStringOrFail(this, pa()) | |
138 | 136 | let iPriceAsset = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAsset)) | |
139 | 137 | let iAmtAsset = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amtAsset)) | |
140 | 138 | split(getStringOrFail(factoryContract, keyPoolConfig(toString(iAmtAsset), toString(iPriceAsset))), SEP) | |
141 | 139 | } | |
142 | 140 | ||
143 | 141 | ||
144 | 142 | func getFactoryConfig () = split(getStringOrFail(factoryContract, keyFactoryConfig()), SEP) | |
145 | 143 | ||
146 | 144 | ||
147 | 145 | func dataPutActionInfo (inAmtAssetAmt,inPriceAssetAmt,outLpAmt,price,slippageTolerancePassedByUser,slippageToleranceReal,txHeight,txTimestamp,slipageAmtAssetAmt,slipagePriceAssetAmt) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(inAmtAssetAmt), toString(inPriceAssetAmt), toString(outLpAmt), toString(price), toString(slippageTolerancePassedByUser), toString(slippageToleranceReal), toString(txHeight), toString(txTimestamp), toString(slipageAmtAssetAmt), toString(slipagePriceAssetAmt)], SEP) | |
148 | 146 | ||
149 | 147 | ||
150 | 148 | func dataGetActionInfo (outAmtAssetAmt,outPriceAssetAmt,inLpAmt,price,txHeight,txTimestamp) = makeString(["%d%d%d%d%d%d", toString(outAmtAssetAmt), toString(outPriceAssetAmt), toString(inLpAmt), toString(price), toString(txHeight), toString(txTimestamp)], SEP) | |
151 | 149 | ||
152 | 150 | ||
153 | 151 | func getAccBalance (assetId) = if ((assetId == "WAVES")) | |
154 | 152 | then wavesBalance(this).available | |
155 | 153 | else assetBalance(this, fromBase58String(assetId)) | |
156 | 154 | ||
157 | 155 | ||
158 | 156 | func calcPriceBigInt (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18) | |
159 | 157 | ||
160 | 158 | ||
161 | 159 | func privateCalcPrice (amAssetDcm,prAssetDcm,amAmt,prAmt) = { | |
162 | 160 | let amtAssetAmtX18 = toX18(amAmt, amAssetDcm) | |
163 | 161 | let priceAssetAmtX18 = toX18(prAmt, prAssetDcm) | |
164 | 162 | calcPriceBigInt(priceAssetAmtX18, amtAssetAmtX18) | |
165 | 163 | } | |
166 | 164 | ||
167 | 165 | ||
168 | 166 | func calcPrices (amAmt,prAmt,lpAmt) = { | |
169 | 167 | let cfg = getPoolConfig() | |
170 | 168 | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
171 | 169 | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
172 | 170 | let priceX18 = privateCalcPrice(amtAssetDcm, priceAssetDcm, amAmt, prAmt) | |
173 | 171 | let amAmtX18 = toX18(amAmt, amtAssetDcm) | |
174 | 172 | let prAmtX18 = toX18(prAmt, priceAssetDcm) | |
175 | 173 | let lpAmtX18 = toX18(lpAmt, scale8) | |
176 | 174 | let lpPriceInAmAssetX18 = calcPriceBigInt(amAmtX18, lpAmtX18) | |
177 | 175 | let lpPriceInPrAssetX18 = calcPriceBigInt(prAmtX18, lpAmtX18) | |
178 | 176 | [priceX18, lpPriceInAmAssetX18, lpPriceInPrAssetX18] | |
179 | 177 | } | |
180 | 178 | ||
181 | 179 | ||
182 | 180 | func calculatePrices (amAmt,prAmt,lpAmt) = { | |
183 | 181 | let prices = calcPrices(amAmt, prAmt, lpAmt) | |
184 | 182 | [fromX18(prices[0], scale8), fromX18(prices[1], scale8), fromX18(prices[2], scale8)] | |
185 | 183 | } | |
186 | 184 | ||
187 | 185 | ||
188 | 186 | func estimateGetOperation (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
189 | 187 | let cfg = getPoolConfig() | |
190 | 188 | let lpAssetId = cfg[idxPoolLPAssetId] | |
191 | 189 | let amAssetId = cfg[idxAmtAssetId] | |
192 | 190 | let prAssetId = cfg[idxPriceAssetId] | |
193 | 191 | let amAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
194 | 192 | let prAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
195 | 193 | let poolStatus = cfg[idxPoolStatus] | |
196 | 194 | let lpEmission = valueOrErrorMessage(assetInfo(fromBase58String(lpAssetId)), (("Asset " + lpAssetId) + " doesn't exist")).quantity | |
197 | 195 | if ((lpAssetId != pmtAssetId)) | |
198 | 196 | then throw("Invalid asset passed.") | |
199 | 197 | else { | |
200 | 198 | let amBalance = getAccBalance(amAssetId) | |
201 | 199 | let amBalanceX18 = toX18(amBalance, amAssetDcm) | |
202 | 200 | let prBalance = getAccBalance(prAssetId) | |
203 | 201 | let prBalanceX18 = toX18(prBalance, prAssetDcm) | |
204 | 202 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
205 | 203 | let curPrice = fromX18(curPriceX18, scale8) | |
206 | 204 | let pmtLpAmtX18 = toX18(pmtLpAmt, scale8) | |
207 | 205 | let lpEmissionX18 = toX18(lpEmission, scale8) | |
208 | 206 | let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissionX18) | |
209 | 207 | let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissionX18) | |
210 | 208 | let outAmAmt = fromX18(outAmAmtX18, amAssetDcm) | |
211 | 209 | let outPrAmt = fromX18(outPrAmtX18, prAssetDcm) | |
212 | 210 | let state = if ((txId58 == "")) | |
213 | 211 | then nil | |
214 | 212 | else [ScriptTransfer(userAddress, outAmAmt, if ((amAssetId == "WAVES")) | |
215 | 213 | then unit | |
216 | 214 | else fromBase58String(amAssetId)), ScriptTransfer(userAddress, outPrAmt, if ((prAssetId == "WAVES")) | |
217 | 215 | then unit | |
218 | - | else fromBase58String(prAssetId)), StringEntry( | |
216 | + | else fromBase58String(prAssetId)), StringEntry(gau(toString(userAddress), txId58), dataGetActionInfo(outAmAmt, outPrAmt, pmtLpAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice)] | |
219 | 217 | $Tuple10(outAmAmt, outPrAmt, amAssetId, prAssetId, amBalance, prBalance, lpEmission, curPriceX18, poolStatus, state) | |
220 | 218 | } | |
221 | 219 | } | |
222 | 220 | ||
223 | 221 | ||
224 | 222 | func estimatePutOperation (txId58,slippageTolerance,inAmAssetAmt,inAmAssetId,inPrAssetAmt,inPrAssetId,userAddress,isEvaluate,emitLp) = { | |
225 | 223 | let cfg = getPoolConfig() | |
226 | 224 | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
227 | 225 | let amAssetIdStr = cfg[idxAmtAssetId] | |
228 | 226 | let prAssetIdStr = cfg[idxPriceAssetId] | |
229 | 227 | let iAmtAssetId = cfg[idxIAmtAssetId] | |
230 | 228 | let iPriceAssetId = cfg[idxIPriceAssetId] | |
231 | 229 | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
232 | 230 | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
233 | 231 | let poolStatus = cfg[idxPoolStatus] | |
234 | 232 | let lpEmission = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
235 | 233 | let inAmAssetIdStr = toBase58String(valueOrElse(inAmAssetId, fromBase58String("WAVES"))) | |
236 | 234 | let inPrAssetIdStr = toBase58String(valueOrElse(inPrAssetId, fromBase58String("WAVES"))) | |
237 | 235 | if (if ((amAssetIdStr != inAmAssetIdStr)) | |
238 | 236 | then true | |
239 | 237 | else (prAssetIdStr != inPrAssetIdStr)) | |
240 | 238 | then throw("Invalid amt or price asset passed.") | |
241 | 239 | else { | |
242 | 240 | let amBalance = if (isEvaluate) | |
243 | 241 | then getAccBalance(amAssetIdStr) | |
244 | 242 | else (getAccBalance(amAssetIdStr) - inAmAssetAmt) | |
245 | 243 | let prBalance = if (isEvaluate) | |
246 | 244 | then getAccBalance(prAssetIdStr) | |
247 | 245 | else (getAccBalance(prAssetIdStr) - inPrAssetAmt) | |
248 | 246 | let inAmAssetAmtX18 = toX18(inAmAssetAmt, amtAssetDcm) | |
249 | 247 | let inPrAssetAmtX18 = toX18(inPrAssetAmt, priceAssetDcm) | |
250 | 248 | let userPriceX18 = calcPriceBigInt(inPrAssetAmtX18, inAmAssetAmtX18) | |
251 | 249 | let amBalanceX18 = toX18(amBalance, amtAssetDcm) | |
252 | 250 | let prBalanceX18 = toX18(prBalance, priceAssetDcm) | |
253 | 251 | let res = if ((lpEmission == 0)) | |
254 | 252 | then { | |
255 | 253 | let curPriceX18 = zeroBigInt | |
256 | 254 | let slippageX18 = zeroBigInt | |
257 | 255 | let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN) | |
258 | 256 | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(inAmAssetAmtX18, amtAssetDcm), fromX18(inPrAssetAmtX18, priceAssetDcm), calcPriceBigInt((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18) | |
259 | 257 | } | |
260 | 258 | else { | |
261 | 259 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
262 | 260 | let slippageX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18) | |
263 | 261 | let slippageToleranceX18 = toX18(slippageTolerance, scale8) | |
264 | 262 | if (if ((curPriceX18 != zeroBigInt)) | |
265 | 263 | then (slippageX18 > slippageToleranceX18) | |
266 | 264 | else false) | |
267 | 265 | then throw(((("Price slippage " + toString(slippageX18)) + " exceeded the passed limit of ") + toString(slippageToleranceX18))) | |
268 | 266 | else { | |
269 | 267 | let lpEmissionX18 = toX18(lpEmission, scale8) | |
270 | 268 | let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18) | |
271 | 269 | let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18) | |
272 | 270 | let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18)) | |
273 | 271 | then $Tuple2(amViaPrX18, inPrAssetAmtX18) | |
274 | 272 | else $Tuple2(inAmAssetAmtX18, prViaAmX18) | |
275 | 273 | let expAmtAssetAmtX18 = expectedAmts._1 | |
276 | 274 | let expPriceAssetAmtX18 = expectedAmts._2 | |
277 | 275 | let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18) | |
278 | 276 | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(expAmtAssetAmtX18, amtAssetDcm), fromX18(expPriceAssetAmtX18, priceAssetDcm), curPriceX18, slippageX18) | |
279 | 277 | } | |
280 | 278 | } | |
281 | 279 | let calcLpAmt = res._1 | |
282 | 280 | let calcAmAssetPmt = res._2 | |
283 | 281 | let calcPrAssetPmt = res._3 | |
284 | 282 | let curPrice = fromX18(res._4, scale8) | |
285 | 283 | let slippageCalc = fromX18(res._5, scale8) | |
286 | 284 | if ((0 >= calcLpAmt)) | |
287 | 285 | then throw("Invalid calculations. LP calculated is less than zero.") | |
288 | 286 | else { | |
289 | 287 | let emitLpAmt = if (!(emitLp)) | |
290 | 288 | then 0 | |
291 | 289 | else calcLpAmt | |
292 | 290 | let amDiff = (inAmAssetAmt - calcAmAssetPmt) | |
293 | 291 | let prDiff = (inPrAssetAmt - calcPrAssetPmt) | |
294 | - | let commonState = [IntegerEntry( | |
292 | + | let commonState = [IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice), StringEntry(pau(userAddress, txId58), dataPutActionInfo(calcAmAssetPmt, calcPrAssetPmt, emitLpAmt, curPrice, slippageTolerance, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))] | |
295 | 293 | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEmission, lpAssetId, poolStatus, commonState, amDiff, prDiff, inAmAssetId, inPrAssetId) | |
296 | 294 | } | |
297 | 295 | } | |
298 | 296 | } | |
299 | 297 | ||
300 | 298 | ||
301 | 299 | func validateMatcherOrderAllowed (order) = { | |
302 | 300 | let cfg = getPoolConfig() | |
303 | 301 | let amtAssetId = cfg[idxAmtAssetId] | |
304 | 302 | let priceAssetId = cfg[idxPriceAssetId] | |
305 | 303 | let poolStatus = parseIntValue(cfg[idxPoolStatus]) | |
306 | 304 | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
307 | 305 | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
308 | 306 | let accAmtAssetBalance = getAccBalance(amtAssetId) | |
309 | 307 | let accPriceAssetBalance = getAccBalance(priceAssetId) | |
310 | 308 | let curPriceX18 = if ((order.orderType == Buy)) | |
311 | 309 | then privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance + order.amount), accPriceAssetBalance) | |
312 | 310 | else privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance - order.amount), accPriceAssetBalance) | |
313 | 311 | let curPrice = fromX18(curPriceX18, scale8) | |
314 | 312 | if (if (if (isGlobalShutdown()) | |
315 | 313 | then true | |
316 | 314 | else (poolStatus == PoolMatcherDisabled)) | |
317 | 315 | then true | |
318 | 316 | else (poolStatus == PoolShutdown)) | |
319 | 317 | then throw("Exchange operations disabled") | |
320 | 318 | else { | |
321 | 319 | let orderAmtAsset = order.assetPair.amountAsset | |
322 | 320 | let orderAmtAssetStr = if ((orderAmtAsset == unit)) | |
323 | 321 | then "WAVES" | |
324 | 322 | else toBase58String(value(orderAmtAsset)) | |
325 | 323 | let orderPriceAsset = order.assetPair.priceAsset | |
326 | 324 | let orderPriceAssetStr = if ((orderPriceAsset == unit)) | |
327 | 325 | then "WAVES" | |
328 | 326 | else toBase58String(value(orderPriceAsset)) | |
329 | 327 | if (if ((orderAmtAssetStr != amtAssetId)) | |
330 | 328 | then true | |
331 | 329 | else (orderPriceAssetStr != priceAssetId)) | |
332 | 330 | then throw("Wrong order assets.") | |
333 | 331 | else { | |
334 | 332 | let orderPrice = order.price | |
335 | 333 | let priceDcm = fraction(scale8, priceAssetDcm, amtAssetDcm) | |
336 | 334 | let castedOrderPrice = toScale(orderPrice, scale8, priceDcm) | |
337 | 335 | let isOrderPriceValid = if ((order.orderType == Buy)) | |
338 | 336 | then (curPrice >= castedOrderPrice) | |
339 | 337 | else (castedOrderPrice >= curPrice) | |
340 | 338 | true | |
341 | 339 | } | |
342 | 340 | } | |
343 | 341 | } | |
344 | 342 | ||
345 | 343 | ||
346 | 344 | func commonGet (i) = if ((size(i.payments) != 1)) | |
347 | 345 | then throw("exactly 1 payment is expected") | |
348 | 346 | else { | |
349 | 347 | let pmt = value(i.payments[0]) | |
350 | 348 | let pmtAssetId = value(pmt.assetId) | |
351 | 349 | let pmtAmt = pmt.amount | |
352 | 350 | let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
353 | 351 | let outAmAmt = res._1 | |
354 | 352 | let outPrAmt = res._2 | |
355 | 353 | let poolStatus = parseIntValue(res._9) | |
356 | 354 | let state = res._10 | |
357 | 355 | if (if (isGlobalShutdown()) | |
358 | 356 | then true | |
359 | 357 | else (poolStatus == PoolShutdown)) | |
360 | 358 | then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus))) | |
361 | 359 | else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state) | |
362 | 360 | } | |
363 | 361 | ||
364 | 362 | ||
365 | 363 | func commonPut (i,slippageTolerance,emitLp) = if ((size(i.payments) != 2)) | |
366 | 364 | then throw("exactly 2 payments are expected") | |
367 | 365 | else { | |
368 | 366 | let amAssetPmt = value(i.payments[0]) | |
369 | 367 | let prAssetPmt = value(i.payments[1]) | |
370 | 368 | let estPut = estimatePutOperation(toBase58String(i.transactionId), slippageTolerance, amAssetPmt.amount, amAssetPmt.assetId, prAssetPmt.amount, prAssetPmt.assetId, toString(i.caller), false, emitLp) | |
371 | 369 | let poolStatus = parseIntValue(estPut._8) | |
372 | 370 | if (if (if (isGlobalShutdown()) | |
373 | 371 | then true | |
374 | 372 | else (poolStatus == PoolPutDisabled)) | |
375 | 373 | then true | |
376 | 374 | else (poolStatus == PoolShutdown)) | |
377 | 375 | then throw(("Put operation is blocked by admin. Status = " + toString(poolStatus))) | |
378 | 376 | else estPut | |
379 | 377 | } | |
380 | 378 | ||
381 | 379 | ||
380 | + | func managerPublicKeyOrUnit () = match getString(mpk()) { | |
381 | + | case s: String => | |
382 | + | fromBase58String(s) | |
383 | + | case _: Unit => | |
384 | + | unit | |
385 | + | case _ => | |
386 | + | throw("Match error") | |
387 | + | } | |
388 | + | ||
389 | + | ||
390 | + | func pendingManagerPublicKeyOrUnit () = match getString(pmpk()) { | |
391 | + | case s: String => | |
392 | + | fromBase58String(s) | |
393 | + | case _: Unit => | |
394 | + | unit | |
395 | + | case _ => | |
396 | + | throw("Match error") | |
397 | + | } | |
398 | + | ||
399 | + | ||
400 | + | func mustManager (i) = { | |
401 | + | let pd = throw("Permission denied") | |
402 | + | match managerPublicKeyOrUnit() { | |
403 | + | case pk: ByteVector => | |
404 | + | if ((i.callerPublicKey == pk)) | |
405 | + | then true | |
406 | + | else pd | |
407 | + | case _: Unit => | |
408 | + | if ((i.caller == this)) | |
409 | + | then true | |
410 | + | else pd | |
411 | + | case _ => | |
412 | + | throw("Match error") | |
413 | + | } | |
414 | + | } | |
415 | + | ||
416 | + | ||
382 | 417 | @Callable(i) | |
383 | - | func constructor (factoryContract,managerPublicKey) = if ((i.caller != this)) | |
384 | - | then throw("permissions denied") | |
385 | - | else [StringEntry(keyFactoryContract(), factoryContract), StringEntry(keyManagerPublicKey(), managerPublicKey)] | |
418 | + | func constructor (factoryContract) = { | |
419 | + | let checkCaller = mustManager(i) | |
420 | + | if ((checkCaller == checkCaller)) | |
421 | + | then [StringEntry(fc(), factoryContract)] | |
422 | + | else throw("Strict value is not equal to itself.") | |
423 | + | } | |
424 | + | ||
425 | + | ||
426 | + | ||
427 | + | @Callable(i) | |
428 | + | func setManager (pendingManagerPublicKey) = { | |
429 | + | let checkCaller = mustManager(i) | |
430 | + | if ((checkCaller == checkCaller)) | |
431 | + | then { | |
432 | + | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
433 | + | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
434 | + | then [StringEntry(pmpk(), pendingManagerPublicKey)] | |
435 | + | else throw("Strict value is not equal to itself.") | |
436 | + | } | |
437 | + | else throw("Strict value is not equal to itself.") | |
438 | + | } | |
439 | + | ||
440 | + | ||
441 | + | ||
442 | + | @Callable(i) | |
443 | + | func confirmManager () = { | |
444 | + | let pm = pendingManagerPublicKeyOrUnit() | |
445 | + | let hasPM = if (isDefined(pm)) | |
446 | + | then true | |
447 | + | else throw("No pending manager") | |
448 | + | if ((hasPM == hasPM)) | |
449 | + | then { | |
450 | + | let checkPM = if ((i.callerPublicKey == value(pm))) | |
451 | + | then true | |
452 | + | else throw("You are not pending manager") | |
453 | + | if ((checkPM == checkPM)) | |
454 | + | then [StringEntry(mpk(), toBase58String(value(pm))), DeleteEntry(pmpk())] | |
455 | + | else throw("Strict value is not equal to itself.") | |
456 | + | } | |
457 | + | else throw("Strict value is not equal to itself.") | |
458 | + | } | |
386 | 459 | ||
387 | 460 | ||
388 | 461 | ||
389 | 462 | @Callable(i) | |
390 | 463 | func put (slippageTolerance,shouldAutoStake) = { | |
391 | 464 | let factoryCfg = getFactoryConfig() | |
392 | 465 | let stakingContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactoryStakingContract]), "Error. Incorrect staking address.") | |
393 | 466 | let slippageContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactorySlippageContract]), "Error. Incorrect slippage contract address.") | |
394 | 467 | if ((0 > slippageTolerance)) | |
395 | 468 | then throw("Invalid slippageTolerance passed") | |
396 | 469 | else { | |
397 | 470 | let estPut = commonPut(i, slippageTolerance, true) | |
398 | 471 | let emitLpAmt = estPut._2 | |
399 | 472 | let lpAssetId = estPut._7 | |
400 | 473 | let state = estPut._9 | |
401 | 474 | let amDiff = estPut._10 | |
402 | 475 | let prDiff = estPut._11 | |
403 | 476 | let amId = estPut._12 | |
404 | 477 | let prId = estPut._13 | |
405 | 478 | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
406 | 479 | if ((emitInv == emitInv)) | |
407 | 480 | then { | |
408 | - | let slippageAInv = if ((amDiff > 0)) | |
409 | - | then invoke(slippageContract, "put", nil, [AttachedPayment(amId, amDiff)]) | |
410 | - | else nil | |
411 | - | if ((slippageAInv == slippageAInv)) | |
481 | + | let emitInvLegacy = match emitInv { | |
482 | + | case legacyFactoryContract: Address => | |
483 | + | invoke(legacyFactoryContract, "emit", [emitLpAmt], nil) | |
484 | + | case _ => | |
485 | + | unit | |
486 | + | } | |
487 | + | if ((emitInvLegacy == emitInvLegacy)) | |
412 | 488 | then { | |
413 | - | let | |
414 | - | then invoke(slippageContract, "put", nil, [AttachedPayment( | |
489 | + | let slippageAInv = if ((amDiff > 0)) | |
490 | + | then invoke(slippageContract, "put", nil, [AttachedPayment(amId, amDiff)]) | |
415 | 491 | else nil | |
416 | - | if (( | |
492 | + | if ((slippageAInv == slippageAInv)) | |
417 | 493 | then { | |
418 | - | let lpTransfer = if (shouldAutoStake) | |
494 | + | let slippagePInv = if ((prDiff > 0)) | |
495 | + | then invoke(slippageContract, "put", nil, [AttachedPayment(prId, prDiff)]) | |
496 | + | else nil | |
497 | + | if ((slippagePInv == slippagePInv)) | |
419 | 498 | then { | |
420 | - | let slpStakeInv = invoke(stakingContract, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
421 | - | if ((slpStakeInv == slpStakeInv)) | |
422 | - | then nil | |
423 | - | else throw("Strict value is not equal to itself.") | |
499 | + | let lpTransfer = if (shouldAutoStake) | |
500 | + | then { | |
501 | + | let slpStakeInv = invoke(stakingContract, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
502 | + | if ((slpStakeInv == slpStakeInv)) | |
503 | + | then nil | |
504 | + | else throw("Strict value is not equal to itself.") | |
505 | + | } | |
506 | + | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
507 | + | (state ++ lpTransfer) | |
424 | 508 | } | |
425 | - | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
426 | - | (state ++ lpTransfer) | |
509 | + | else throw("Strict value is not equal to itself.") | |
427 | 510 | } | |
428 | 511 | else throw("Strict value is not equal to itself.") | |
429 | 512 | } | |
430 | 513 | else throw("Strict value is not equal to itself.") | |
431 | 514 | } | |
432 | 515 | else throw("Strict value is not equal to itself.") | |
433 | 516 | } | |
434 | 517 | } | |
435 | 518 | ||
436 | 519 | ||
437 | 520 | ||
438 | 521 | @Callable(i) | |
439 | 522 | func putForFree (maxSlippage) = if ((0 > maxSlippage)) | |
440 | 523 | then throw("Invalid value passed") | |
441 | 524 | else { | |
442 | 525 | let estPut = commonPut(i, maxSlippage, false) | |
443 | 526 | estPut._9 | |
444 | 527 | } | |
445 | 528 | ||
446 | 529 | ||
447 | 530 | ||
448 | 531 | @Callable(i) | |
449 | 532 | func get () = { | |
450 | 533 | let res = commonGet(i) | |
451 | 534 | let outAmtAmt = res._1 | |
452 | 535 | let outPrAmt = res._2 | |
453 | 536 | let pmtAmt = res._3 | |
454 | 537 | let pmtAssetId = res._4 | |
455 | 538 | let state = res._5 | |
456 | 539 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
457 | 540 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
458 | 541 | then state | |
459 | 542 | else throw("Strict value is not equal to itself.") | |
460 | 543 | } | |
461 | 544 | ||
462 | 545 | ||
463 | 546 | ||
464 | 547 | @Callable(i) | |
465 | 548 | func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = { | |
466 | 549 | let res = commonGet(i) | |
467 | 550 | let outAmAmt = res._1 | |
468 | 551 | let outPrAmt = res._2 | |
469 | 552 | let pmtAmt = res._3 | |
470 | 553 | let pmtAssetId = res._4 | |
471 | 554 | let state = res._5 | |
472 | 555 | if ((noLessThenAmtAsset > outAmAmt)) | |
473 | 556 | then throw(((("noLessThenAmtAsset failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset))) | |
474 | 557 | else if ((noLessThenPriceAsset > outPrAmt)) | |
475 | 558 | then throw(((("noLessThenPriceAsset failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset))) | |
476 | 559 | else { | |
477 | 560 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
478 | 561 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
479 | 562 | then state | |
480 | 563 | else throw("Strict value is not equal to itself.") | |
481 | 564 | } | |
482 | 565 | } | |
483 | 566 | ||
484 | 567 | ||
485 | 568 | ||
486 | 569 | @Callable(i) | |
487 | 570 | func unstakeAndGet (amount) = { | |
488 | 571 | let checkPayments = if ((size(i.payments) != 0)) | |
489 | 572 | then throw("No payments are expected") | |
490 | 573 | else true | |
491 | 574 | if ((checkPayments == checkPayments)) | |
492 | 575 | then { | |
493 | 576 | let cfg = getPoolConfig() | |
494 | 577 | let factoryCfg = getFactoryConfig() | |
495 | 578 | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
496 | 579 | let stakingContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactoryStakingContract]), "Error. Incorrect staking address.") | |
497 | 580 | let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(lpAssetId), amount], nil) | |
498 | 581 | if ((unstakeInv == unstakeInv)) | |
499 | 582 | then { | |
500 | 583 | let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller) | |
501 | 584 | let poolStatus = parseIntValue(res._9) | |
502 | 585 | let state = res._10 | |
503 | 586 | let checkPoolStatus = if (if (isGlobalShutdown()) | |
504 | 587 | then true | |
505 | 588 | else (poolStatus == PoolShutdown)) | |
506 | 589 | then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus))) | |
507 | 590 | else true | |
508 | 591 | if ((checkPoolStatus == checkPoolStatus)) | |
509 | 592 | then { | |
510 | 593 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [amount], [AttachedPayment(lpAssetId, amount)]) | |
511 | 594 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
512 | 595 | then state | |
513 | 596 | else throw("Strict value is not equal to itself.") | |
514 | 597 | } | |
515 | 598 | else throw("Strict value is not equal to itself.") | |
516 | 599 | } | |
517 | 600 | else throw("Strict value is not equal to itself.") | |
518 | 601 | } | |
519 | 602 | else throw("Strict value is not equal to itself.") | |
520 | 603 | } | |
521 | 604 | ||
522 | 605 | ||
523 | 606 | ||
524 | 607 | @Callable(i) | |
525 | 608 | func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract))) | |
526 | 609 | then throw("permissions denied") | |
527 | - | else $Tuple2([StringEntry( | |
610 | + | else $Tuple2([StringEntry(aa(), amtAssetStr), StringEntry(pa(), priceAssetStr)], "success") | |
528 | 611 | ||
529 | 612 | ||
530 | 613 | ||
531 | 614 | @Callable(i) | |
532 | 615 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, getPoolConfig()) | |
533 | 616 | ||
534 | 617 | ||
535 | 618 | ||
536 | 619 | @Callable(i) | |
537 | 620 | func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId)) | |
538 | 621 | ||
539 | 622 | ||
540 | 623 | ||
541 | 624 | @Callable(i) | |
542 | 625 | func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = { | |
543 | 626 | let prices = calcPrices(amAmt, prAmt, lpAmt) | |
544 | 627 | $Tuple2(nil, [toString(prices[0]), toString(prices[1]), toString(prices[2])]) | |
545 | 628 | } | |
546 | 629 | ||
547 | 630 | ||
548 | 631 | ||
549 | 632 | @Callable(i) | |
550 | 633 | func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(toX18(origVal, origScaleMult))) | |
551 | 634 | ||
552 | 635 | ||
553 | 636 | ||
554 | 637 | @Callable(i) | |
555 | 638 | func fromX18WrapperREADONLY (val,resultScaleMult) = $Tuple2(nil, fromX18(parseBigIntValue(val), resultScaleMult)) | |
556 | 639 | ||
557 | 640 | ||
558 | 641 | ||
559 | 642 | @Callable(i) | |
560 | 643 | func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(calcPriceBigInt(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18)))) | |
561 | 644 | ||
562 | 645 | ||
563 | 646 | ||
564 | 647 | @Callable(i) | |
565 | 648 | func estimatePutOperationWrapperREADONLY (txId58,slippageTolerance,inAmAssetAmt,inAmAssetId,inPrAssetAmt,inPrAssetId,userAddress,isEvaluate,emitLp) = $Tuple2(nil, estimatePutOperation(txId58, slippageTolerance, inAmAssetAmt, inAmAssetId, inPrAssetAmt, inPrAssetId, userAddress, isEvaluate, emitLp)) | |
566 | 649 | ||
567 | 650 | ||
568 | 651 | ||
569 | 652 | @Callable(i) | |
570 | 653 | func estimateGetOperationWrapperREADONLY (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
571 | 654 | let res = estimateGetOperation(txId58, pmtAssetId, pmtLpAmt, addressFromStringValue(userAddress)) | |
572 | 655 | $Tuple2(nil, $Tuple10(res._1, res._2, res._3, res._4, res._5, res._6, res._7, toString(res._8), res._9, res._10)) | |
573 | 656 | } | |
574 | 657 | ||
575 | 658 | ||
576 | 659 | ||
577 | 660 | @Callable(i) | |
578 | 661 | func statsREADONLY () = { | |
579 | 662 | let cfg = getPoolConfig() | |
580 | 663 | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
581 | 664 | let amtAssetId = cfg[idxAmtAssetId] | |
582 | 665 | let priceAssetId = cfg[idxPriceAssetId] | |
583 | 666 | let iAmtAssetId = cfg[idxIAmtAssetId] | |
584 | 667 | let iPriceAssetId = cfg[idxIPriceAssetId] | |
585 | 668 | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
586 | 669 | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
587 | 670 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
588 | 671 | let accAmtAssetBalance = getAccBalance(amtAssetId) | |
589 | 672 | let accPriceAssetBalance = getAccBalance(priceAssetId) | |
590 | 673 | let pricesList = if ((poolLPBalance == 0)) | |
591 | 674 | then [zeroBigInt, zeroBigInt, zeroBigInt] | |
592 | 675 | else calcPrices(accAmtAssetBalance, accPriceAssetBalance, poolLPBalance) | |
593 | 676 | let curPrice = 0 | |
594 | 677 | let lpAmtAssetShare = fromX18(pricesList[1], scale8) | |
595 | 678 | let lpPriceAssetShare = fromX18(pricesList[2], scale8) | |
596 | 679 | let poolWeight = value(getInteger(factoryContract, keyPoolWeight(toString(this)))) | |
597 | 680 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight)], SEP)) | |
598 | 681 | } | |
599 | 682 | ||
600 | 683 | ||
601 | 684 | ||
602 | 685 | @Callable(i) | |
603 | 686 | func evaluatePutByAmountAssetREADONLY (inAmAssetAmt) = { | |
604 | 687 | let cfg = getPoolConfig() | |
605 | 688 | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
606 | 689 | let amAssetIdStr = cfg[idxAmtAssetId] | |
607 | 690 | let amAssetId = fromBase58String(amAssetIdStr) | |
608 | 691 | let prAssetIdStr = cfg[idxPriceAssetId] | |
609 | 692 | let prAssetId = fromBase58String(prAssetIdStr) | |
610 | 693 | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
611 | 694 | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
612 | 695 | let poolStatus = cfg[idxPoolStatus] | |
613 | 696 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
614 | 697 | let accAmtAssetBalance = getAccBalance(amAssetIdStr) | |
615 | 698 | let accPriceAssetBalance = getAccBalance(prAssetIdStr) | |
616 | 699 | let amtAssetAmtX18 = toX18(accAmtAssetBalance, amtAssetDcm) | |
617 | 700 | let priceAssetAmtX18 = toX18(accPriceAssetBalance, priceAssetDcm) | |
618 | 701 | let curPriceX18 = if ((poolLPBalance == 0)) | |
619 | 702 | then zeroBigInt | |
620 | 703 | else calcPriceBigInt(priceAssetAmtX18, amtAssetAmtX18) | |
621 | 704 | let inAmAssetAmtX18 = toX18(inAmAssetAmt, amtAssetDcm) | |
622 | 705 | let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18) | |
623 | 706 | let inPrAssetAmt = fromX18(inPrAssetAmtX18, priceAssetDcm) | |
624 | 707 | let estPut = estimatePutOperation("", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false) | |
625 | 708 | let calcLpAmt = estPut._1 | |
626 | 709 | let curPriceCalc = estPut._3 | |
627 | 710 | let amBalance = estPut._4 | |
628 | 711 | let prBalance = estPut._5 | |
629 | 712 | let lpEmission = estPut._6 | |
630 | 713 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(fromX18(curPriceX18, scale8)), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP)) | |
631 | 714 | } | |
632 | 715 | ||
633 | 716 | ||
634 | 717 | ||
635 | 718 | @Callable(i) | |
636 | 719 | func evaluatePutByPriceAssetREADONLY (inPrAssetAmt) = { | |
637 | 720 | let cfg = getPoolConfig() | |
638 | 721 | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
639 | 722 | let amAssetIdStr = cfg[idxAmtAssetId] | |
640 | 723 | let amAssetId = fromBase58String(amAssetIdStr) | |
641 | 724 | let prAssetIdStr = cfg[idxPriceAssetId] | |
642 | 725 | let prAssetId = fromBase58String(prAssetIdStr) | |
643 | 726 | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
644 | 727 | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
645 | 728 | let poolStatus = cfg[idxPoolStatus] | |
646 | 729 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
647 | 730 | let amBalanceRaw = getAccBalance(amAssetIdStr) | |
648 | 731 | let prBalanceRaw = getAccBalance(prAssetIdStr) | |
649 | 732 | let amBalanceRawX18 = toX18(amBalanceRaw, amtAssetDcm) | |
650 | 733 | let prBalanceRawX18 = toX18(prBalanceRaw, priceAssetDcm) | |
651 | 734 | let curPriceX18 = if ((poolLPBalance == 0)) | |
652 | 735 | then zeroBigInt | |
653 | 736 | else calcPriceBigInt(prBalanceRawX18, amBalanceRawX18) | |
654 | 737 | let inPrAssetAmtX18 = toX18(inPrAssetAmt, priceAssetDcm) | |
655 | 738 | let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18) | |
656 | 739 | let inAmAssetAmt = fromX18(inAmAssetAmtX18, amtAssetDcm) | |
657 | 740 | let estPut = estimatePutOperation("", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false) | |
658 | 741 | let calcLpAmt = estPut._1 | |
659 | 742 | let curPriceCalc = estPut._3 | |
660 | 743 | let amBalance = estPut._4 | |
661 | 744 | let prBalance = estPut._5 | |
662 | 745 | let lpEmission = estPut._6 | |
663 | 746 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(fromX18(curPriceX18, scale8)), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP)) | |
664 | 747 | } | |
665 | 748 | ||
666 | 749 | ||
667 | 750 | ||
668 | 751 | @Callable(i) | |
669 | 752 | func evaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = { | |
670 | 753 | let res = estimateGetOperation("", paymentLpAssetId, paymentLpAmt, this) | |
671 | 754 | let outAmAmt = res._1 | |
672 | 755 | let outPrAmt = res._2 | |
673 | 756 | let amBalance = res._5 | |
674 | 757 | let prBalance = res._6 | |
675 | 758 | let lpEmission = res._7 | |
676 | 759 | let curPrice = res._8 | |
677 | 760 | let poolStatus = parseIntValue(res._9) | |
678 | 761 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), toString(curPrice), toString(poolStatus)], SEP)) | |
679 | 762 | } | |
680 | 763 | ||
681 | 764 | ||
682 | 765 | @Verifier(tx) | |
683 | 766 | func verify () = match tx { | |
684 | 767 | case order: Order => | |
685 | 768 | let matcherPub = getMatcherPubOrFail() | |
686 | 769 | let orderValid = validateMatcherOrderAllowed(order) | |
687 | 770 | let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
688 | 771 | let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub) | |
689 | 772 | if (if (if (orderValid) | |
690 | 773 | then senderValid | |
691 | 774 | else false) | |
692 | 775 | then matcherValid | |
693 | 776 | else false) | |
694 | 777 | then true | |
695 | 778 | else throwOrderError(orderValid, senderValid, matcherValid) | |
696 | 779 | case _ => | |
697 | - | let managerPublic = valueOrElse(getString(this, keyManagerPublicKey()), EMPTY) | |
698 | - | if ((managerPublic == EMPTY)) | |
699 | - | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
700 | - | else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(managerPublic)) | |
780 | + | let targetPublicKey = match managerPublicKeyOrUnit() { | |
781 | + | case pk: ByteVector => | |
782 | + | pk | |
783 | + | case _: Unit => | |
784 | + | tx.senderPublicKey | |
785 | + | case _ => | |
786 | + | throw("Match error") | |
787 | + | } | |
788 | + | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
701 | 789 | } | |
702 | 790 |
github/deemru/w8io/026f985 167.17 ms ◑