tx · G28EzNHP6orvXMcYiVied6QEnvyf28v4JtZhYj2qkaRe 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp: -0.03000000 Waves 2022.09.02 12:57 [2211355] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves
{ "type": 13, "id": "G28EzNHP6orvXMcYiVied6QEnvyf28v4JtZhYj2qkaRe", "fee": 3000000, "feeAssetId": null, "timestamp": 1662112637031, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "xuaRRfhdiPuzqM6USCZ1BBBhB9PNCp7135igVxhqg4gGVdZoi1te497xQTQWM86bHGnkbC1xB8YCJMFSFspw1Qq" ], "script": "base64:BgJkCAISAwoBCBIDCgEIEgQKAggIEgMKAQgSCQoHARERERgIGBIHCgUREREYCBIHCgUBAQEICBIAEgMKAQgSBAoCCAESBAoCCAESBAoCCAESAwoBCBIJCgcIAQEBAQgBEgMKAQgSAFoABlNDQUxFOAAIAAVNVUxUOACAwtcvAAdTQ0FMRTE4ABIABk1VTFQxOAkAtgIBAICAkLu61q3wDQADU0VQAgJfXwAOUE9PTFdFSUdIVE1VTFQFBU1VTFQ4AAp6ZXJvQmlnSW50CQC2AgEAAAAOaWR4UG9vbEFkZHJlc3MAAQANaWR4UG9vbFN0YXR1cwACABBpZHhQb29sTFBBc3NldElkAAMADWlkeEFtdEFzc2V0SWQABAAPaWR4UHJpY2VBc3NldElkAAUADmlkeEFtdEFzc2V0RGNtAAYAEGlkeFByaWNlQXNzZXREY20ABwAOaWR4SUFtdEFzc2V0SWQACAAQaWR4SVByaWNlQXNzZXRJZAAJAA1pZHhMUEFzc2V0RGNtAAoBD2dldFN0cmluZ09yRmFpbAEDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAKIIAQUDa2V5CQCsAgIJAKwCAgIPbWFuZGF0b3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C0RlbGV0ZUVudHJ5AQkBGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQPdGFyZ2V0UHVibGljS2V5BAckbWF0Y2gwCQEWbWFuYWdlclB1YmxpY0tleU9yVW5pdAADCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQCcGsFByRtYXRjaDAFAnBrAwkAAQIFByRtYXRjaDACBFVuaXQIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUPdGFyZ2V0UHVibGljS2V5UPSZZg==", "chainId": 84, "height": 2211355, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8MxAtLqVjF8mQbBUFdkRTyJioWQ21dhHDymQ5HUwmB4d Next: Hkn4HC6RBFx4v3qhqrbtXqt55KAxV7JYyXA6kxWx7vZr Diff:
Old | New | Differences | |
---|---|---|---|
226 | 226 | ||
227 | 227 | ||
228 | 228 | func keyAddonAddr () = "%s__addonAddr" | |
229 | - | ||
230 | - | ||
231 | - | func keyFeePermille () = "%s__feePermille" | |
232 | 229 | ||
233 | 230 | ||
234 | 231 | let factoryDapp = readFactoryAddressOrFail() | |
515 | 512 | let lpAmtAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil)) | |
516 | 513 | let lpPriceAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil)) | |
517 | 514 | let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress))) | |
518 | - | let feePermille = getIntOrZero(poolAddress, keyFeePermille()) | |
519 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight), toString(feePermille)], SEP)) | |
515 | + | $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)) | |
520 | 516 | } | |
521 | 517 | ||
522 | 518 | ||
546 | 542 | let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18) | |
547 | 543 | let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil)) | |
548 | 544 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
549 | - | let $ | |
545 | + | let $t02297323326 = match res { | |
550 | 546 | case _ => | |
551 | 547 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
552 | 548 | then if ($isInstanceOf($match0._3, "Int")) | |
569 | 565 | } | |
570 | 566 | else throw("Couldn't cast types") | |
571 | 567 | } | |
572 | - | let calcLpAmt = $ | |
573 | - | let curPriceCalc = $ | |
574 | - | let amBalance = $ | |
575 | - | let prBalance = $ | |
576 | - | let lpEmission = $ | |
568 | + | let calcLpAmt = $t02297323326._1 | |
569 | + | let curPriceCalc = $t02297323326._2 | |
570 | + | let amBalance = $t02297323326._3 | |
571 | + | let prBalance = $t02297323326._4 | |
572 | + | let lpEmission = $t02297323326._5 | |
577 | 573 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP)) | |
578 | 574 | } | |
579 | 575 | ||
604 | 600 | let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18) | |
605 | 601 | let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil)) | |
606 | 602 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
607 | - | let $ | |
603 | + | let $t02589926252 = match res { | |
608 | 604 | case _ => | |
609 | 605 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
610 | 606 | then if ($isInstanceOf($match0._3, "Int")) | |
627 | 623 | } | |
628 | 624 | else throw("Couldn't cast types") | |
629 | 625 | } | |
630 | - | let calcLpAmt = $ | |
631 | - | let curPriceCalc = $ | |
632 | - | let amBalance = $ | |
633 | - | let prBalance = $ | |
634 | - | let lpEmission = $ | |
626 | + | let calcLpAmt = $t02589926252._1 | |
627 | + | let curPriceCalc = $t02589926252._2 | |
628 | + | let amBalance = $t02589926252._3 | |
629 | + | let prBalance = $t02589926252._4 | |
630 | + | let lpEmission = $t02589926252._5 | |
635 | 631 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP)) | |
636 | 632 | } | |
637 | 633 | ||
641 | 637 | func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = { | |
642 | 638 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId))) | |
643 | 639 | let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil) | |
644 | - | let $ | |
640 | + | let $t02694727364 = match res { | |
645 | 641 | case _ => | |
646 | 642 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
647 | 643 | then if ($isInstanceOf($match0._2, "Int")) | |
670 | 666 | } | |
671 | 667 | else throw("Couldn't cast types") | |
672 | 668 | } | |
673 | - | let outAmAmt = $ | |
674 | - | let outPrAmt = $ | |
675 | - | let amBalance = $ | |
676 | - | let prBalance = $ | |
677 | - | let lpEmission = $ | |
678 | - | let curPrice = $ | |
679 | - | let poolStatus = $ | |
669 | + | let outAmAmt = $t02694727364._1 | |
670 | + | let outPrAmt = $t02694727364._2 | |
671 | + | let amBalance = $t02694727364._3 | |
672 | + | let prBalance = $t02694727364._4 | |
673 | + | let lpEmission = $t02694727364._5 | |
674 | + | let curPrice = $t02694727364._6 | |
675 | + | let poolStatus = $t02694727364._7 | |
680 | 676 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP)) | |
681 | 677 | } | |
682 | 678 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SCALE8 = 8 | |
5 | 5 | ||
6 | 6 | let MULT8 = 100000000 | |
7 | 7 | ||
8 | 8 | let SCALE18 = 18 | |
9 | 9 | ||
10 | 10 | let MULT18 = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let SEP = "__" | |
13 | 13 | ||
14 | 14 | let POOLWEIGHTMULT = MULT8 | |
15 | 15 | ||
16 | 16 | let zeroBigInt = toBigInt(0) | |
17 | 17 | ||
18 | 18 | let idxPoolAddress = 1 | |
19 | 19 | ||
20 | 20 | let idxPoolStatus = 2 | |
21 | 21 | ||
22 | 22 | let idxPoolLPAssetId = 3 | |
23 | 23 | ||
24 | 24 | let idxAmtAssetId = 4 | |
25 | 25 | ||
26 | 26 | let idxPriceAssetId = 5 | |
27 | 27 | ||
28 | 28 | let idxAmtAssetDcm = 6 | |
29 | 29 | ||
30 | 30 | let idxPriceAssetDcm = 7 | |
31 | 31 | ||
32 | 32 | let idxIAmtAssetId = 8 | |
33 | 33 | ||
34 | 34 | let idxIPriceAssetId = 9 | |
35 | 35 | ||
36 | 36 | let idxLPAssetDcm = 10 | |
37 | 37 | ||
38 | 38 | func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined")) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined")) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined")) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func asAnyList (val) = match val { | |
51 | 51 | case valAnyLyst: List[Any] => | |
52 | 52 | valAnyLyst | |
53 | 53 | case _ => | |
54 | 54 | throw("fail to cast into List[Any]") | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func asInt (val) = match val { | |
59 | 59 | case valInt: Int => | |
60 | 60 | valInt | |
61 | 61 | case _ => | |
62 | 62 | throw("fail to cast into Int") | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func asString (val) = match val { | |
67 | 67 | case valStr: String => | |
68 | 68 | valStr | |
69 | 69 | case _ => | |
70 | 70 | throw("fail to cast into String") | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | let IdxFactoryCfgStakingDapp = 1 | |
84 | 84 | ||
85 | 85 | let IdxFactoryCfgBoostingDapp = 2 | |
86 | 86 | ||
87 | 87 | let IdxFactoryCfgIdoDapp = 3 | |
88 | 88 | ||
89 | 89 | let IdxFactoryCfgTeamDapp = 4 | |
90 | 90 | ||
91 | 91 | let IdxFactoryCfgEmissionDapp = 5 | |
92 | 92 | ||
93 | 93 | let IdxFactoryCfgRestDapp = 6 | |
94 | 94 | ||
95 | 95 | let IdxFactoryCfgSlippageDapp = 7 | |
96 | 96 | ||
97 | 97 | let IdxFactoryCfgGwxRewardDapp = 8 | |
98 | 98 | ||
99 | 99 | func keyFactoryCfg () = "%s__factoryConfig" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func keyFactoryLpList () = "%s__lpTokensList" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(keyFactoryAddress())) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func getBoostingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgBoostingDapp]) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func getEmissionAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgEmissionDapp]) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func getStakingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgStakingDapp]) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func getGwxRewardAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgGwxRewardDapp]) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyBoostCfg () = "%s__config" | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyBoostingLockParamTotalAmount () = "%s%s__stats__activeTotalLocked" | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func keyBoostingStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks" | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func keyBoostingStatsLocksCount () = "%s%s__stats__locksCount" | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func keyBoostingStatsUsersCount () = "%s%s__stats__activeUsersCount" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total" | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func keyTotalCachedGwx () = "%s%s__gwxCached__total" | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP) | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func readStaked (stakingDapp,key) = valueOrElse(getInteger(stakingDapp, key), 0) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current" | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current" | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func keyEmissionStartBlock () = "%s%s__emission__startBlock" | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func keyEmissionDurationInBlocks () = "%s%s__emission__duration" | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func keyEmissionEndBlock () = "%s%s__emission__endBlock" | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func keyAddonAddr () = "%s__addonAddr" | |
229 | - | ||
230 | - | ||
231 | - | func keyFeePermille () = "%s__feePermille" | |
232 | 229 | ||
233 | 230 | ||
234 | 231 | let factoryDapp = readFactoryAddressOrFail() | |
235 | 232 | ||
236 | 233 | let factoryCfg = readFactoryCfgOrFail(factoryDapp) | |
237 | 234 | ||
238 | 235 | let emissionDapp = getEmissionAddressOrFail(factoryCfg) | |
239 | 236 | ||
240 | 237 | let stakingDapp = getStakingAddressOrFail(factoryCfg) | |
241 | 238 | ||
242 | 239 | let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg) | |
243 | 240 | ||
244 | 241 | let boostingDapp = getBoostingAddressOrFail(factoryCfg) | |
245 | 242 | ||
246 | 243 | func internalCurrentRewardRate (lpAssetId) = { | |
247 | 244 | let poolAddressStr = getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAssetId)) | |
248 | 245 | let poolWeightMult = MULT8 | |
249 | 246 | let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr)) | |
250 | 247 | let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) | |
251 | 248 | let wxEmissionPerBlockMax = getIntOrFail(emissionDapp, keyEmissionRatePerBlockMaxCurrent()) | |
252 | 249 | let boostMaxCoeff = 3 | |
253 | 250 | let poolWxEmissionPerBlock = (fraction(wxEmissionPerBlock, poolWeight, poolWeightMult) / boostMaxCoeff) | |
254 | 251 | let poolWxEmissionPerBlockMax = fraction(wxEmissionPerBlockMax, poolWeight, poolWeightMult) | |
255 | 252 | let maxFactor = (boostMaxCoeff * MULT8) | |
256 | 253 | let totalLpStaked = getIntOrZero(stakingDapp, keyStakedTotal(lpAssetId)) | |
257 | 254 | [poolWxEmissionPerBlock, maxFactor, totalLpStaked] | |
258 | 255 | } | |
259 | 256 | ||
260 | 257 | ||
261 | 258 | func calcGwxAmountStartREADONLY (lockAmount,lockDuration,maxLockDuration) = { | |
262 | 259 | let coeffX8 = fraction(lockDuration, MULT8, maxLockDuration) | |
263 | 260 | let gWxAmountStart = fraction(lockAmount, coeffX8, MULT8) | |
264 | 261 | [gWxAmountStart] | |
265 | 262 | } | |
266 | 263 | ||
267 | 264 | ||
268 | 265 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
269 | 266 | case s: String => | |
270 | 267 | fromBase58String(s) | |
271 | 268 | case _: Unit => | |
272 | 269 | unit | |
273 | 270 | case _ => | |
274 | 271 | throw("Match error") | |
275 | 272 | } | |
276 | 273 | ||
277 | 274 | ||
278 | 275 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
279 | 276 | case s: String => | |
280 | 277 | fromBase58String(s) | |
281 | 278 | case _: Unit => | |
282 | 279 | unit | |
283 | 280 | case _ => | |
284 | 281 | throw("Match error") | |
285 | 282 | } | |
286 | 283 | ||
287 | 284 | ||
288 | 285 | func mustManager (i) = { | |
289 | 286 | let pd = throw("Permission denied") | |
290 | 287 | match managerPublicKeyOrUnit() { | |
291 | 288 | case pk: ByteVector => | |
292 | 289 | if ((i.callerPublicKey == pk)) | |
293 | 290 | then true | |
294 | 291 | else pd | |
295 | 292 | case _: Unit => | |
296 | 293 | if ((i.caller == this)) | |
297 | 294 | then true | |
298 | 295 | else pd | |
299 | 296 | case _ => | |
300 | 297 | throw("Match error") | |
301 | 298 | } | |
302 | 299 | } | |
303 | 300 | ||
304 | 301 | ||
305 | 302 | @Callable(i) | |
306 | 303 | func constructor (factoryAddress) = { | |
307 | 304 | let checkCaller = mustManager(i) | |
308 | 305 | if ((checkCaller == checkCaller)) | |
309 | 306 | then [StringEntry(keyFactoryAddress(), factoryAddress)] | |
310 | 307 | else throw("Strict value is not equal to itself.") | |
311 | 308 | } | |
312 | 309 | ||
313 | 310 | ||
314 | 311 | ||
315 | 312 | @Callable(i) | |
316 | 313 | func currentRewardRateREADONLY (lpAssetId) = { | |
317 | 314 | let rewardData = internalCurrentRewardRate(lpAssetId) | |
318 | 315 | let wxEmissionPerBlock = rewardData[0] | |
319 | 316 | let maxFactor = rewardData[1] | |
320 | 317 | let totalLpStaked = rewardData[2] | |
321 | 318 | $Tuple2(nil, makeString(["%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked)], SEP)) | |
322 | 319 | } | |
323 | 320 | ||
324 | 321 | ||
325 | 322 | ||
326 | 323 | @Callable(i) | |
327 | 324 | func currentUserRewardRateREADONLY (lpAssetId,userAddress) = { | |
328 | 325 | let rewardData = internalCurrentRewardRate(lpAssetId) | |
329 | 326 | let wxEmissionPerBlock = rewardData[0] | |
330 | 327 | let maxFactor = rewardData[1] | |
331 | 328 | let totalLpStaked = rewardData[2] | |
332 | 329 | let lpStakedByUser = getIntOrZero(stakingDapp, keyStakedByUser(userAddress, lpAssetId)) | |
333 | 330 | let userClaimInfo = split(asString(invoke(stakingDapp, "claimWxREADONLY", [lpAssetId, userAddress], nil)), SEP) | |
334 | 331 | let minRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[5]), "couldn't parse minRewardPart") | |
335 | 332 | let boostRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[6]), "couldn't parse boostRewardPart") | |
336 | 333 | let debug = userClaimInfo[7] | |
337 | 334 | let boostingPower = if ((boostRewardPart == 0)) | |
338 | 335 | then (1 * MULT8) | |
339 | 336 | else fraction((minRewardPart + boostRewardPart), MULT8, minRewardPart) | |
340 | 337 | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower), debug], SEP)) | |
341 | 338 | } | |
342 | 339 | ||
343 | 340 | ||
344 | 341 | ||
345 | 342 | @Callable(i) | |
346 | 343 | func claimedRewardREADONLY (userAddress) = { | |
347 | 344 | let lpList = readLpList() | |
348 | 345 | let prefix = "%s%d%d%d%s" | |
349 | 346 | func claimedRewardByLpAggregator (resultStr,nextLp) = { | |
350 | 347 | let claimedByUserMinRewardKEY = keyClaimedByUserMinReward(nextLp, userAddress) | |
351 | 348 | let claimedByUserBoostRewardKEY = keyClaimedByUserBoostReward(nextLp, userAddress) | |
352 | 349 | let minRewardClaimed = valueOrElse(getInteger(stakingDapp, claimedByUserMinRewardKEY), 0) | |
353 | 350 | let boostRewardClaimed = valueOrElse(getInteger(stakingDapp, claimedByUserBoostRewardKEY), 0) | |
354 | 351 | let gFeeClaimed = 0 | |
355 | 352 | makeString([(prefix + resultStr), nextLp, toString(minRewardClaimed), toString(boostRewardClaimed), toString(gFeeClaimed), "end"], SEP) | |
356 | 353 | } | |
357 | 354 | ||
358 | 355 | let result = { | |
359 | 356 | let $l = lpList | |
360 | 357 | let $s = size($l) | |
361 | 358 | let $acc0 = "%s" | |
362 | 359 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
363 | 360 | then $a | |
364 | 361 | else claimedRewardByLpAggregator($a, $l[$i]) | |
365 | 362 | ||
366 | 363 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
367 | 364 | then $a | |
368 | 365 | else throw("List size exceeds 10") | |
369 | 366 | ||
370 | 367 | $f0_2($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) | |
371 | 368 | } | |
372 | 369 | $Tuple2(nil, ((result + SEP) + userAddress)) | |
373 | 370 | } | |
374 | 371 | ||
375 | 372 | ||
376 | 373 | ||
377 | 374 | @Callable(i) | |
378 | 375 | func calcBoostBulkInternalREADONLY (currentIter,deltaWxAmountBulk,deltaLockPeriodInBlocksBulk,deltaLpAmountBulk,lpAssetIdOptBulk,userAddressOpt,resAcc) = if ((currentIter == size(deltaWxAmountBulk))) | |
379 | 376 | then $Tuple2(nil, resAcc) | |
380 | 377 | else { | |
381 | 378 | let deltaWxAmount = deltaWxAmountBulk[currentIter] | |
382 | 379 | let deltaLockPeriodInBlocks = deltaLockPeriodInBlocksBulk[currentIter] | |
383 | 380 | let deltaLpAmount = deltaLpAmountBulk[currentIter] | |
384 | 381 | let lpAssetIdOpt = lpAssetIdOptBulk[currentIter] | |
385 | 382 | let info = { | |
386 | 383 | let @ = invoke(this, "calcBoostREADONLY", [deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt], nil) | |
387 | 384 | if ($isInstanceOf(@, "String")) | |
388 | 385 | then @ | |
389 | 386 | else throw(($getType(invoke(this, "calcBoostREADONLY", [deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt], nil)) + " couldn't be cast to String")) | |
390 | 387 | } | |
391 | 388 | let res = (resAcc :+ info) | |
392 | 389 | let inv = { | |
393 | 390 | let @ = invoke(this, "calcBoostBulkInternalREADONLY", [(currentIter + 1), deltaWxAmountBulk, deltaLockPeriodInBlocksBulk, deltaLpAmountBulk, lpAssetIdOptBulk, userAddressOpt, res], nil) | |
394 | 391 | if ($isInstanceOf(@, "List[Any]")) | |
395 | 392 | then @ | |
396 | 393 | else throw(($getType(invoke(this, "calcBoostBulkInternalREADONLY", [(currentIter + 1), deltaWxAmountBulk, deltaLockPeriodInBlocksBulk, deltaLpAmountBulk, lpAssetIdOptBulk, userAddressOpt, res], nil)) + " couldn't be cast to List[Any]")) | |
397 | 394 | } | |
398 | 395 | if ((inv == inv)) | |
399 | 396 | then $Tuple2(nil, inv) | |
400 | 397 | else throw("Strict value is not equal to itself.") | |
401 | 398 | } | |
402 | 399 | ||
403 | 400 | ||
404 | 401 | ||
405 | 402 | @Callable(i) | |
406 | 403 | func calcBoostBulkREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = { | |
407 | 404 | let res = invoke(this, "calcBoostBulkInternalREADONLY", [0, deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt, nil], nil) | |
408 | 405 | $Tuple2(nil, res) | |
409 | 406 | } | |
410 | 407 | ||
411 | 408 | ||
412 | 409 | ||
413 | 410 | @Callable(i) | |
414 | 411 | func calcBoostREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = { | |
415 | 412 | let mathDapp = gwxRewardDapp | |
416 | 413 | let EMPTYSTR = "empty" | |
417 | 414 | let maxLockDurationInBlocks = parseIntValue(split(getStringByAddressOrFail(boostingDapp, keyBoostCfg()), SEP)[4]) | |
418 | 415 | let lpAssetIdStr = if ((lpAssetIdOpt == "")) | |
419 | 416 | then EMPTYSTR | |
420 | 417 | else lpAssetIdOpt | |
421 | 418 | let userAddressStr = if ((userAddressOpt == "")) | |
422 | 419 | then EMPTYSTR | |
423 | 420 | else userAddressOpt | |
424 | 421 | let userNumStr = valueOrElse(getString(boostingDapp, keyUser2NumMapping(userAddressOpt)), EMPTYSTR) | |
425 | 422 | let userAmount = valueOrElse(getInteger(boostingDapp, keyLockParamUserAmount(userNumStr)), 0) | |
426 | 423 | let lockStart = valueOrElse(getInteger(boostingDapp, keyLockParamStartBlock(userNumStr)), height) | |
427 | 424 | let lockDuration = valueOrElse(getInteger(boostingDapp, keyLockParamDuration(userNumStr)), 0) | |
428 | 425 | let lockEnd = (lockStart + lockDuration) | |
429 | 426 | let remainingDuration = max([(lockEnd - height), 0]) | |
430 | 427 | let userAmountNew = (userAmount + deltaWxAmount) | |
431 | 428 | let lockDurationNew = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks]) | |
432 | 429 | let userCurrgWxAmount = asInt(asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddressStr], nil))[0]) | |
433 | 430 | let gWxAmountStartNew = calcGwxAmountStartREADONLY(userAmountNew, lockDurationNew, maxLockDurationInBlocks)[0] | |
434 | 431 | let gWxParamsResultList = asAnyList(invoke(mathDapp, "calcGwxParamsREADONLY", [gWxAmountStartNew, height, lockDurationNew], nil)) | |
435 | 432 | let gWxAmountDiff = (gWxAmountStartNew - userCurrgWxAmount) | |
436 | 433 | let k = asInt(gWxParamsResultList[0]) | |
437 | 434 | let b = asInt(gWxParamsResultList[1]) | |
438 | 435 | let period = toString(asInt(gWxParamsResultList[2])) | |
439 | 436 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
440 | 437 | let totalCachedGwxKEY = keyTotalCachedGwx() | |
441 | 438 | let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2) | |
442 | 439 | let totalMaxBoostInt = getIntOrZero(boostingDapp, totalMaxBoostIntegralKEY) | |
443 | 440 | let totalCachedGwx = valueOrElse(getInteger(boostingDapp, totalCachedGwxKEY), 0) | |
444 | 441 | let MULT3 = 1000 | |
445 | 442 | let wxEmissionPerBlockX3 = (getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) * MULT3) | |
446 | 443 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
447 | 444 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
448 | 445 | let stakedByUser = readStaked(stakingDapp, stakedByUserKEY) | |
449 | 446 | let stakedTotal = readStaked(stakingDapp, stakedTotalKEY) | |
450 | 447 | let stakedByUserNew = (stakedByUser + deltaLpAmount) | |
451 | 448 | let stakedTotalNew = (stakedTotal + deltaLpAmount) | |
452 | 449 | let poolWeight = if ((lpAssetIdStr != EMPTYSTR)) | |
453 | 450 | then { | |
454 | 451 | let poolAddressStr = valueOrErrorMessage(getString(factoryDapp, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
455 | 452 | getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr)) | |
456 | 453 | } | |
457 | 454 | else 0 | |
458 | 455 | let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3)) | |
459 | 456 | let wxPerLpX3 = if ((stakedTotalNew != 0)) | |
460 | 457 | then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew) | |
461 | 458 | else 0 | |
462 | 459 | let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8) | |
463 | 460 | let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2) | |
464 | 461 | let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff)) | |
465 | 462 | let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)]) | |
466 | 463 | let boostCoeff = if ((userWxPerBlockX3 == 0)) | |
467 | 464 | then (1 * MULT8) | |
468 | 465 | else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3) | |
469 | 466 | $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), "d"], SEP)) | |
470 | 467 | } | |
471 | 468 | ||
472 | 469 | ||
473 | 470 | ||
474 | 471 | @Callable(i) | |
475 | 472 | func wxEmissionStatsREADONLY () = { | |
476 | 473 | let ONEMULT = toString(MULT8) | |
477 | 474 | let ONE = "1" | |
478 | 475 | let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) | |
479 | 476 | let emissionStartBlock = getIntOrFail(emissionDapp, keyEmissionStartBlock()) | |
480 | 477 | let passedBlocks = if ((emissionStartBlock > height)) | |
481 | 478 | then 0 | |
482 | 479 | else (height - emissionStartBlock) | |
483 | 480 | let teamEmDuration = (1440 * 365) | |
484 | 481 | let teamEmMax = (201000000 * MULT8) | |
485 | 482 | let teamEm = if ((passedBlocks > teamEmDuration)) | |
486 | 483 | then teamEmMax | |
487 | 484 | else fraction(teamEmMax, passedBlocks, teamEmDuration) | |
488 | 485 | let totalWxReleased = ((wxEmissionPerBlock * passedBlocks) + teamEm) | |
489 | 486 | let totalWxLocked = getIntOrZero(boostingDapp, keyBoostingLockParamTotalAmount()) | |
490 | 487 | let locksDurationSumInBlocks = getIntOrZero(boostingDapp, keyBoostingStatsLocksDurationSumInBlocks()) | |
491 | 488 | let locksCount = getIntOrZero(boostingDapp, keyBoostingStatsLocksCount()) | |
492 | 489 | $Tuple2(nil, makeString(["%d%d%d%d", toString(totalWxReleased), toString(totalWxLocked), toString(locksDurationSumInBlocks), toString(locksCount)], SEP)) | |
493 | 490 | } | |
494 | 491 | ||
495 | 492 | ||
496 | 493 | ||
497 | 494 | @Callable(i) | |
498 | 495 | func poolStatsREADONLY (lpAsset) = { | |
499 | 496 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset))) | |
500 | 497 | let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)) | |
501 | 498 | let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId])) | |
502 | 499 | let amtAssetId = asString(cfg[idxAmtAssetId]) | |
503 | 500 | let priceAssetId = asString(cfg[idxPriceAssetId]) | |
504 | 501 | let iAmtAssetId = asString(cfg[idxIAmtAssetId]) | |
505 | 502 | let iPriceAssetId = asString(cfg[idxIPriceAssetId]) | |
506 | 503 | let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm])) | |
507 | 504 | let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm])) | |
508 | 505 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
509 | 506 | let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil)) | |
510 | 507 | let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil)) | |
511 | 508 | let pricesList = if ((poolLPBalance == 0)) | |
512 | 509 | then [toString(zeroBigInt), toString(zeroBigInt), toString(zeroBigInt)] | |
513 | 510 | else asAnyList(invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil)) | |
514 | 511 | let curPrice = 0 | |
515 | 512 | let lpAmtAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil)) | |
516 | 513 | let lpPriceAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil)) | |
517 | 514 | let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress))) | |
518 | - | let feePermille = getIntOrZero(poolAddress, keyFeePermille()) | |
519 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight), toString(feePermille)], SEP)) | |
515 | + | $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)) | |
520 | 516 | } | |
521 | 517 | ||
522 | 518 | ||
523 | 519 | ||
524 | 520 | @Callable(i) | |
525 | 521 | func poolEvaluatePutByAmountAssetREADONLY (lpAsset,inAmAssetAmt) = { | |
526 | 522 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset))) | |
527 | 523 | let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)) | |
528 | 524 | let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId])) | |
529 | 525 | let amAssetIdStr = asString(cfg[idxAmtAssetId]) | |
530 | 526 | let amAssetId = fromBase58String(amAssetIdStr) | |
531 | 527 | let prAssetIdStr = asString(cfg[idxPriceAssetId]) | |
532 | 528 | let prAssetId = fromBase58String(prAssetIdStr) | |
533 | 529 | let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm])) | |
534 | 530 | let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm])) | |
535 | 531 | let poolStatus = asString(cfg[idxPoolStatus]) | |
536 | 532 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
537 | 533 | let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil)) | |
538 | 534 | let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil)) | |
539 | 535 | let amtAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accAmtAssetBalance, amtAssetDcm], nil))) | |
540 | 536 | let priceAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accPriceAssetBalance, priceAssetDcm], nil))) | |
541 | 537 | let curPriceX18 = if ((poolLPBalance == 0)) | |
542 | 538 | then zeroBigInt | |
543 | 539 | else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(priceAssetAmtX18), toString(amtAssetAmtX18)], nil))) | |
544 | 540 | let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil)) | |
545 | 541 | let inAmAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inAmAssetAmt, amtAssetDcm], nil))) | |
546 | 542 | let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18) | |
547 | 543 | let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil)) | |
548 | 544 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
549 | - | let $ | |
545 | + | let $t02297323326 = match res { | |
550 | 546 | case _ => | |
551 | 547 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
552 | 548 | then if ($isInstanceOf($match0._3, "Int")) | |
553 | 549 | then if ($isInstanceOf($match0._4, "Int")) | |
554 | 550 | then if ($isInstanceOf($match0._5, "Int")) | |
555 | 551 | then $isInstanceOf($match0._6, "Int") | |
556 | 552 | else false | |
557 | 553 | else false | |
558 | 554 | else false | |
559 | 555 | else false) | |
560 | 556 | then (size($match0) == 13) | |
561 | 557 | else false) | |
562 | 558 | then { | |
563 | 559 | let calcLpAmt = $match0._1 | |
564 | 560 | let curPriceCalc = $match0._3 | |
565 | 561 | let amBalance = $match0._4 | |
566 | 562 | let prBalance = $match0._5 | |
567 | 563 | let lpEmission = $match0._6 | |
568 | 564 | $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission) | |
569 | 565 | } | |
570 | 566 | else throw("Couldn't cast types") | |
571 | 567 | } | |
572 | - | let calcLpAmt = $ | |
573 | - | let curPriceCalc = $ | |
574 | - | let amBalance = $ | |
575 | - | let prBalance = $ | |
576 | - | let lpEmission = $ | |
568 | + | let calcLpAmt = $t02297323326._1 | |
569 | + | let curPriceCalc = $t02297323326._2 | |
570 | + | let amBalance = $t02297323326._3 | |
571 | + | let prBalance = $t02297323326._4 | |
572 | + | let lpEmission = $t02297323326._5 | |
577 | 573 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP)) | |
578 | 574 | } | |
579 | 575 | ||
580 | 576 | ||
581 | 577 | ||
582 | 578 | @Callable(i) | |
583 | 579 | func poolEvaluatePutByPriceAssetREADONLY (lpAsset,inPrAssetAmt) = { | |
584 | 580 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset))) | |
585 | 581 | let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)) | |
586 | 582 | let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId])) | |
587 | 583 | let amAssetIdStr = asString(cfg[idxAmtAssetId]) | |
588 | 584 | let amAssetId = fromBase58String(amAssetIdStr) | |
589 | 585 | let prAssetIdStr = asString(cfg[idxPriceAssetId]) | |
590 | 586 | let prAssetId = fromBase58String(prAssetIdStr) | |
591 | 587 | let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm])) | |
592 | 588 | let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm])) | |
593 | 589 | let poolStatus = asString(cfg[idxPoolStatus]) | |
594 | 590 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
595 | 591 | let amBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil)) | |
596 | 592 | let prBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil)) | |
597 | 593 | let amBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [amBalanceRaw, amtAssetDcm], nil))) | |
598 | 594 | let prBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [prBalanceRaw, priceAssetDcm], nil))) | |
599 | 595 | let curPriceX18 = if ((poolLPBalance == 0)) | |
600 | 596 | then zeroBigInt | |
601 | 597 | else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(prBalanceRawX18), toString(amBalanceRawX18)], nil))) | |
602 | 598 | let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil)) | |
603 | 599 | let inPrAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inPrAssetAmt, priceAssetDcm], nil))) | |
604 | 600 | let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18) | |
605 | 601 | let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil)) | |
606 | 602 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
607 | - | let $ | |
603 | + | let $t02589926252 = match res { | |
608 | 604 | case _ => | |
609 | 605 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
610 | 606 | then if ($isInstanceOf($match0._3, "Int")) | |
611 | 607 | then if ($isInstanceOf($match0._4, "Int")) | |
612 | 608 | then if ($isInstanceOf($match0._5, "Int")) | |
613 | 609 | then $isInstanceOf($match0._6, "Int") | |
614 | 610 | else false | |
615 | 611 | else false | |
616 | 612 | else false | |
617 | 613 | else false) | |
618 | 614 | then (size($match0) == 13) | |
619 | 615 | else false) | |
620 | 616 | then { | |
621 | 617 | let calcLpAmt = $match0._1 | |
622 | 618 | let curPriceCalc = $match0._3 | |
623 | 619 | let amBalance = $match0._4 | |
624 | 620 | let prBalance = $match0._5 | |
625 | 621 | let lpEmission = $match0._6 | |
626 | 622 | $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission) | |
627 | 623 | } | |
628 | 624 | else throw("Couldn't cast types") | |
629 | 625 | } | |
630 | - | let calcLpAmt = $ | |
631 | - | let curPriceCalc = $ | |
632 | - | let amBalance = $ | |
633 | - | let prBalance = $ | |
634 | - | let lpEmission = $ | |
626 | + | let calcLpAmt = $t02589926252._1 | |
627 | + | let curPriceCalc = $t02589926252._2 | |
628 | + | let amBalance = $t02589926252._3 | |
629 | + | let prBalance = $t02589926252._4 | |
630 | + | let lpEmission = $t02589926252._5 | |
635 | 631 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP)) | |
636 | 632 | } | |
637 | 633 | ||
638 | 634 | ||
639 | 635 | ||
640 | 636 | @Callable(i) | |
641 | 637 | func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = { | |
642 | 638 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId))) | |
643 | 639 | let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil) | |
644 | - | let $ | |
640 | + | let $t02694727364 = match res { | |
645 | 641 | case _ => | |
646 | 642 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
647 | 643 | then if ($isInstanceOf($match0._2, "Int")) | |
648 | 644 | then if ($isInstanceOf($match0._5, "Int")) | |
649 | 645 | then if ($isInstanceOf($match0._6, "Int")) | |
650 | 646 | then if ($isInstanceOf($match0._7, "Int")) | |
651 | 647 | then if ($isInstanceOf($match0._8, "String")) | |
652 | 648 | then $isInstanceOf($match0._9, "String") | |
653 | 649 | else false | |
654 | 650 | else false | |
655 | 651 | else false | |
656 | 652 | else false | |
657 | 653 | else false | |
658 | 654 | else false) | |
659 | 655 | then (size($match0) == 10) | |
660 | 656 | else false) | |
661 | 657 | then { | |
662 | 658 | let outAmAmt = $match0._1 | |
663 | 659 | let outPrAmt = $match0._2 | |
664 | 660 | let amBalance = $match0._5 | |
665 | 661 | let prBalance = $match0._6 | |
666 | 662 | let lpEmission = $match0._7 | |
667 | 663 | let curPrice = $match0._8 | |
668 | 664 | let poolStatus = $match0._9 | |
669 | 665 | $Tuple7(outAmAmt, outPrAmt, amBalance, prBalance, lpEmission, curPrice, poolStatus) | |
670 | 666 | } | |
671 | 667 | else throw("Couldn't cast types") | |
672 | 668 | } | |
673 | - | let outAmAmt = $ | |
674 | - | let outPrAmt = $ | |
675 | - | let amBalance = $ | |
676 | - | let prBalance = $ | |
677 | - | let lpEmission = $ | |
678 | - | let curPrice = $ | |
679 | - | let poolStatus = $ | |
669 | + | let outAmAmt = $t02694727364._1 | |
670 | + | let outPrAmt = $t02694727364._2 | |
671 | + | let amBalance = $t02694727364._3 | |
672 | + | let prBalance = $t02694727364._4 | |
673 | + | let lpEmission = $t02694727364._5 | |
674 | + | let curPrice = $t02694727364._6 | |
675 | + | let poolStatus = $t02694727364._7 | |
680 | 676 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP)) | |
681 | 677 | } | |
682 | 678 | ||
683 | 679 | ||
684 | 680 | ||
685 | 681 | @Callable(i) | |
686 | 682 | func gwxUserInfoREADONLY (userAddress) = { | |
687 | 683 | let gwxUserInfoLIST = asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil)) | |
688 | 684 | let gwxAmount = asInt(gwxUserInfoLIST[0]) | |
689 | 685 | $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP)) | |
690 | 686 | } | |
691 | 687 | ||
692 | 688 | ||
693 | 689 | ||
694 | 690 | @Callable(i) | |
695 | 691 | func unstakeAndGetOneTkn (poolAddress,amount,exchResult,notUsed,outAmount,outAssetId,slippage) = { | |
696 | 692 | let inv = invoke(addressFromStringValue(value(getString(addressFromStringValue(poolAddress), keyAddonAddr()))), "unstakeAndGetOneTkn", [amount, exchResult, notUsed, outAmount, outAssetId, slippage], nil) | |
697 | 693 | if ((inv == inv)) | |
698 | 694 | then $Tuple2(nil, unit) | |
699 | 695 | else throw("Strict value is not equal to itself.") | |
700 | 696 | } | |
701 | 697 | ||
702 | 698 | ||
703 | 699 | ||
704 | 700 | @Callable(i) | |
705 | 701 | func setManager (pendingManagerPublicKey) = { | |
706 | 702 | let checkCaller = mustManager(i) | |
707 | 703 | if ((checkCaller == checkCaller)) | |
708 | 704 | then { | |
709 | 705 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
710 | 706 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
711 | 707 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
712 | 708 | else throw("Strict value is not equal to itself.") | |
713 | 709 | } | |
714 | 710 | else throw("Strict value is not equal to itself.") | |
715 | 711 | } | |
716 | 712 | ||
717 | 713 | ||
718 | 714 | ||
719 | 715 | @Callable(i) | |
720 | 716 | func confirmManager () = { | |
721 | 717 | let pm = pendingManagerPublicKeyOrUnit() | |
722 | 718 | let hasPM = if (isDefined(pm)) | |
723 | 719 | then true | |
724 | 720 | else throw("No pending manager") | |
725 | 721 | if ((hasPM == hasPM)) | |
726 | 722 | then { | |
727 | 723 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
728 | 724 | then true | |
729 | 725 | else throw("You are not pending manager") | |
730 | 726 | if ((checkPM == checkPM)) | |
731 | 727 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
732 | 728 | else throw("Strict value is not equal to itself.") | |
733 | 729 | } | |
734 | 730 | else throw("Strict value is not equal to itself.") | |
735 | 731 | } | |
736 | 732 | ||
737 | 733 | ||
738 | 734 | @Verifier(tx) | |
739 | 735 | func verify () = { | |
740 | 736 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
741 | 737 | case pk: ByteVector => | |
742 | 738 | pk | |
743 | 739 | case _: Unit => | |
744 | 740 | tx.senderPublicKey | |
745 | 741 | case _ => | |
746 | 742 | throw("Match error") | |
747 | 743 | } | |
748 | 744 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
749 | 745 | } | |
750 | 746 |
github/deemru/w8io/026f985 86.71 ms ◑