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