tx · HryhGkGQ4wsumQgUB5mtqa3SKHorT4xmBEML2My3VyzK 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi: -0.04000000 Waves 2022.08.23 15:02 [2197103] smart account 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi > SELF 0.00000000 Waves
{ "type": 13, "id": "HryhGkGQ4wsumQgUB5mtqa3SKHorT4xmBEML2My3VyzK", "fee": 4000000, "feeAssetId": null, "timestamp": 1661256137243, "version": 1, "sender": "3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi", "senderPublicKey": "4qGVXRFATZNzo2RZZ5UYHXojGyJgSRBwtgJcCU8rJe5A", "proofs": [ "4MBgXQ3RcEzRq4oZrZx3D57DfxeDcGZJXnf7yaXDpdoqiHXtBr3K47JDyDasj3SsPL5tJPugdkyeoQ5NM6cmpdpX", "4hiXPVdREK5YB4VNXMVEhjAsPC4GnQP89Ei2Pb74pLAF78rN2kSPLsytFx4bjo4hajUkPMqgH5y2h52a1fSoRnJV", "2fEKSw8iw313NRKSzYJ6dfFqnS267YaWxNCJEoS9FKcUsn2KWoher15poQzVkEsiNZqJjjRXz5N4noXKTHSVrzR6" ], "script": "base64:AAIFAAAAAAAAADkIAhIFCgMICAESAwoBARIHCgUBAQEBARIDCgEBEgQKAgECEgMKAQESABIFCgMBAQESBwoFAQEBAQEAAABXAAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAAlNVUxUU0NBTEUAAAAAAAAAAAgAAAAAB1NDQUxFMTYAAAAAAAAAABAAAAAAA1NFUAIAAAACX18AAAAABUhBTEY4AAAAAAAC+vCAAAAAAAhFVUxFUlgxNgkAATYAAAABAABgkqET2NV0AAAAAARUV09YCQABNgAAAAEAAAAAAAAAAAIAAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAZNVUxUWDYJAAE2AAAAAQAAAAAAAA9CQAAAAAAFTVVMVDgAAAAAAAX14QAAAAAABk1VTFRYOAkAATYAAAABAAAAAAAF9eEAAAAAAAdNVUxUWDEw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nl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAEAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAIAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAwkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAMAAAAAAAAAAAIAAAAAAAAAAAAJAABnAAAAAgUAAAAFY291bnQAAAAAAAAAAAPcPwq3", "chainId": 84, "height": 2197103, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9XFbBUXPLZcJpYhU53UhmPggLGwL8hE2bbSzb8GpV2nk Next: Hj51uVbHbKDdX5Xot2jSaJeb8PHdHgE9ZeB22nWnpnVh Full:
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 keyUsdnSwapAmountAParam () = "%s%s__config__usdnSwapAParam" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func keyUsdnSwapAmountBParam () = "%s%s__config__usdnSwapBParam" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func keyNeutrinoAssetId () = "neutrino_asset_id" | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyNsbtAssetId () = "bond_asset_id" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func keySurfAssetId () = "surf_asset_id" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keyBalanceLocked () = "balance_lock_" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func keyWavesLockedBalance () = (keyBalanceLocked() + "waves") | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino") | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func swapsTimeframeKEY () = "swaps_timeframe" | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func keyUserLastQuickSwapHeight (userAddress) = makeString(["%s%s", "userLastQuickSwapHeight", userAddress], SEP) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func keyQuickSwapUserSpentInPeriod (userAddress) = makeString(["%s%s", "quickSwapUserSpentInPeriod", userAddress], SEP) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keyPrice () = "price" | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func getNumberByKey (address,key) = valueOrElse(getInteger(address, key), 0) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func toX16 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULTX16, toBigInt(origScaleMult)) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func fromX16 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULTX16)) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func asAnyList (val) = match val { | |
140 | 140 | case valAnyLyst: List[Any] => | |
141 | 141 | valAnyLyst | |
142 | 142 | case _ => | |
143 | 143 | throw("fail to cast into List[Any]") | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func asInt (val) = match val { | |
148 | 148 | case valInt: Int => | |
149 | 149 | valInt | |
150 | 150 | case _ => | |
151 | 151 | throw("fail to cast into Int") | |
152 | 152 | } | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func asString (val) = match val { | |
156 | 156 | case valStr: String => | |
157 | 157 | valStr | |
158 | 158 | case _ => | |
159 | 159 | throw("fail to cast into String") | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | let IdxControlCfgNeutrinoDapp = 1 | |
164 | 164 | ||
165 | 165 | let IdxControlCfgAuctionDapp = 2 | |
166 | 166 | ||
167 | 167 | let IdxControlCfgRpdDapp = 3 | |
168 | 168 | ||
169 | 169 | let IdxControlCfgMathDapp = 4 | |
170 | 170 | ||
171 | 171 | let IdxControlCfgLiquidationDapp = 5 | |
172 | 172 | ||
173 | 173 | let IdxControlCfgRestDapp = 6 | |
174 | 174 | ||
175 | 175 | let IdxControlCfgNodeRegistryDapp = 7 | |
176 | 176 | ||
177 | 177 | let IdxControlCfgNsbtStakingDapp = 8 | |
178 | 178 | ||
179 | 179 | let IdxControlCfgMediatorDapp = 9 | |
180 | 180 | ||
181 | 181 | func keyControlAddress () = "%s%s__config__controlAddress" | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func keyControlCfg () = "%s__controlConfig" | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx))) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
194 | 194 | ||
195 | 195 | let controlCfg = readControlCfgOrFail(controlContract) | |
196 | 196 | ||
197 | 197 | let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp) | |
198 | 198 | ||
199 | 199 | let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp) | |
200 | 200 | ||
201 | 201 | let liquidationContract = getContractAddressOrFail(controlCfg, IdxControlCfgLiquidationDapp) | |
202 | 202 | ||
203 | 203 | let neutrinoAssetId = fromBase58String(getStringOrFail(neutrinoContract, keyNeutrinoAssetId())) | |
204 | 204 | ||
205 | 205 | let nsbtAssetId = fromBase58String(getStringValue(neutrinoContract, keyNsbtAssetId())) | |
206 | 206 | ||
207 | 207 | let surfAssetId = fromBase58String(getStringValue(auctionContract, keySurfAssetId())) | |
208 | 208 | ||
209 | 209 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
210 | 210 | ||
211 | 211 | let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoContract, keyNeutrinoLockedBalance()), 0) | |
212 | 212 | ||
213 | 213 | let wavesLockedBalance = valueOrElse(getInteger(neutrinoContract, keyWavesLockedBalance()), 0) | |
214 | 214 | ||
215 | 215 | let reserve = (wavesBalance(neutrinoContract).regular - wavesLockedBalance) | |
216 | 216 | ||
217 | 217 | let reservesInUsdn = convertWavesToNeutrino(reserve, currentPrice) | |
218 | 218 | ||
219 | 219 | let neutrinoSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAssetId)).quantity) - assetBalance(neutrinoContract, neutrinoAssetId)) - assetBalance(liquidationContract, neutrinoAssetId)) | |
220 | 220 | ||
221 | 221 | let BR = if ((neutrinoSupply == 0)) | |
222 | 222 | then 0 | |
223 | 223 | else fraction(reservesInUsdn, MULT6, neutrinoSupply) | |
224 | 224 | ||
225 | 225 | @Callable(i) | |
226 | 226 | func constructor (neutrinoAddress,nsbtLockAddress,swapAmountAParam) = if ((i.caller != this)) | |
227 | 227 | then throw("not authorized") | |
228 | 228 | else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), IntegerEntry(keySwapAmountAParam(), swapAmountAParam)] | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | ||
232 | 232 | @Callable(i) | |
233 | 233 | func calcSwapLimitREADONLY (gNsbtAmount) = { | |
234 | 234 | let limitWavesInUsdn = if ((0 >= gNsbtAmount)) | |
235 | 235 | then 0 | |
236 | 236 | else { | |
237 | 237 | let aParamX8 = toBigInt(getIntOrFail(this, keySwapAmountAParam())) | |
238 | 238 | let bParamX16 = toBigInt(getIntOrFail(this, keySwapAmountBParam())) | |
239 | 239 | let powPartX8 = pow(toBigInt(gNsbtAmount), 6, bParamX16, 16, 8, CEILING) | |
240 | 240 | toInt(fraction(aParamX8, powPartX8, MULTX10)) | |
241 | 241 | } | |
242 | 242 | let limitWaves = convertNeutrinoToWaves(limitWavesInUsdn, currentPrice) | |
243 | 243 | let limitUsdn = if ((0 >= gNsbtAmount)) | |
244 | 244 | then 0 | |
245 | 245 | else { | |
246 | 246 | let aParamX8 = toBigInt(getIntOrFail(this, keyUsdnSwapAmountAParam())) | |
247 | 247 | let bParamX16 = toBigInt(getIntOrFail(this, keyUsdnSwapAmountBParam())) | |
248 | 248 | let brX6 = toBigInt(BR) | |
249 | 249 | let powPartX8 = pow(toBigInt(gNsbtAmount), 6, bParamX16, 16, 8, CEILING) | |
250 | 250 | toInt(fraction(fraction(aParamX8, powPartX8, MULTX10), brX6, MULTX6)) | |
251 | 251 | } | |
252 | 252 | $Tuple2(nil, [limitWavesInUsdn, limitWaves, limitUsdn]) | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | ||
257 | 257 | @Callable(i) | |
258 | 258 | func calculateKREADONLY (wRaw,uRaw,price,mRaw,sRaw) = { | |
259 | 259 | let EXP = toBigInt(2718281) | |
260 | 260 | let EXPSCALE = 6 | |
261 | 261 | let a = valueOrElse(getInteger(auctionContract, "nsbtCurveParam_a"), 3) | |
262 | 262 | let paulB = valueOrElse(getInteger(auctionContract, "nsbtCurveParam_b"), ((3 * MULT6) / 10)) | |
263 | 263 | let wReservesInUsdn = convertWavesToNeutrino(wRaw, price) | |
264 | 264 | let multBR = fraction(wReservesInUsdn, MULT8, uRaw) | |
265 | 265 | if ((multBR > 10678564816)) | |
266 | 266 | then throw((("BR=" + toString(multBR)) + " > 10678.564816% will overflow exponent")) | |
267 | 267 | else { | |
268 | 268 | let multPower = (a * (multBR - MULT8)) | |
269 | 269 | let multExpInPower = pow(EXP, EXPSCALE, toBigInt(multPower), MULTSCALE, SCALE16, DOWN) | |
270 | 270 | let multK = fraction(toBigInt(paulB), multExpInPower, MULTX6) | |
271 | 271 | $Tuple2(nil, [a, paulB, wReservesInUsdn, multBR, multPower, toString(multExpInPower), toString(multK)]) | |
272 | 272 | } | |
273 | 273 | } | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | ||
277 | 277 | @Callable(i) | |
278 | 278 | func curveFunctionREADONLY (wavesPayRaw) = { | |
279 | 279 | let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
280 | 280 | let price = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
281 | 281 | let wRaw = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
282 | 282 | let uRaw = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
283 | 283 | let sRaw = asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) | |
284 | 284 | let mRaw = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply]) | |
285 | 285 | let kCalcArray = asAnyList(invoke(this, "calculateKREADONLY", [wRaw, uRaw, price, mRaw, sRaw], nil)) | |
286 | 286 | let multK = parseBigIntValue(asString(kCalcArray[kResultIdxMultKStr])) | |
287 | 287 | let usdnPay = convertWavesToNeutrino(wavesPayRaw, price) | |
288 | 288 | let bigMaxNsbtSupply = toBigInt(mRaw) | |
289 | 289 | let bigNsbtSupply = toBigInt((mRaw - sRaw)) | |
290 | 290 | let step1 = fraction(toBigInt(usdnPay), MULTX16, multK) | |
291 | 291 | let step2 = fraction(step1, bigNsbtSupply, bigMaxNsbtSupply) | |
292 | 292 | let step3 = toInt(fraction(bigNsbtSupply, bigMaxNsbtSupply, (step2 + bigMaxNsbtSupply))) | |
293 | 293 | let nsbtAmountRaw = ((mRaw - sRaw) - step3) | |
294 | 294 | $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]) | |
295 | 295 | } | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | ||
299 | 299 | @Callable(i) | |
300 | 300 | func surfFunctionREADONLY (amount,assetId) = if ((0 > amount)) | |
301 | 301 | then throw("amount should be positive") | |
302 | 302 | else { | |
303 | 303 | let price = currentPrice | |
304 | 304 | let priceBig = toBigInt(price) | |
305 | 305 | let reserveBig = toBigInt(reserve) | |
306 | 306 | let supply = neutrinoSupply | |
307 | 307 | let supplyBig = toBigInt(supply) | |
308 | 308 | if ((BR >= MULT6)) | |
309 | 309 | then throw((("BR = " + toString(BR)) + ", cannot buy SURF")) | |
310 | 310 | else { | |
311 | 311 | let maxWavesPay = (fraction(supply, MULT8, price) - reserve) | |
312 | 312 | let maxUsdnPay = (supply - fraction(reserve, price, MULT8)) | |
313 | 313 | let useAmount = if ((assetId == neutrinoAssetId)) | |
314 | 314 | then if ((amount > maxUsdnPay)) | |
315 | 315 | then maxUsdnPay | |
316 | 316 | else amount | |
317 | 317 | else if ((assetId == WAVESID)) | |
318 | 318 | then if ((amount > maxWavesPay)) | |
319 | 319 | then maxWavesPay | |
320 | 320 | else amount | |
321 | 321 | else 0 | |
322 | 322 | let amountBig = toBigInt(useAmount) | |
323 | 323 | if ((assetId == neutrinoAssetId)) | |
324 | 324 | 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)), (amount - useAmount), price]) | |
325 | 325 | else if ((assetId == WAVESID)) | |
326 | 326 | 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), price]) | |
327 | 327 | else throw("Unsupported asset") | |
328 | 328 | } | |
329 | 329 | } | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | ||
333 | 333 | @Callable(i) | |
334 | 334 | func calcContractNsbtPriceSYSREADONLY (nsbtSupplyDELTA) = { | |
335 | 335 | let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
336 | 336 | let price = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
337 | 337 | let wRaw = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
338 | 338 | let uRaw = (asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) - nsbtSupplyDELTA) | |
339 | 339 | let sRaw = (asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) + nsbtSupplyDELTA) | |
340 | 340 | let mRaw = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply]) | |
341 | 341 | let kCalcArray = asAnyList(invoke(this, "calculateKREADONLY", [wRaw, uRaw, price, mRaw, sRaw], nil)) | |
342 | 342 | let multKX16 = parseBigIntValue(asString(kCalcArray[kResultIdxMultKStr])) | |
343 | 343 | let multStep1X16 = fraction(toBigInt(mRaw), MULTX16, toBigInt((mRaw - sRaw))) | |
344 | 344 | let multStep2X16 = fraction(multStep1X16, multStep1X16, MULTX16) | |
345 | 345 | let multNsbt2usdnPriceX16 = fraction(multKX16, multStep2X16, MULTX16) | |
346 | 346 | let nsbt2usdnPrice = toInt(fraction(multNsbt2usdnPriceX16, toBigInt(MULT6), MULTX16)) | |
347 | 347 | let nsbt2wavesPrice = fraction(nsbt2usdnPrice, MULT6, price) | |
348 | 348 | $Tuple2(nil, [nsbt2usdnPrice, nsbt2wavesPrice]) | |
349 | 349 | } | |
350 | 350 | ||
351 | 351 | ||
352 | 352 | ||
353 | 353 | @Callable(i) | |
354 | 354 | func calcNeutinoMetricsREADONLY () = { | |
355 | 355 | let surplus = (reservesInUsdn - neutrinoSupply) | |
356 | 356 | let deficit = (neutrinoSupply - reservesInUsdn) | |
357 | 357 | let surplusPercent = if ((neutrinoSupply == 0)) | |
358 | 358 | then 0 | |
359 | 359 | else (fraction(surplus, MULT6, neutrinoSupply) * 100) | |
360 | 360 | let nsbtSupplyMAX = value(assetInfo(nsbtAssetId)).quantity | |
361 | 361 | let nsbtSupply = (nsbtSupplyMAX - assetBalance(auctionContract, nsbtAssetId)) | |
362 | 362 | let surfSupply = value(assetInfo(surfAssetId)).quantity | |
363 | 363 | $Tuple2(nil, [currentPrice, neutrinoLockedBalance, wavesLockedBalance, reserve, reservesInUsdn, neutrinoSupply, surplus, surplusPercent, BR, nsbtSupply, nsbtSupplyMAX, surfSupply]) | |
364 | 364 | } | |
365 | 365 | ||
366 | 366 | ||
367 | 367 | ||
368 | 368 | @Callable(i) | |
369 | 369 | func getUnstakeComissionAmountREADONLY (amount,startHeight,halfLife) = $Tuple2(nil, fraction(amount, pow(2, 0, fraction(-((height - startHeight)), MULT8, halfLife), 8, 8, HALFUP), MULT8)) | |
370 | 370 | ||
371 | 371 | ||
372 | 372 | ||
373 | 373 | @Callable(i) | |
374 | 374 | func mergeStakesREADONLY (amount1,height1,amount2,height2,halfLife) = { | |
375 | 375 | let w = fraction(amount2, pow(2, 0, fraction((height2 - height1), MULT8, halfLife), 8, 8, HALFUP), MULT8) | |
376 | 376 | let v = fraction((amount1 + amount2), MULT8, (amount1 + w)) | |
377 | 377 | $Tuple2(nil, (height1 + ((HALF8 - (halfLife * log(v, 8, 2, 0, 8, HALFUP))) / MULT8))) | |
378 | 378 | } | |
379 | 379 | ||
380 | 380 | ||
381 | 381 | @Verifier(tx) | |
382 | 382 | func verify () = { | |
383 | 383 | let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP) | |
384 | 384 | let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP) | |
385 | 385 | let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) | |
386 | 386 | then 1 | |
387 | 387 | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) | |
388 | 388 | then 1 | |
389 | 389 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2]))) | |
390 | 390 | then 1 | |
391 | 391 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3]))) | |
392 | 392 | then 2 | |
393 | 393 | else 0)) | |
394 | 394 | (count >= 3) | |
395 | 395 | } | |
396 | 396 |
github/deemru/w8io/026f985 44.67 ms ◑