tx · F3Pv6w3sV2oqxwdFZbnCnwiZ1ohyQCErVYr6ArdGz6cU 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi: -0.02700000 Waves 2023.03.01 18:28 [2471180] smart account 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi > SELF 0.00000000 Waves
{ "type": 13, "id": "F3Pv6w3sV2oqxwdFZbnCnwiZ1ohyQCErVYr6ArdGz6cU", "fee": 2700000, "feeAssetId": null, "timestamp": 1677684553638, "version": 2, "chainId": 84, "sender": "3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "senderPublicKey": "BwVRZtTzoCigEsffCvQ9uo7WvkoBNNGVjX4nat5X5zyQ", "proofs": [ "5RJ8m8AhgmMyjov5MRqeLoGc5n8NioZgjAmxu8ETx2e8RV1ZdKHXQBvb9nKrg4wmZHWak1puW4cCnJzW3PgqMfmy" ], "script": "base64:BgJICAISBQoDCAgIEgASAwoBCBIECgIIARIAEgMKAQESBQoDCAEIEgMKAQgSBgoEAQEBARIECgIBARIECgIBCBIDCgEBEgASABIAegALcmV2aXNpb25OdW0CAAAGRVVMRVI4ANaJz4EBAAVNVUxUNgDAhD0ABk1VTFRYNgkAtgIBAMCEPQAFTVVMVDgAgMLXLwAGTVVMVFg4CQC2AgEAgMLXLwAGTVVMVDEyAICglKWNHQAGTVVMVDE4CQC2AgEAgICQu7rWrfANAANTRVACAl9fAAtCUlBST1RFQ1RFRACgjQYADkRFRkFVTFRQQVlNRU5UAICU69wDABRERUZBVUxUQ1JFQVRJT05HTlNCVACAlOvcAwAHV0FWRVNJRAkA2QQBAgVXQVZFUwAPbk1ldHJpY0lkeFByaWNlAAAAG25NZXRyaWNJZHhVc2RuTG9ja2VkQmFsYW5jZQABABxuTWV0cmljSWR4V2F2ZXNMb2NrZWRCYWxhbmNlAAIAEW5NZXRyaWNJZHhSZXNlcnZlAAMAF25NZXRyaWNJZHhSZXNlcnZlSW5Vc2RuAAQAFG5NZXRyaWNJZHhVc2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YnQyd2F2ZXNQcmljZQkBBWFzSW50AQkAkQMCBQZwcmljZXMAAQQIcmVzdERhdGEJALkJAgkAzAgCAhJzdGFydE5zYnRQcmljZVJFU1QJAMwIAgkApAMBBQ5uc2J0MnVzZG5QcmljZQkAzAgCCQCkAwEFD25zYnQyd2F2ZXNQcmljZQkAzAgCAhBlbmROc2J0UHJpY2VSRVNUBQNuaWwCAl9fCQACAQUIcmVzdERhdGEBaQENc3VyZlByaWNlUkVTVAAED25ldXRyaW5vTWV0cmljcwkBCWFzQW55TGlzdAEJAPwHBAUMbWF0aENvbnRyYWN0AhpjYWxjTmV1dGlub01ldHJpY3NSRUFET05MWQUDbmlsBQNuaWwEDGN1cnJlbnRQcmljZQkBBWFzSW50AQkAkQMCBQ9uZXV0cmlub01ldHJpY3MFD25NZXRyaWNJZHhQcmljZQQPcmVzZXJ2ZXNJbldhdmVzCQEFYXNJbnQBCQCRAwIFD25ldXRyaW5vTWV0cmljcwURbk1ldHJpY0lkeFJlc2VydmUEDm5ldXRyaW5vU3VwcGx5CQEFYXNJbnQBCQCRAwIFD25ldXRyaW5vTWV0cmljcwUUbk1ldHJpY0lkeFVzZG5TdXBwbHkED3N1cmZQcmljZUluVXNkbgkAawMFD3Jlc2VydmVzSW5XYXZlcwUMY3VycmVudFByaWNlBQ5uZXV0cmlub1N1cHBseQQQc3VyZlByaWNlSW5XYXZlcwkAawMFD3Jlc2VydmVzSW5XYXZlcwUFTVVMVDgFDm5ldXRyaW5vU3VwcGx5BAhyZXN0RGF0YQkAuQkCCQDMCAICEnN0YXJ0U3VyZlByaWNlUkVTVAkAzAgCCQCkAwEFD3N1cmZQcmljZUluVXNkbgkAzAgCCQCkAwEFEHN1cmZQcmljZUluV2F2ZXMJAMwIAgIQZW5kU3VyZlByaWNlUkVTVAUDbmlsAgJfXwkAAgEFCHJlc3REYXRhAMhcqrk=", "height": 2471180, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: PzXBPw4TYJnucHmS5eEn6pCJDw7oUvMFhp6HgVjn6dS Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let revisionNum = "" | |
5 | 5 | ||
6 | 6 | let EULER8 = 271828182 | |
7 | 7 | ||
8 | 8 | let MULT6 = 1000000 | |
9 | 9 | ||
10 | 10 | let MULTX6 = toBigInt(1000000) | |
11 | 11 | ||
12 | 12 | let MULT8 = 100000000 | |
13 | 13 | ||
14 | 14 | let MULTX8 = toBigInt(100000000) | |
15 | 15 | ||
16 | 16 | let MULT12 = 1000000000000 | |
17 | 17 | ||
18 | 18 | let MULT18 = toBigInt(1000000000000000000) | |
19 | 19 | ||
20 | 20 | let SEP = "__" | |
21 | 21 | ||
22 | 22 | let BRPROTECTED = 100000 | |
23 | 23 | ||
24 | 24 | let DEFAULTPAYMENT = 1000000000 | |
25 | 25 | ||
26 | 26 | let DEFAULTCREATIONGNSBT = 1000000000 | |
27 | 27 | ||
28 | 28 | let WAVESID = fromBase58String("WAVES") | |
29 | 29 | ||
30 | 30 | let nMetricIdxPrice = 0 | |
31 | 31 | ||
32 | 32 | let nMetricIdxUsdnLockedBalance = 1 | |
33 | 33 | ||
34 | 34 | let nMetricIdxWavesLockedBalance = 2 | |
35 | 35 | ||
36 | 36 | let nMetricIdxReserve = 3 | |
37 | 37 | ||
38 | 38 | let nMetricIdxReserveInUsdn = 4 | |
39 | 39 | ||
40 | 40 | let nMetricIdxUsdnSupply = 5 | |
41 | 41 | ||
42 | 42 | let nMetricIdxSurplus = 6 | |
43 | 43 | ||
44 | 44 | let nMetricIdxSurplusPercent = 7 | |
45 | 45 | ||
46 | 46 | let nMetricIdxBR = 8 | |
47 | 47 | ||
48 | 48 | let nMetricIdxNsbtSupply = 9 | |
49 | 49 | ||
50 | 50 | let nMetricIdxMaxNsbtSupply = 10 | |
51 | 51 | ||
52 | 52 | let nMetricIdxSurfSupply = 11 | |
53 | 53 | ||
54 | 54 | let nMetricUsdnUsdtPeg = 12 | |
55 | 55 | ||
56 | 56 | let nMetricCurrentPriceAdj = 13 | |
57 | 57 | ||
58 | 58 | let bFuncIdxSurf = 0 | |
59 | 59 | ||
60 | 60 | let bFuncIdxWaves = 1 | |
61 | 61 | ||
62 | 62 | let bFuncIdxUsdn = 2 | |
63 | 63 | ||
64 | 64 | let bFuncIdxReserveStart = 3 | |
65 | 65 | ||
66 | 66 | let bFuncIdxSupplyStart = 4 | |
67 | 67 | ||
68 | 68 | let bFuncIdxBRStart = 5 | |
69 | 69 | ||
70 | 70 | let bFuncIdxReserveEnd = 6 | |
71 | 71 | ||
72 | 72 | let bFuncIdxSupplyEnd = 7 | |
73 | 73 | ||
74 | 74 | let bFuncIdxBREnd = 8 | |
75 | 75 | ||
76 | 76 | let bFuncIdxRest = 9 | |
77 | 77 | ||
78 | 78 | let bFuncIdxWavesPrice = 10 | |
79 | 79 | ||
80 | 80 | func keyNeutrinoAddress () = "%s%s__config__neutrinoAddress" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func keyNeutrinoAssetId () = "neutrino_asset_id" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func keyNsbtAssetId () = "bond_asset_id" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func keySurfAssetId () = "surf_asset_id" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func keyBalanceLocked () = "balance_lock_" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func keyWavesLockedBalance () = (keyBalanceLocked() + "waves") | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino") | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func keyMinWavesSwapAmount () = "min_outNeutrino_swap_amount_WAVES" | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func keyMinNeutrinoSwapAmount () = "min_outMulti_swap_amount" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyWavesOutFeePart () = "wavesOut_swap_feePart" | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func keyNeutrinoOutFeePart () = "neutrinoOut_swap_feePart" | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func keySwapAmountAParam () = "%s%s__config__swapAParam" | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func keySwapAmountBParam () = "%s%s__config__swapBParam" | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func keyUsdnSwapAmountAParam () = "%s%s__config__usdnSwapAParam" | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func keyUsdnSwapAmountBParam () = "%s%s__config__usdnSwapBParam" | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func keyNsbtLockContract () = "%s__nsbtLockContract" | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func keyMathContract () = "%s__mathContract" | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func brProtectedKEY () = "min_BR_protection_level" | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func keyBalanceWavesLockInterval () = "balance_waves_lock_interval" | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func keyBalanceNeutrinoLockInterval () = "balance_neutrino_lock_interval" | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func keyPaymentRequired () = "%s__paymentRequired" | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func keyGnsbtRequired () = "%s__gNsbtRequired" | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func swapsTimeframeKEY () = "swaps_timeframe" | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func keyPrice () = "price" | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "start"], SEP) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func keyHalfLife () = "%s__halfLife" | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func keyMinLockAmount () = "%s__minLockAmount" | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func keyMinWavesForNsbtBuy () = "min_waves_nsbt_buy" | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func keyMinNsbtSell () = "min_nsbt_sell" | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func keyRpdContractBalanceKey (assetId) = ("rpd_balance_" + assetId) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func asAnyList (val) = match val { | |
186 | 186 | case valAnyList: List[Any] => | |
187 | 187 | valAnyList | |
188 | 188 | case _ => | |
189 | 189 | throw("fail to cast into List[Any]") | |
190 | 190 | } | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func asInt (val) = match val { | |
194 | 194 | case valInt: Int => | |
195 | 195 | valInt | |
196 | 196 | case _ => | |
197 | 197 | throw("fail to cast into Int") | |
198 | 198 | } | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func asString (val) = match val { | |
202 | 202 | case valStr: String => | |
203 | 203 | valStr | |
204 | 204 | case _ => | |
205 | 205 | throw("fail to cast into String") | |
206 | 206 | } | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func asTuple2Ints (val) = match val { | |
210 | 210 | case v: (Int, Int) => | |
211 | 211 | v | |
212 | 212 | case _ => | |
213 | 213 | throw("fail to cast into Tuple2 ints") | |
214 | 214 | } | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func asSwapParamsSTRUCT (val) = match val { | |
218 | 218 | case struct: (Int, Int, Int, Int, Int, Int, Int) => | |
219 | 219 | struct | |
220 | 220 | case _ => | |
221 | 221 | throw("fail to cast into SwapParamsSTRUCT") | |
222 | 222 | } | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func toTimestamp (start) = if ((0 > start)) | |
226 | 226 | then -1 | |
227 | 227 | else match blockInfoByHeight(start) { | |
228 | 228 | case block: BlockInfo => | |
229 | 229 | block.timestamp | |
230 | 230 | case _ => | |
231 | 231 | -1 | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult)) | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18)) | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | let IdxControlCfgNeutrinoDapp = 1 | |
242 | 242 | ||
243 | 243 | let IdxControlCfgAuctionDapp = 2 | |
244 | 244 | ||
245 | 245 | let IdxControlCfgRpdDapp = 3 | |
246 | 246 | ||
247 | 247 | let IdxControlCfgMathDapp = 4 | |
248 | 248 | ||
249 | 249 | let IdxControlCfgLiquidationDapp = 5 | |
250 | 250 | ||
251 | 251 | let IdxControlCfgRestDapp = 6 | |
252 | 252 | ||
253 | 253 | let IdxControlCfgNodeRegistryDapp = 7 | |
254 | 254 | ||
255 | 255 | let IdxControlCfgNsbtStakingDapp = 8 | |
256 | 256 | ||
257 | 257 | let IdxControlCfgMediatorDapp = 9 | |
258 | 258 | ||
259 | 259 | let IdxControlCfgSurfStakingDapp = 10 | |
260 | 260 | ||
261 | 261 | let IdxControlCfgGnsbtControllerDapp = 11 | |
262 | 262 | ||
263 | 263 | let IdxControlCfgRestV2Dapp = 12 | |
264 | 264 | ||
265 | 265 | let IdxControlCfgGovernanceDapp = 13 | |
266 | 266 | ||
267 | 267 | func keyControlAddress () = "%s%s__config__controlAddress" | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func keyControlCfg () = "%s__controlConfig" | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | func readControlCfgOrFail (control) = split_4C(getStringOrFail(control, keyControlCfg()), SEP) | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx))) | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
280 | 280 | ||
281 | 281 | let controlCfg = readControlCfgOrFail(controlContract) | |
282 | 282 | ||
283 | 283 | let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp) | |
284 | 284 | ||
285 | 285 | let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp) | |
286 | 286 | ||
287 | 287 | let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp) | |
288 | 288 | ||
289 | 289 | let liquidationContract = getContractAddressOrFail(controlCfg, IdxControlCfgLiquidationDapp) | |
290 | 290 | ||
291 | 291 | let rpdContract = getContractAddressOrFail(controlCfg, IdxControlCfgRpdDapp) | |
292 | 292 | ||
293 | 293 | let nsbtStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgNsbtStakingDapp) | |
294 | 294 | ||
295 | 295 | let surfStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgSurfStakingDapp) | |
296 | 296 | ||
297 | 297 | let gnsbtControllerContract = getContractAddressOrFail(controlCfg, IdxControlCfgGnsbtControllerDapp) | |
298 | 298 | ||
299 | 299 | let restV2Contract = getContractAddressOrFail(controlCfg, IdxControlCfgRestV2Dapp) | |
300 | 300 | ||
301 | 301 | let governanceContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp) | |
302 | 302 | ||
303 | 303 | let neutrinoAssetIdString = getStringOrFail(neutrinoContract, keyNeutrinoAssetId()) | |
304 | 304 | ||
305 | 305 | let neutrinoAssetId = fromBase58String(neutrinoAssetIdString) | |
306 | 306 | ||
307 | 307 | let nsbtAssetIdStr = getStringValue(neutrinoContract, keyNsbtAssetId()) | |
308 | 308 | ||
309 | 309 | let nsbtAssetId = fromBase58String(nsbtAssetIdStr) | |
310 | 310 | ||
311 | 311 | let surfAssetIdStr = getStringValue(auctionContract, keySurfAssetId()) | |
312 | 312 | ||
313 | 313 | let surfAssetId = fromBase58String(surfAssetIdStr) | |
314 | 314 | ||
315 | 315 | func minWavesForNsbtBuy () = asInt(invoke(auctionContract, "minWavesAmountNsbtBuySYSREADONLY", nil, nil)) | |
316 | 316 | ||
317 | 317 | ||
318 | 318 | func minNsbtForSell () = asInt(invoke(auctionContract, "minNsbtAmountForSellSYSREADONLY", nil, nil)) | |
319 | 319 | ||
320 | 320 | ||
321 | 321 | func minWavesForSurfBuy () = asInt(invoke(auctionContract, "minWavesAmountSurfBuySYSREADONLY", nil, nil)) | |
322 | 322 | ||
323 | 323 | ||
324 | 324 | func minUsdnForSurfBuy () = asInt(invoke(auctionContract, "minUsdnAmountSurfBuySYSREADONLY", nil, nil)) | |
325 | 325 | ||
326 | 326 | ||
327 | 327 | func privateNsbtPriceREST () = { | |
328 | 328 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
329 | 329 | let nsbt2usdnPrice = asInt(prices[0]) | |
330 | 330 | let nsbt2wavesPrice = asInt(prices[1]) | |
331 | 331 | $Tuple2(IntegerEntry("nsbt2usdnPrice", nsbt2usdnPrice), IntegerEntry("nsbt2wavesPrice", nsbt2wavesPrice)) | |
332 | 332 | } | |
333 | 333 | ||
334 | 334 | ||
335 | 335 | func getLockedOnRpd (addrStr,assetIdStr) = { | |
336 | 336 | let key = makeString(["rpd_balance", assetIdStr, addrStr], "_") | |
337 | 337 | valueOrElse(getInteger(rpdContract, key), 0) | |
338 | 338 | } | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | @Callable(i) | |
342 | 342 | func constructorV1 (neutrinoAddress,nsbtLockAddress,mathAddress) = if ((i.caller != this)) | |
343 | 343 | then throw("not authorized") | |
344 | 344 | else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), StringEntry(keyNsbtLockContract(), nsbtLockAddress), StringEntry(keyMathContract(), mathAddress)] | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | ||
348 | 348 | @Callable(i) | |
349 | 349 | func neutrinoStatsREADONLY () = { | |
350 | 350 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
351 | 351 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
352 | 352 | let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
353 | 353 | let neutrinoLockedBalance = asInt(neutrinoMetrics[nMetricIdxUsdnLockedBalance]) | |
354 | 354 | let wavesLockedBalance = asInt(neutrinoMetrics[nMetricIdxWavesLockedBalance]) | |
355 | 355 | let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
356 | 356 | let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn]) | |
357 | 357 | let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
358 | 358 | let surplus = asInt(neutrinoMetrics[nMetricIdxSurplus]) | |
359 | 359 | let surplusPercent = asInt(neutrinoMetrics[nMetricIdxSurplusPercent]) | |
360 | 360 | let BR = asInt(neutrinoMetrics[nMetricIdxBR]) | |
361 | 361 | let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) | |
362 | 362 | let maxNsbtSupply = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply]) | |
363 | 363 | let usdnUsdtPeg = asInt(neutrinoMetrics[nMetricUsdnUsdtPeg]) | |
364 | 364 | let burnPrice = asInt(neutrinoMetrics[nMetricCurrentPriceAdj]) | |
365 | 365 | let issuePrice = currentPrice | |
366 | 366 | let nsbt2usdnPrice = asInt(prices[0]) | |
367 | 367 | let nsbt2wavesPrice = asInt(prices[1]) | |
368 | 368 | let maxWaves2BuySurf = (fraction(neutrinoSupply, MULT8, currentPrice) - reservesInWaves) | |
369 | 369 | let maxUsdn2BuySurf = (neutrinoSupply - reservesInUsdn) | |
370 | 370 | let surfPriceInUsdn = BR | |
371 | 371 | let surfPriceInWaves = fraction(BR, MULT6, currentPrice) | |
372 | 372 | let totalUsdnStaked = valueOrElse(getInteger(rpdContract, keyRpdContractBalanceKey(neutrinoAssetIdString)), 0) | |
373 | 373 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(currentPrice), toString(neutrinoLockedBalance), toString(wavesLockedBalance), toString(reservesInWaves), toString(reservesInUsdn), toString(neutrinoSupply), toString(surplus), toString(surplusPercent), toString(BR), toString(nsbtSupply), toString(maxNsbtSupply), toString(nsbt2usdnPrice), toString(nsbt2wavesPrice), toString(usdnUsdtPeg), toString(issuePrice), toString(burnPrice), toString(totalUsdnStaked)], SEP)) | |
374 | 374 | } | |
375 | 375 | ||
376 | 376 | ||
377 | 377 | ||
378 | 378 | @Callable(i) | |
379 | 379 | func swapInfoREADONLY (userAddressStrOpt) = { | |
380 | 380 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
381 | 381 | let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount()) | |
382 | 382 | let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount()) | |
383 | 383 | let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart()) | |
384 | 384 | let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart()) | |
385 | 385 | let usdnSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval()) | |
386 | 386 | let wavesSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval()) | |
387 | 387 | let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
388 | 388 | let tokenSwapLimitMaxUsd = swapParamsSTRUCT._1 | |
389 | 389 | let swapLimitSpentUsdn = swapParamsSTRUCT._2 | |
390 | 390 | let blcks2LmtReset = swapParamsSTRUCT._3 | |
391 | 391 | let usdnSwapLimitMax = swapParamsSTRUCT._7 | |
392 | 392 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(currentPrice), toString(minWavesSwapAmt), toString(minUsdnSwapAmt), toString(waves2UsdnFee), toString(usdn2WavesFee), toString(usdnSwapDelayDuration), toString(wavesSwapDelayDuration), toString(blcks2LmtReset), toString(tokenSwapLimitMaxUsd), toString(usdnSwapLimitMax), toString(swapLimitSpentUsdn)], SEP)) | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | ||
397 | 397 | @Callable(i) | |
398 | 398 | func gnsbtInfoREADONLY (userAddressStrOpt,nsbtAmtDiff) = { | |
399 | 399 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
400 | 400 | let swapParams = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
401 | 401 | let limitMaxTokenInUsd = swapParams._1 | |
402 | 402 | let blcks2LmtReset = swapParams._3 | |
403 | 403 | let gnsbtAmt = swapParams._4 | |
404 | 404 | let gnsbtAmtTotal = swapParams._5 | |
405 | 405 | let limitMaxUsdn = swapParams._7 | |
406 | 406 | let swapParamsNEW = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil)) | |
407 | 407 | let limitMaxTokenInUsdNEW = swapParamsNEW._1 | |
408 | 408 | let blcks2LmtResetNEW = swapParamsNEW._3 | |
409 | 409 | let gnsbtAmtNEW = swapParamsNEW._4 | |
410 | 410 | let gnsbtAmtTotalNEW = swapParamsNEW._5 | |
411 | 411 | let limitMaxUsdnNEW = swapParamsNEW._7 | |
412 | 412 | let gnsbtShare = if ((gnsbtAmtTotal != 0)) | |
413 | 413 | then fraction((gnsbtAmt * 100), MULT12, gnsbtAmtTotal) | |
414 | 414 | else 0 | |
415 | 415 | let gnsbtShareNEW = if ((gnsbtAmtTotalNEW != 0)) | |
416 | 416 | then fraction((gnsbtAmtNEW * 100), MULT12, gnsbtAmtTotalNEW) | |
417 | 417 | else 0 | |
418 | 418 | let rewardInfo = asString(invoke(nsbtStakingContract, "unclaimedRewardsREADONLY", [userAddressStrOpt], nil)) | |
419 | 419 | let nsbtAmt = gnsbtAmt | |
420 | 420 | let nsbtAmtNew = gnsbtAmtNEW | |
421 | 421 | let nsbtAmtStakedTotal = assetBalance(nsbtStakingContract, nsbtAssetId) | |
422 | 422 | let nsbtAmtStakedTotalNew = nsbtAmtStakedTotal | |
423 | 423 | let nsbtData = asAnyList(invoke(nsbtStakingContract, "nsbtStakingSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil)) | |
424 | 424 | let isEmptyNsbtBalance = if ((gnsbtAmt == 0)) | |
425 | 425 | then (gnsbtAmtNEW == 0) | |
426 | 426 | else false | |
427 | 427 | let startHeight = if (isEmptyNsbtBalance) | |
428 | 428 | then height | |
429 | 429 | else asInt(nsbtData[2]) | |
430 | 430 | let startTimestamp = toTimestamp(startHeight) | |
431 | 431 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
432 | 432 | let startHeightNew = if (isEmptyNsbtBalance) | |
433 | 433 | then height | |
434 | 434 | else asInt(invoke(mathContract, "mergeStakesREADONLY", [gnsbtAmt, startHeight, gnsbtAmtNEW, height, halfLife], nil)) | |
435 | 435 | let startTimestampNew = toTimestamp(startHeightNew) | |
436 | 436 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s%d%d%d%d%d%d%d%d", toString(gnsbtAmt), toString(gnsbtAmtNEW), toString(gnsbtShare), toString(gnsbtShareNEW), toString(limitMaxUsdn), toString(limitMaxTokenInUsd), toString(limitMaxUsdnNEW), toString(limitMaxTokenInUsdNEW), rewardInfo, toString(nsbtAmt), toString(nsbtAmtNew), toString(nsbtAmtStakedTotal), toString(nsbtAmtStakedTotalNew), toString(startHeight), toString(startTimestamp), toString(startHeightNew), toString(startTimestampNew)], SEP)) | |
437 | 437 | } | |
438 | 438 | ||
439 | 439 | ||
440 | 440 | ||
441 | 441 | @Callable(i) | |
442 | 442 | func neutrinoConfigREADONLY () = { | |
443 | 443 | let limitParamA = getIntegerValue(mathContract, keySwapAmountAParam()) | |
444 | 444 | let limitParamB = getIntegerValue(mathContract, keySwapAmountBParam()) | |
445 | 445 | let usdnLimitParamA = getIntegerValue(mathContract, keyUsdnSwapAmountAParam()) | |
446 | 446 | let usdnLimitParamB = getIntegerValue(mathContract, keyUsdnSwapAmountBParam()) | |
447 | 447 | let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount()) | |
448 | 448 | let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount()) | |
449 | 449 | let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart()) | |
450 | 450 | let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart()) | |
451 | 451 | let brProtected = valueOrElse(getInteger(neutrinoContract, brProtectedKEY()), BRPROTECTED) | |
452 | 452 | let usdnSwapDelay = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval()) | |
453 | 453 | let wavesSwapDelay = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval()) | |
454 | 454 | let swapsTimeframe = valueOrElse(getInteger(neutrinoContract, swapsTimeframeKEY()), 1440) | |
455 | 455 | let minWaves4NsbtBuy = minWavesForNsbtBuy() | |
456 | 456 | let minNsbtsell = minNsbtForSell() | |
457 | 457 | let minNsbtLockAmt = getIntegerValue(nsbtStakingContract, keyMinLockAmount()) | |
458 | 458 | let halfLife = getIntegerValue(nsbtStakingContract, keyHalfLife()) | |
459 | 459 | let minWaves4SurfBuy = minWavesForSurfBuy() | |
460 | 460 | let minUsdn4SurfBuy = minUsdnForSurfBuy() | |
461 | 461 | let surfStakingCfg = asAnyList(invoke(surfStakingContract, "configSYSREADONLY", nil, nil)) | |
462 | 462 | let minSurfStakeAmt = asInt(surfStakingCfg[0]) | |
463 | 463 | let gnsbtFromSurfCoeff = asInt(surfStakingCfg[1]) | |
464 | 464 | let surfVotingPowerRestrictivePeriod = asInt(surfStakingCfg[2]) | |
465 | 465 | let brToStartSurfTransformation = asInt(surfStakingCfg[3]) | |
466 | 466 | let shutdown = valueOrElse(getBoolean(controlContract, "is_blocked"), false) | |
467 | 467 | let votingCreationCost = valueOrElse(getInteger(governanceContract, keyPaymentRequired()), DEFAULTPAYMENT) | |
468 | 468 | let votingCreationGnsbtNeeded = valueOrElse(getInteger(governanceContract, keyGnsbtRequired()), DEFAULTCREATIONGNSBT) | |
469 | 469 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%b%d%d%d%d%d%d%d%d", toString(limitParamA), toString(limitParamB), toString(minWavesSwapAmt), toString(minUsdnSwapAmt), toString(waves2UsdnFee), toString(usdn2WavesFee), toString(minWaves4NsbtBuy), toString(minNsbtsell), toString(minNsbtLockAmt), toString(halfLife), toString(minWaves4SurfBuy), toString(minUsdn4SurfBuy), toString(minSurfStakeAmt), toString(gnsbtFromSurfCoeff), toString(surfVotingPowerRestrictivePeriod), toString(brToStartSurfTransformation), toString(shutdown), toString(usdnLimitParamA), toString(usdnLimitParamB), toString(brProtected), toString(wavesSwapDelay), toString(usdnSwapDelay), toString(votingCreationCost), toString(votingCreationGnsbtNeeded), toString(swapsTimeframe)], SEP)) | |
470 | 470 | } | |
471 | 471 | ||
472 | 472 | ||
473 | 473 | ||
474 | 474 | @Callable(i) | |
475 | 475 | func buyNsbtREADONLY (wavesPay) = { | |
476 | 476 | let minWavesAmountNsbtBuy = minWavesForNsbtBuy() | |
477 | 477 | if ((minWavesAmountNsbtBuy > wavesPay)) | |
478 | 478 | then throw((("min " + toString(minWavesAmountNsbtBuy)) + " waves expected")) | |
479 | 479 | else { | |
480 | 480 | let curveResult = asAnyList(invoke(mathContract, "curveFunctionREADONLY", [wavesPay], nil)) | |
481 | 481 | if ((curveResult == curveResult)) | |
482 | 482 | then { | |
483 | 483 | let nsbtAmount = asInt(curveResult[0]) | |
484 | 484 | if ((0 >= nsbtAmount)) | |
485 | 485 | then throw("nsbtAmount <= 0") | |
486 | 486 | else $Tuple2(nil, makeString(["%d", toString(nsbtAmount)], SEP)) | |
487 | 487 | } | |
488 | 488 | else throw("Strict value is not equal to itself.") | |
489 | 489 | } | |
490 | 490 | } | |
491 | 491 | ||
492 | 492 | ||
493 | 493 | ||
494 | 494 | @Callable(i) | |
495 | 495 | func buySurfREADONLY (userAddressStrOpt,amount,assetIdStr) = { | |
496 | 496 | let assetId = fromBase58String(assetIdStr) | |
497 | 497 | let surfResult = asAnyList(invoke(mathContract, "surfFunctionREADONLY", [amount, assetId], nil)) | |
498 | 498 | let surfAmount = asInt(surfResult[bFuncIdxSurf]) | |
499 | 499 | let gNsbtAmount = asInt(invoke(surfStakingContract, "gnsbtFromSurfSYSREADONLY", [surfAmount], nil)) | |
500 | 500 | let swapParams = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
501 | 501 | let wavesLimit = swapParams._1 | |
502 | 502 | let usdnLimit = swapParams._7 | |
503 | 503 | let swapParamsNew = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, gNsbtAmount], nil)) | |
504 | 504 | let wavesLimitNew = swapParamsNew._1 | |
505 | 505 | let usdnLimitNew = swapParamsNew._7 | |
506 | 506 | let price = asInt(surfResult[bFuncIdxWavesPrice]) | |
507 | 507 | let additionalLimitUsdn = (usdnLimitNew - usdnLimit) | |
508 | 508 | let additionalLimitWavesInUsd = (wavesLimitNew - wavesLimit) | |
509 | 509 | let br0 = asInt(surfResult[bFuncIdxBRStart]) | |
510 | 510 | let br1 = asInt(surfResult[bFuncIdxBREnd]) | |
511 | 511 | let priceSurf2Waves0 = fraction(br0, MULT6, price) | |
512 | 512 | let priceSurf2Waves1 = fraction(br1, MULT6, price) | |
513 | 513 | let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, surfAmount], nil)) | |
514 | 514 | let votingPowerMax = asInt(gsnbtRestV2DATA[21]) | |
515 | 515 | let votingPowerMaxNEW = asInt(gsnbtRestV2DATA[22]) | |
516 | 516 | let votingPowerEtaNEW = asInt(gsnbtRestV2DATA[23]) | |
517 | 517 | let mergedVotingPowerEta = votingPowerEtaNEW | |
518 | 518 | let maxVotingPowerDiff = (votingPowerMaxNEW - votingPowerMax) | |
519 | 519 | let rest = asInt(surfResult[bFuncIdxRest]) | |
520 | 520 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(surfAmount), toString(gNsbtAmount), toString(additionalLimitUsdn), toString(additionalLimitWavesInUsd), toString(br0), toString(br1), toString(priceSurf2Waves0), toString(priceSurf2Waves1), toString(mergedVotingPowerEta), toString(maxVotingPowerDiff), toString(rest)], SEP)) | |
521 | 521 | } | |
522 | 522 | ||
523 | 523 | ||
524 | 524 | ||
525 | 525 | @Callable(i) | |
526 | 526 | func walletInfoREADONLY (userAddressStrOpt) = { | |
527 | 527 | let addr = addressFromString(userAddressStrOpt) | |
528 | 528 | let balance = if (isDefined(addr)) | |
529 | 529 | then wavesBalance(value(addr)) | |
530 | 530 | else BalanceDetails(0, 0, 0, 0) | |
531 | 531 | let usdnLocked = getLockedOnRpd(userAddressStrOpt, neutrinoAssetIdString) | |
532 | 532 | let nsbtLockedOld = getLockedOnRpd(userAddressStrOpt, nsbtAssetIdStr) | |
533 | 533 | let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStrOpt, 0, 0], nil)) | |
534 | 534 | let nsbtData = asAnyList(gnsbtData[2]) | |
535 | 535 | let nsbtUser = asInt(nsbtData[0]) | |
536 | 536 | let nsbtTotal = asInt(nsbtData[1]) | |
537 | 537 | let gNsbtFromNsbtUser = asInt(nsbtData[2]) | |
538 | 538 | let gNsbtFromNsbtTotal = asInt(nsbtData[3]) | |
539 | 539 | let surfData = asAnyList(gnsbtData[3]) | |
540 | 540 | let surfUser = asInt(surfData[0]) | |
541 | 541 | let surfTotal = asInt(surfData[1]) | |
542 | 542 | let gNsbtFromSurfUser = asInt(surfData[2]) | |
543 | 543 | let gNsbtFromSurfTotal = asInt(surfData[3]) | |
544 | 544 | let availableUsdnToClaimFromSurf = 0 | |
545 | 545 | let alreadyClaimedUsdnFromSurf = 0 | |
546 | 546 | let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, 0], nil)) | |
547 | 547 | let votingPower = asInt(gsnbtRestV2DATA[19]) | |
548 | 548 | let votingPowerMax = asInt(gsnbtRestV2DATA[21]) | |
549 | 549 | let votingPowerEta = asInt(gsnbtRestV2DATA[23]) | |
550 | 550 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(balance.regular), toString(balance.available), toString(balance.generating), toString(balance.effective), toString(height), toString(usdnLocked), toString(nsbtLockedOld), toString(nsbtUser), toString(gNsbtFromNsbtUser), toString(gNsbtFromSurfUser), toString(surfUser), toString(votingPower), toString(votingPowerMax), toString(votingPowerEta), toString(availableUsdnToClaimFromSurf), toString(alreadyClaimedUsdnFromSurf), toString(gNsbtFromNsbtTotal), toString(gNsbtFromSurfTotal)], SEP)) | |
551 | 551 | } | |
552 | 552 | ||
553 | 553 | ||
554 | 554 | ||
555 | 555 | @Callable(i) | |
556 | 556 | func mergedStakeREADONLY (amount1,height1,amount2,height2) = { | |
557 | 557 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
558 | 558 | let h = asInt(invoke(mathContract, "mergeStakesREADONLY", [amount1, height1, amount2, height2, halfLife], nil)) | |
559 | 559 | $Tuple2(nil, makeString(["%d%d", toString((amount1 + amount2)), toString(h)], SEP)) | |
560 | 560 | } | |
561 | 561 | ||
562 | 562 | ||
563 | 563 | ||
564 | 564 | @Callable(i) | |
565 | 565 | func unstakeComissionAmountByHeightREADONLY (amount,startHeight) = { | |
566 | 566 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
567 | 567 | let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil)) | |
568 | 568 | if ((a == a)) | |
569 | 569 | then $Tuple2(nil, makeString(["%d", toString(a)], SEP)) | |
570 | 570 | else throw("Strict value is not equal to itself.") | |
571 | 571 | } | |
572 | 572 | ||
573 | 573 | ||
574 | 574 | ||
575 | 575 | @Callable(i) | |
576 | 576 | func unstakeComissionAmountByUserREADONLY (amount,userAddress) = { | |
577 | 577 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
578 | 578 | let startHeight = valueOrElse(getInteger(nsbtStakingContract, keyLockParamStartBlock(userAddress)), height) | |
579 | 579 | let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil)) | |
580 | 580 | if ((a == a)) | |
581 | 581 | then $Tuple2(nil, makeString(["%d", toString(a)], SEP)) | |
582 | 582 | else throw("Strict value is not equal to itself.") | |
583 | 583 | } | |
584 | 584 | ||
585 | 585 | ||
586 | 586 | ||
587 | 587 | @Callable(i) | |
588 | 588 | func usdnStakingAprREADONLY (days) = { | |
589 | 589 | let wavesIncome = (6000 * MULT8) | |
590 | 590 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
591 | 591 | let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
592 | 592 | let totalUsdnStaked = valueOrElse(getInteger(rpdContract, keyRpdContractBalanceKey(neutrinoAssetIdString)), 0) | |
593 | 593 | let usdnIncome = fraction(wavesIncome, currentPrice, MULT8) | |
594 | 594 | let apr = fraction((usdnIncome * MULT6), 365, totalUsdnStaked) | |
595 | 595 | $Tuple2(nil, [apr]) | |
596 | 596 | } | |
597 | 597 | ||
598 | 598 | ||
599 | 599 | ||
600 | 600 | @Callable(i) | |
601 | 601 | func neutrinoStateREST () = { | |
602 | 602 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
603 | 603 | let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
604 | 604 | let neutrinoLockedBalance = asInt(neutrinoMetrics[nMetricIdxUsdnLockedBalance]) | |
605 | 605 | let wavesLockedBalance = asInt(neutrinoMetrics[nMetricIdxWavesLockedBalance]) | |
606 | 606 | let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
607 | 607 | let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn]) | |
608 | 608 | let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
609 | 609 | let surplus = asInt(neutrinoMetrics[nMetricIdxSurplus]) | |
610 | 610 | let surplusPercent = asInt(neutrinoMetrics[nMetricIdxSurplusPercent]) | |
611 | 611 | let BR = asInt(neutrinoMetrics[nMetricIdxBR]) | |
612 | 612 | let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) | |
613 | 613 | let nsbtSupplyMax = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply]) | |
614 | 614 | let surfSupply = asInt(neutrinoMetrics[nMetricIdxSurfSupply]) | |
615 | 615 | throw(makeString(["resultNeutrinoStateREST", toString(currentPrice), toString(neutrinoLockedBalance), toString(wavesLockedBalance), toString(reservesInWaves), toString(reservesInUsdn), toString(neutrinoSupply), toString(surplus), toString(surplusPercent), toString(BR), toString(nsbtSupply), toString(nsbtSupplyMax), toString(surfSupply)], "__")) | |
616 | 616 | } | |
617 | 617 | ||
618 | 618 | ||
619 | 619 | ||
620 | 620 | @Callable(i) | |
621 | 621 | func nsbtPriceREST () = { | |
622 | 622 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
623 | 623 | let nsbt2usdnPrice = asInt(prices[0]) | |
624 | 624 | let nsbt2wavesPrice = asInt(prices[1]) | |
625 | 625 | let restData = makeString(["startNsbtPriceREST", toString(nsbt2usdnPrice), toString(nsbt2wavesPrice), "endNsbtPriceREST"], "__") | |
626 | 626 | throw(restData) | |
627 | 627 | } | |
628 | 628 | ||
629 | 629 | ||
630 | 630 | ||
631 | 631 | @Callable(i) | |
632 | 632 | func surfPriceREST () = { | |
633 | 633 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
634 | 634 | let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
635 | 635 | let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
636 | 636 | let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
637 | 637 | let surfPriceInUsdn = fraction(reservesInWaves, currentPrice, neutrinoSupply) | |
638 | 638 | let surfPriceInWaves = fraction(reservesInWaves, MULT8, neutrinoSupply) | |
639 | 639 | let restData = makeString(["startSurfPriceREST", toString(surfPriceInUsdn), toString(surfPriceInWaves), "endSurfPriceREST"], "__") | |
640 | 640 | throw(restData) | |
641 | 641 | } | |
642 | 642 | ||
643 | 643 |
github/deemru/w8io/026f985 73.97 ms ◑