tx · HsbxjJ3ZfwSJRJP8jTF4UCuCwbZwE6prjw1evj1SsnDk 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi: -0.04000000 Waves 2022.07.04 22:46 [2125365] smart account 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi > SELF 0.00000000 Waves
{ "type": 13, "id": "HsbxjJ3ZfwSJRJP8jTF4UCuCwbZwE6prjw1evj1SsnDk", "fee": 4000000, "feeAssetId": null, "timestamp": 1656964043000, "version": 1, "sender": "3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi", "senderPublicKey": "4qGVXRFATZNzo2RZZ5UYHXojGyJgSRBwtgJcCU8rJe5A", "proofs": [ "2i6SAeoZjRe9fZqRHxHXMjNGJJntKDGXH76HhofLEWPuW7Hg7hViM5MAPzP1PjGfvyisZDVM1veDEPtLvypTmGGj", "51XTDzohWuHheMVGrF1NU48SrJQaDsVmuuu6UFfkZ3iLzpv8BVtWWCgRbp7hsdhVSmGMGSH3tGJD76YjEdycrPjM", "Lay9j6jz3gWY1mjJH3GiWsRbaedEZDjyJqpFxUGuvxJQVSumGmWJJbEE72j6udvL37Ry6id2Pbbtyqqnv2jVNAk" ], "script": "base64:AAIFAAAAAAAAADkIAhIFCgMICAESAwoBARIHCgUBAQEBARIDCgEBEgQKAgECEgMKAQESABIFCgMBAQESBwoFAQEBAQEAAABDAAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAAlNVUxUU0NBTEUAAAAAAAAAAAgAAAAAB1NDQUxFMTYAAAAAAAAAABAAAAAAA1NFUAIAAAACX18AAAAABUhBTEY4AAAAAAAC+vCAAAAAAAhFVUxFUlgxNgkAATYAAAABAABgkqET2NV0AAAAAARUV09YCQABNgAAAAEAAAAAAAAAAAIAAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAZNVUxUWDYJAAE2AAAAAQAAAAAAAA9CQAAAAAAFTVVMVDgAAAAAAAX14QAAAAAABk1VTFRYOAkAATYAAAABAAAAAAAF9eEAAAAAAAdNV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AGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAgAAAAAAAAAAAQAAAAAAAAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAADCQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAwAAAAAAAAAAAgAAAAAAAAAAAAkAAGcAAAACBQAAAAVjb3VudAAAAAAAAAAAA4s+wLY=", "chainId": 84, "height": 2125365, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BA5Pkt9JZmSJNHoeBr5W2pa6q26a4wZkC5gnvtMWsWYw Next: FABjRRpSckSopFhWaRhFqVYPoCvfyf73nsw8hKhrWiro Diff:
Old | New | Differences | |
---|---|---|---|
264 | 264 | else 0 | |
265 | 265 | let amountBig = toBigInt(useAmount) | |
266 | 266 | if ((assetId == neutrinoAssetId)) | |
267 | - | then $Tuple2(nil, [toInt(fraction(fraction(amountBig, MULTX8, priceBig), (supplyBig - (amountBig / TWOX)), reserveBig)), 0, useAmount, reserve, supply, BR, reserve, (supply - useAmount), fraction(convertWavesToNeutrino(reserve, price), MULT6, (supply - useAmount)), 0, (amount - useAmount)]) | |
267 | + | then $Tuple2(nil, [toInt(fraction(fraction(amountBig, MULTX8, priceBig), (supplyBig - (amountBig / TWOX)), reserveBig)), 0, useAmount, reserve, supply, BR, reserve, (supply - useAmount), fraction(convertWavesToNeutrino(reserve, price), MULT6, (supply - useAmount)), 0, (amount - useAmount), price]) | |
268 | 268 | else if ((assetId == WAVESID)) | |
269 | - | then $Tuple2(nil, [toInt(fraction(supplyBig, log(fraction((reserveBig + amountBig), MULTX16, reserveBig), 16, EULERX16, 16, 16, HALFUP), MULTX16)), useAmount, 0, reserve, supply, BR, (reserve + useAmount), supply, fraction(convertWavesToNeutrino((reserve + useAmount), price), MULT6, supply), (amount - useAmount), 0]) | |
269 | + | then $Tuple2(nil, [toInt(fraction(supplyBig, log(fraction((reserveBig + amountBig), MULTX16, reserveBig), 16, EULERX16, 16, 16, HALFUP), MULTX16)), useAmount, 0, reserve, supply, BR, (reserve + useAmount), supply, fraction(convertWavesToNeutrino((reserve + useAmount), price), MULT6, supply), (amount - useAmount), 0, price]) | |
270 | 270 | else throw("Unsupported asset") | |
271 | 271 | } | |
272 | 272 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let revisionNum = "" | |
5 | 5 | ||
6 | 6 | let MULTSCALE = 8 | |
7 | 7 | ||
8 | 8 | let SCALE16 = 16 | |
9 | 9 | ||
10 | 10 | let SEP = "__" | |
11 | 11 | ||
12 | 12 | let HALF8 = 50000000 | |
13 | 13 | ||
14 | 14 | let EULERX16 = toBigInt(27182818284590452) | |
15 | 15 | ||
16 | 16 | let TWOX = toBigInt(2) | |
17 | 17 | ||
18 | 18 | let MULT6 = 1000000 | |
19 | 19 | ||
20 | 20 | let MULTX6 = toBigInt(1000000) | |
21 | 21 | ||
22 | 22 | let MULT8 = 100000000 | |
23 | 23 | ||
24 | 24 | let MULTX8 = toBigInt(100000000) | |
25 | 25 | ||
26 | 26 | let MULTX10 = toBigInt(10000000000) | |
27 | 27 | ||
28 | 28 | let MULTX16 = toBigInt(10000000000000000) | |
29 | 29 | ||
30 | 30 | let WAVESID = fromBase58String("WAVES") | |
31 | 31 | ||
32 | 32 | let kResultIdxA = 0 | |
33 | 33 | ||
34 | 34 | let kResultIdxPaulB = 1 | |
35 | 35 | ||
36 | 36 | let kResultIdxWReservesInUsdn = 2 | |
37 | 37 | ||
38 | 38 | let kResultIdxMultBR = 3 | |
39 | 39 | ||
40 | 40 | let kResultIdxMultPower = 4 | |
41 | 41 | ||
42 | 42 | let kResultIdxMultExpInPowerStr = 5 | |
43 | 43 | ||
44 | 44 | let kResultIdxMultKStr = 6 | |
45 | 45 | ||
46 | 46 | let nMetricIdxPrice = 0 | |
47 | 47 | ||
48 | 48 | let nMetricIdxUsdnLockedBalance = 1 | |
49 | 49 | ||
50 | 50 | let nMetricIdxWavesLockedBalance = 2 | |
51 | 51 | ||
52 | 52 | let nMetricIdxReserve = 3 | |
53 | 53 | ||
54 | 54 | let nMetricIdxReserveInUsdn = 4 | |
55 | 55 | ||
56 | 56 | let nMetricIdxUsdnSupply = 5 | |
57 | 57 | ||
58 | 58 | let nMetricIdxSurplus = 6 | |
59 | 59 | ||
60 | 60 | let nMetricIdxSurplusPercent = 7 | |
61 | 61 | ||
62 | 62 | let nMetricIdxBR = 8 | |
63 | 63 | ||
64 | 64 | let nMetricIdxNsbtSupply = 9 | |
65 | 65 | ||
66 | 66 | let nMetricIdxMaxNsbtSupply = 10 | |
67 | 67 | ||
68 | 68 | let nMetricIdxSurfSupply = 11 | |
69 | 69 | ||
70 | 70 | func keyNeutrinoAddress () = "%s%s__config__neutrinoAddress" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func keySwapAmountAParam () = "%s%s__config__swapAParam" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func keySwapAmountBParam () = "%s%s__config__swapBParam" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func keyNeutrinoAssetId () = "neutrino_asset_id" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func keyLiquidationContractAddress () = "liquidation_contract" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func keyAuctionContract () = "auction_contract" | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyContolContract () = "control_contract" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func keyNsbtAssetId () = "bond_asset_id" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keySurfAssetId () = "surf_asset_id" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func keyBalanceLocked () = "balance_lock_" | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func keyWavesLockedBalance () = (keyBalanceLocked() + "waves") | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino") | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func swapsTimeframeKEY () = "swaps_timeframe" | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func keyUserLastQuickSwapHeight (userAddress) = makeString(["%s%s", "userLastQuickSwapHeight", userAddress], SEP) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keyQuickSwapUserSpentInPeriod (userAddress) = makeString(["%s%s", "quickSwapUserSpentInPeriod", userAddress], SEP) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func keyPrice () = "price" | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func getNumberByKey (address,key) = valueOrElse(getInteger(address, key), 0) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func toX16 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULTX16, toBigInt(origScaleMult)) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func fromX16 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULTX16)) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func asAnyList (val) = match val { | |
143 | 143 | case valAnyLyst: List[Any] => | |
144 | 144 | valAnyLyst | |
145 | 145 | case _ => | |
146 | 146 | throw("fail to cast into List[Any]") | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func asInt (val) = match val { | |
151 | 151 | case valInt: Int => | |
152 | 152 | valInt | |
153 | 153 | case _ => | |
154 | 154 | throw("fail to cast into Int") | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func asString (val) = match val { | |
159 | 159 | case valStr: String => | |
160 | 160 | valStr | |
161 | 161 | case _ => | |
162 | 162 | throw("fail to cast into String") | |
163 | 163 | } | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | let neutrinoContract = addressFromStringValue(getStringOrFail(this, keyNeutrinoAddress())) | |
167 | 167 | ||
168 | 168 | let controlContract = addressFromStringValue(getStringOrFail(neutrinoContract, keyContolContract())) | |
169 | 169 | ||
170 | 170 | let auctionContract = addressFromStringValue(getStringOrFail(neutrinoContract, keyAuctionContract())) | |
171 | 171 | ||
172 | 172 | let liquidationContract = addressFromStringValue(getStringOrFail(neutrinoContract, keyLiquidationContractAddress())) | |
173 | 173 | ||
174 | 174 | let neutrinoAssetId = fromBase58String(getStringOrFail(neutrinoContract, keyNeutrinoAssetId())) | |
175 | 175 | ||
176 | 176 | let nsbtAssetId = fromBase58String(getStringValue(neutrinoContract, keyNsbtAssetId())) | |
177 | 177 | ||
178 | 178 | let surfAssetId = fromBase58String(getStringValue(auctionContract, keySurfAssetId())) | |
179 | 179 | ||
180 | 180 | @Callable(i) | |
181 | 181 | func constructor (neutrinoAddress,nsbtLockAddress,swapAmountAParam) = if ((i.caller != this)) | |
182 | 182 | then throw("not authorized") | |
183 | 183 | else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), IntegerEntry(keySwapAmountAParam(), swapAmountAParam)] | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | ||
187 | 187 | @Callable(i) | |
188 | 188 | func calcSwapLimitREADONLY (gNsbtAmount) = { | |
189 | 189 | let limitParamA = toBigInt(getIntOrFail(this, keySwapAmountAParam())) | |
190 | 190 | let limitParamB = toBigInt(getIntOrFail(this, keySwapAmountBParam())) | |
191 | 191 | let gNsbtAmountScale16 = toX16(gNsbtAmount, MULT6) | |
192 | 192 | let limitPowPart = pow(gNsbtAmountScale16, 16, limitParamB, 16, 8, CEILING) | |
193 | 193 | let limit = fraction(limitParamA, limitPowPart, MULTX10) | |
194 | 194 | $Tuple2(nil, toInt(limit)) | |
195 | 195 | } | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | ||
199 | 199 | @Callable(i) | |
200 | 200 | func calculateKREADONLY (wRaw,uRaw,price,mRaw,sRaw) = { | |
201 | 201 | let EXP = toBigInt(2718281) | |
202 | 202 | let EXPSCALE = 6 | |
203 | 203 | let a = valueOrElse(getInteger(auctionContract, "nsbtCurveParam_a"), 3) | |
204 | 204 | let paulB = valueOrElse(getInteger(auctionContract, "nsbtCurveParam_b"), ((3 * MULT6) / 10)) | |
205 | 205 | let wReservesInUsdn = convertWavesToNeutrino(wRaw, price) | |
206 | 206 | let multBR = fraction(wReservesInUsdn, MULT8, uRaw) | |
207 | 207 | if ((multBR > 10678564816)) | |
208 | 208 | then throw("BR > 10678.564816% will overflow exponent") | |
209 | 209 | else { | |
210 | 210 | let multPower = (a * (multBR - MULT8)) | |
211 | 211 | let multExpInPower = pow(EXP, EXPSCALE, toBigInt(multPower), MULTSCALE, SCALE16, DOWN) | |
212 | 212 | let multK = fraction(toBigInt(paulB), multExpInPower, MULTX6) | |
213 | 213 | $Tuple2(nil, [a, paulB, wReservesInUsdn, multBR, multPower, toString(multExpInPower), toString(multK)]) | |
214 | 214 | } | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | ||
219 | 219 | @Callable(i) | |
220 | 220 | func curveFunctionREADONLY (wavesPayRaw) = { | |
221 | 221 | let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
222 | 222 | let price = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
223 | 223 | let wRaw = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
224 | 224 | let uRaw = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
225 | 225 | let sRaw = asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) | |
226 | 226 | let mRaw = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply]) | |
227 | 227 | let kCalcArray = asAnyList(invoke(this, "calculateKREADONLY", [wRaw, uRaw, price, mRaw, sRaw], nil)) | |
228 | 228 | let multK = parseBigIntValue(asString(kCalcArray[kResultIdxMultKStr])) | |
229 | 229 | let usdnPay = convertWavesToNeutrino(wavesPayRaw, price) | |
230 | 230 | let bigMaxNsbtSupply = toBigInt(mRaw) | |
231 | 231 | let bigNsbtSupply = toBigInt((mRaw - sRaw)) | |
232 | 232 | let step1 = fraction(toBigInt(usdnPay), MULTX16, multK) | |
233 | 233 | let step2 = fraction(step1, bigNsbtSupply, bigMaxNsbtSupply) | |
234 | 234 | let step3 = toInt(fraction(bigNsbtSupply, bigMaxNsbtSupply, (step2 + bigMaxNsbtSupply))) | |
235 | 235 | let nsbtAmountRaw = ((mRaw - sRaw) - step3) | |
236 | 236 | $Tuple2(nil, [nsbtAmountRaw, usdnPay, wRaw, uRaw, mRaw, sRaw, asInt(kCalcArray[kResultIdxA]), asInt(kCalcArray[kResultIdxPaulB]), asInt(kCalcArray[kResultIdxWReservesInUsdn]), price, asInt(kCalcArray[kResultIdxMultBR]), asInt(kCalcArray[kResultIdxMultPower]), kCalcArray[kResultIdxMultExpInPowerStr], kCalcArray[kResultIdxMultKStr], toString(step1), toString(step2), step3]) | |
237 | 237 | } | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | ||
241 | 241 | @Callable(i) | |
242 | 242 | func surfFunctionREADONLY (amount,assetId) = { | |
243 | 243 | let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
244 | 244 | let price = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
245 | 245 | let priceBig = toBigInt(price) | |
246 | 246 | let reserve = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
247 | 247 | let reserveBig = toBigInt(reserve) | |
248 | 248 | let supply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
249 | 249 | let supplyBig = toBigInt(supply) | |
250 | 250 | let BR = asInt(neutrinoMetrics[nMetricIdxBR]) | |
251 | 251 | if ((BR >= MULT6)) | |
252 | 252 | then throw((("BR = " + toString(BR)) + ", cannot buy SURF")) | |
253 | 253 | else { | |
254 | 254 | let maxWavesPay = (fraction(supply, MULT8, price) - reserve) | |
255 | 255 | let maxUsdnPay = (supply - fraction(reserve, price, MULT8)) | |
256 | 256 | let useAmount = if ((assetId == neutrinoAssetId)) | |
257 | 257 | then if ((amount > maxUsdnPay)) | |
258 | 258 | then maxUsdnPay | |
259 | 259 | else amount | |
260 | 260 | else if ((assetId == WAVESID)) | |
261 | 261 | then if ((amount > maxWavesPay)) | |
262 | 262 | then maxWavesPay | |
263 | 263 | else amount | |
264 | 264 | else 0 | |
265 | 265 | let amountBig = toBigInt(useAmount) | |
266 | 266 | if ((assetId == neutrinoAssetId)) | |
267 | - | then $Tuple2(nil, [toInt(fraction(fraction(amountBig, MULTX8, priceBig), (supplyBig - (amountBig / TWOX)), reserveBig)), 0, useAmount, reserve, supply, BR, reserve, (supply - useAmount), fraction(convertWavesToNeutrino(reserve, price), MULT6, (supply - useAmount)), 0, (amount - useAmount)]) | |
267 | + | then $Tuple2(nil, [toInt(fraction(fraction(amountBig, MULTX8, priceBig), (supplyBig - (amountBig / TWOX)), reserveBig)), 0, useAmount, reserve, supply, BR, reserve, (supply - useAmount), fraction(convertWavesToNeutrino(reserve, price), MULT6, (supply - useAmount)), 0, (amount - useAmount), price]) | |
268 | 268 | else if ((assetId == WAVESID)) | |
269 | - | then $Tuple2(nil, [toInt(fraction(supplyBig, log(fraction((reserveBig + amountBig), MULTX16, reserveBig), 16, EULERX16, 16, 16, HALFUP), MULTX16)), useAmount, 0, reserve, supply, BR, (reserve + useAmount), supply, fraction(convertWavesToNeutrino((reserve + useAmount), price), MULT6, supply), (amount - useAmount), 0]) | |
269 | + | then $Tuple2(nil, [toInt(fraction(supplyBig, log(fraction((reserveBig + amountBig), MULTX16, reserveBig), 16, EULERX16, 16, 16, HALFUP), MULTX16)), useAmount, 0, reserve, supply, BR, (reserve + useAmount), supply, fraction(convertWavesToNeutrino((reserve + useAmount), price), MULT6, supply), (amount - useAmount), 0, price]) | |
270 | 270 | else throw("Unsupported asset") | |
271 | 271 | } | |
272 | 272 | } | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | ||
276 | 276 | @Callable(i) | |
277 | 277 | func calcContractNsbtPriceSYSREADONLY (nsbtSupplyDELTA) = { | |
278 | 278 | let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
279 | 279 | let price = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
280 | 280 | let wRaw = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
281 | 281 | let uRaw = (asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) - nsbtSupplyDELTA) | |
282 | 282 | let sRaw = (asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) + nsbtSupplyDELTA) | |
283 | 283 | let mRaw = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply]) | |
284 | 284 | let kCalcArray = asAnyList(invoke(this, "calculateKREADONLY", [wRaw, uRaw, price, mRaw, sRaw], nil)) | |
285 | 285 | let multKX16 = parseBigIntValue(asString(kCalcArray[kResultIdxMultKStr])) | |
286 | 286 | let multStep1X16 = fraction(toBigInt(mRaw), MULTX16, toBigInt((mRaw - sRaw))) | |
287 | 287 | let multStep2X16 = fraction(multStep1X16, multStep1X16, MULTX16) | |
288 | 288 | let multNsbt2usdnPriceX16 = fraction(multKX16, multStep2X16, MULTX16) | |
289 | 289 | let nsbt2usdnPrice = toInt(fraction(multNsbt2usdnPriceX16, toBigInt(MULT6), MULTX16)) | |
290 | 290 | let nsbt2wavesPrice = fraction(nsbt2usdnPrice, MULT6, price) | |
291 | 291 | $Tuple2(nil, [nsbt2usdnPrice, nsbt2wavesPrice]) | |
292 | 292 | } | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | ||
296 | 296 | @Callable(i) | |
297 | 297 | func calcNeutinoMetricsREADONLY () = { | |
298 | 298 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
299 | 299 | let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoContract, keyNeutrinoLockedBalance()), 0) | |
300 | 300 | let wavesLockedBalance = valueOrElse(getInteger(neutrinoContract, keyWavesLockedBalance()), 0) | |
301 | 301 | let reserve = (wavesBalance(neutrinoContract).regular - wavesLockedBalance) | |
302 | 302 | let reservesInUsdn = convertWavesToNeutrino(reserve, currentPrice) | |
303 | 303 | let neutrinoSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAssetId)).quantity) - assetBalance(neutrinoContract, neutrinoAssetId)) - assetBalance(liquidationContract, neutrinoAssetId)) | |
304 | 304 | let surplus = (reservesInUsdn - neutrinoSupply) | |
305 | 305 | let deficit = (neutrinoSupply - reservesInUsdn) | |
306 | 306 | let surplusPercent = if ((neutrinoSupply == 0)) | |
307 | 307 | then 0 | |
308 | 308 | else (fraction(surplus, MULT6, neutrinoSupply) * 100) | |
309 | 309 | let BR = if ((neutrinoSupply == 0)) | |
310 | 310 | then 0 | |
311 | 311 | else fraction(reservesInUsdn, MULT6, neutrinoSupply) | |
312 | 312 | let nsbtSupplyMAX = value(assetInfo(nsbtAssetId)).quantity | |
313 | 313 | let nsbtSupply = (nsbtSupplyMAX - assetBalance(auctionContract, nsbtAssetId)) | |
314 | 314 | let surfSupply = value(assetInfo(surfAssetId)).quantity | |
315 | 315 | $Tuple2(nil, [currentPrice, neutrinoLockedBalance, wavesLockedBalance, reserve, reservesInUsdn, neutrinoSupply, surplus, surplusPercent, BR, nsbtSupply, nsbtSupplyMAX, surfSupply]) | |
316 | 316 | } | |
317 | 317 | ||
318 | 318 | ||
319 | 319 | ||
320 | 320 | @Callable(i) | |
321 | 321 | func getUnstakeComissionAmountREADONLY (amount,startHeight,halfLife) = $Tuple2(nil, fraction(amount, pow(2, 0, fraction(-((height - startHeight)), MULT8, halfLife), 8, 8, HALFUP), MULT8)) | |
322 | 322 | ||
323 | 323 | ||
324 | 324 | ||
325 | 325 | @Callable(i) | |
326 | 326 | func mergeStakesREADONLY (amount1,height1,amount2,height2,halfLife) = { | |
327 | 327 | let w = fraction(amount2, pow(2, 0, fraction((height2 - height1), MULT8, halfLife), 8, 8, HALFUP), MULT8) | |
328 | 328 | let v = fraction((amount1 + amount2), MULT8, (amount1 + w)) | |
329 | 329 | $Tuple2(nil, (height1 + ((HALF8 - (halfLife * log(v, 8, 2, 0, 8, HALFUP))) / MULT8))) | |
330 | 330 | } | |
331 | 331 | ||
332 | 332 | ||
333 | 333 | @Verifier(tx) | |
334 | 334 | func verify () = { | |
335 | 335 | let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"], SEP) | |
336 | 336 | let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP) | |
337 | 337 | let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) | |
338 | 338 | then 1 | |
339 | 339 | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) | |
340 | 340 | then 1 | |
341 | 341 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2]))) | |
342 | 342 | then 1 | |
343 | 343 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3]))) | |
344 | 344 | then 2 | |
345 | 345 | else 0)) | |
346 | 346 | (count >= 3) | |
347 | 347 | } | |
348 | 348 |
github/deemru/w8io/026f985 45.76 ms ◑