tx · Ef3ndKwh9MKx9MCmb8UJYKX8FBebvEzFsKhvDqZHVNRY 3MuAPY3jP4q2AoNYX27B5BU9EoLU77mr7pS: -0.02000000 Waves 2022.02.11 18:43 [1919149] smart account 3MuAPY3jP4q2AoNYX27B5BU9EoLU77mr7pS > SELF 0.00000000 Waves
{ "type": 13, "id": "Ef3ndKwh9MKx9MCmb8UJYKX8FBebvEzFsKhvDqZHVNRY", "fee": 2000000, "feeAssetId": null, "timestamp": 1644594264374, "version": 1, "sender": "3MuAPY3jP4q2AoNYX27B5BU9EoLU77mr7pS", "senderPublicKey": "rqCnkHfz5ix6HNKiVvYE3URUtLs6f2nWzt4hpdGGQdm", "proofs": [ "4dBhkRCdKxkJ9TwLhXAewvzyZG4hXnESuHjJVScoXsvFM9V4PVnf7cBnKxHTw5RTmyzaB3KefpFKo5HVZzrxwSKw" ], "script": "base64:AAIFAAAAAAAAAAgIAhIAEgASAAAAAFQAAAAAEG5ldXRyaW5vQ29udHJhY3QJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNemJ4MzRFeDVyUmJuMzl2VUh4OWtpd2gzbm5lRjhTNXdlAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAAEG5ldXRyaW5vQ29udHJhY3QFAAAAA2tleQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAABBuZXV0cmlub0NvbnRyYWN0BQAAAANrZXkCAAAAAAEAAAAMZ2V0Qm9vbEJ5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQbAAAAAgUAAAAQbmV1dHJpbm9Db250cmFjdAUAAAADa2V5BwEAAAAYZ2V0TnVtYmVyQnlBZGRyZXNzQW5kS2V5AAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBA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RQcmljZVJFU1QAAAAABAAAAA5uc2J0UHJpY2VUdXBsZQkBAAAAFHByaXZhdGVOc2J0UHJpY2VSRVNUAAAAAAQAAAAObnNidDJ1c2RuUHJpY2UICAUAAAAObnNidFByaWNlVHVwbGUAAAACXzEAAAAFdmFsdWUEAAAAD25zYnQyd2F2ZXNQcmljZQgIBQAAAA5uc2J0UHJpY2VUdXBsZQAAAAJfMgAAAAV2YWx1ZQQAAAAIcmVzdERhdGEJAAS5AAAAAgkABEwAAAACAgAAABJzdGFydE5zYnRQcmljZVJFU1QJAARMAAAAAgkAAaQAAAABBQAAAA5uc2J0MnVzZG5QcmljZQkABEwAAAACCQABpAAAAAEFAAAAD25zYnQyd2F2ZXNQcmljZQkABEwAAAACAgAAABBlbmROc2J0UHJpY2VSRVNUBQAAAANuaWwCAAAAAl9fCQAAAgAAAAEFAAAACHJlc3REYXRhAAAAAEAI2Ck=", "chainId": 84, "height": 1919149, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GKCEuH6PJmQ5pPg5nPMfzPLaE7chqSnP8GqdCaPfMrE5 Next: Aa5vrUS7PeT22UnfNs7jkUM23C2vz7SuCvdo67S8pTuA Diff:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let neutrinoContract = addressFromStringValue("3Mzbx34Ex5rRbn39vUHx9kiwh3nneF8S5we") | |
207 | 207 | } | |
208 | 208 | ||
209 | 209 | ||
210 | + | func privateNeutrinoStateREADONLY () = makeString(["resultNeutrinoStateREST", toString(currentPrice), toString(neutrinoLockedBalance), toString(wavesLockedBalance), toString(reservesInWaves), toString(reservesInUsdn), toString(neutrinoSupply), toString(surplus), toString(surplusPercent), toString(BR), toString(nsbtSupply)], "__") | |
211 | + | ||
212 | + | ||
210 | 213 | @Callable(i) | |
211 | - | func neutrinoStateREST () = throw(makeString(["resultNeutrinoStateREST", toString(currentPrice), toString(neutrinoLockedBalance), toString(wavesLockedBalance), toString(reservesInWaves), toString(reservesInUsdn), toString(neutrinoSupply), toString(surplus), toString(surplusPercent), toString(BR), toString(nsbtSupply)], "__")) | |
214 | + | func neutrinoStateREST () = throw(privateNeutrinoStateREADONLY()) | |
215 | + | ||
216 | + | ||
217 | + | ||
218 | + | @Callable(i) | |
219 | + | func neutrinoStateREADONLY () = $Tuple2(nil, privateNeutrinoStateREADONLY()) | |
212 | 220 | ||
213 | 221 | ||
214 | 222 |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let neutrinoContract = addressFromStringValue("3Mzbx34Ex5rRbn39vUHx9kiwh3nneF8S5we") | |
5 | 5 | ||
6 | 6 | func getNumberByKey (key) = valueOrElse(getInteger(neutrinoContract, key), 0) | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func getStringByKey (key) = valueOrElse(getString(neutrinoContract, key), "") | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func getBoolByKey (key) = valueOrElse(getBoolean(neutrinoContract, key), false) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func getNumberByAddressAndKey (address,key) = valueOrElse(getInteger(addressFromStringValue(address), key), 0) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func getStringByAddressAndKey (address,key) = valueOrElse(getString(addressFromStringValue(address), key), "") | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func getBoolByAddressAndKey (address,key) = valueOrElse(getBoolean(addressFromStringValue(address), key), false) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | let SENDTXEXPIRE = 30 | |
25 | 25 | ||
26 | 26 | let LISTSPLITSYMBOL = "_" | |
27 | 27 | ||
28 | 28 | let LISTDATASYMBOL = "+" | |
29 | 29 | ||
30 | 30 | let WAVELET = 100000000 | |
31 | 31 | ||
32 | 32 | let PAULI = 1000000 | |
33 | 33 | ||
34 | 34 | let PRICELET = 1000000 | |
35 | 35 | ||
36 | 36 | let MULT = 100000000 | |
37 | 37 | ||
38 | 38 | let MULTSCALE = 8 | |
39 | 39 | ||
40 | 40 | let NeutrinoAssetIdKey = "neutrino_asset_id" | |
41 | 41 | ||
42 | 42 | let BondAssetIdKey = "bond_asset_id" | |
43 | 43 | ||
44 | 44 | let AuctionContractKey = "auction_contract" | |
45 | 45 | ||
46 | 46 | let LiquidationContractKey = "liquidation_contract" | |
47 | 47 | ||
48 | 48 | let RPDContractKey = "rpd_contract" | |
49 | 49 | ||
50 | 50 | let ContolContractKey = "control_contract" | |
51 | 51 | ||
52 | 52 | let BalanceWavesLockIntervalKey = "balance_waves_lock_interval" | |
53 | 53 | ||
54 | 54 | let BalanceNeutrinoLockIntervalKey = "balance_neutrino_lock_interval" | |
55 | 55 | ||
56 | 56 | let MinWavesSwapAmountKey = "min_waves_swap_amount" | |
57 | 57 | ||
58 | 58 | let MinNeutrinoSwapAmountKey = "min_neutrino_swap_amount" | |
59 | 59 | ||
60 | 60 | let NodeOracleProviderPubKeyKey = "node_oracle_provider" | |
61 | 61 | ||
62 | 62 | let RPDBalanceKey = "rpd_balance" | |
63 | 63 | ||
64 | 64 | func getRPDContractBalanceKey (assetId) = ((RPDBalanceKey + "_") + toBase58String(assetId)) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | let PriceKey = "price" | |
68 | 68 | ||
69 | 69 | let PriceIndexKey = "price_index" | |
70 | 70 | ||
71 | 71 | let IsBlockedKey = "is_blocked" | |
72 | 72 | ||
73 | 73 | func getPriceHistoryKey (block) = ((PriceKey + "_") + toString(block)) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func getHeightPriceByIndexKey (index) = ((PriceIndexKey + "_") + toString(index)) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | let BalanceLockedkKey = "balance_lock_" | |
80 | 80 | ||
81 | 81 | let WavesLockedBalanceKey = (BalanceLockedkKey + "waves") | |
82 | 82 | ||
83 | 83 | let NeutrinoLockedBalanceKey = (BalanceLockedkKey + "neutrino") | |
84 | 84 | ||
85 | 85 | func getRPDSnapshotContractBalanceKey (count,assetId) = ((((RPDBalanceKey + "_") + toBase58String(assetId)) + "_") + toString(count)) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func getCancelLeaseTxReserveFeeKey (hash) = (("cancel_lease_tx_reserve_fee" + "_") + hash) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func getWavesLockedBalanceKey (owner) = ((WavesLockedBalanceKey + "_") + owner) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func getNeutrinoLockedBalanceKey (owner) = ((NeutrinoLockedBalanceKey + "_") + owner) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func getBalanceUnlockBlockKey (owner) = ("balance_unlock_block_" + owner) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func getRPDProfitKey (count) = (("rpd_profit" + "_") + toString(count)) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func convertNeutrinoToWaves (amount,price) = fraction(fraction(amount, PRICELET, price), WAVELET, PAULI) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, PRICELET), PAULI, WAVELET) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func convertWavesToBond (amount,price) = convertWavesToNeutrino(amount, price) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func convertJsonArrayToList (jsonArray) = split(jsonArray, ",") | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | let liquidationContract = getStringByKey(LiquidationContractKey) | |
116 | 116 | ||
117 | 117 | let neutrinoAssetIdString = getStringByKey(NeutrinoAssetIdKey) | |
118 | 118 | ||
119 | 119 | let neutrinoAssetId = fromBase58String(neutrinoAssetIdString) | |
120 | 120 | ||
121 | 121 | let auctionContract = getStringByKey(AuctionContractKey) | |
122 | 122 | ||
123 | 123 | let rpdContract = getStringByKey(RPDContractKey) | |
124 | 124 | ||
125 | 125 | let controlContract = getStringByKey(ContolContractKey) | |
126 | 126 | ||
127 | 127 | let priceIndex = getNumberByAddressAndKey(controlContract, PriceIndexKey) | |
128 | 128 | ||
129 | 129 | let isBlocked = getBoolByAddressAndKey(controlContract, IsBlockedKey) | |
130 | 130 | ||
131 | 131 | let nodeOracleProviderPubKey = fromBase58String(getStringByKey(NodeOracleProviderPubKeyKey)) | |
132 | 132 | ||
133 | 133 | let balanceWavesLockInterval = getNumberByKey(BalanceWavesLockIntervalKey) | |
134 | 134 | ||
135 | 135 | let balanceNeutrinoLockInterval = getNumberByKey(BalanceNeutrinoLockIntervalKey) | |
136 | 136 | ||
137 | 137 | let minWavesSwapAmount = getNumberByKey(MinWavesSwapAmountKey) | |
138 | 138 | ||
139 | 139 | let minNeutrinoSwapAmount = getNumberByKey(MinNeutrinoSwapAmountKey) | |
140 | 140 | ||
141 | 141 | let nsbtAssetIdStr = getStringValue(neutrinoContract, BondAssetIdKey) | |
142 | 142 | ||
143 | 143 | let nsbtAssetId = fromBase58String(nsbtAssetIdStr) | |
144 | 144 | ||
145 | 145 | let deprecatedBondAssetId = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF") | |
146 | 146 | ||
147 | 147 | let currentPrice = getNumberByAddressAndKey(controlContract, PriceKey) | |
148 | 148 | ||
149 | 149 | let neutrinoLockedBalance = getNumberByKey(NeutrinoLockedBalanceKey) | |
150 | 150 | ||
151 | 151 | let wavesLockedBalance = getNumberByKey(WavesLockedBalanceKey) | |
152 | 152 | ||
153 | 153 | let reservesInWaves = (wavesBalance(neutrinoContract).regular - wavesLockedBalance) | |
154 | 154 | ||
155 | 155 | let reservesInUsdn = convertWavesToNeutrino(reservesInWaves, currentPrice) | |
156 | 156 | ||
157 | 157 | let neutrinoSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAssetId)).quantity) - assetBalance(neutrinoContract, neutrinoAssetId)) - assetBalance(addressFromStringValue(liquidationContract), neutrinoAssetId)) | |
158 | 158 | ||
159 | 159 | let surplus = (reservesInUsdn - neutrinoSupply) | |
160 | 160 | ||
161 | 161 | let surplusPercent = (fraction(surplus, PAULI, neutrinoSupply) * 100) | |
162 | 162 | ||
163 | 163 | let BR = fraction(reservesInUsdn, PAULI, neutrinoSupply) | |
164 | 164 | ||
165 | 165 | let auctionAddress = addressFromStringValue(auctionContract) | |
166 | 166 | ||
167 | 167 | let nsbtSupplyMAX = value(assetInfo(nsbtAssetId)).quantity | |
168 | 168 | ||
169 | 169 | let nsbtSupply = (nsbtSupplyMAX - assetBalance(auctionAddress, nsbtAssetId)) | |
170 | 170 | ||
171 | 171 | let IdxA = 0 | |
172 | 172 | ||
173 | 173 | let IdxPaulB = 1 | |
174 | 174 | ||
175 | 175 | let IdxWResAsUsdn = 2 | |
176 | 176 | ||
177 | 177 | let IdxMultBR = 3 | |
178 | 178 | ||
179 | 179 | let IdxMultPower = 4 | |
180 | 180 | ||
181 | 181 | let IdxMultExpInPower = 5 | |
182 | 182 | ||
183 | 183 | let IdxMultK = 6 | |
184 | 184 | ||
185 | 185 | func calculateK (wRaw,uRaw,price,mRaw,sRaw) = { | |
186 | 186 | let EXP = 271828100 | |
187 | 187 | let a = valueOrElse(getInteger(this, "nsbtCurveParam_a"), 3) | |
188 | 188 | let paulB = valueOrElse(getInteger(this, "nsbtCurveParam_b"), ((3 * PAULI) / 10)) | |
189 | 189 | let wReservesInUsdn = convertWavesToNeutrino(wRaw, price) | |
190 | 190 | let multBR = fraction(wReservesInUsdn, MULT, uRaw) | |
191 | 191 | let multPower = (a * (multBR - (1 * MULT))) | |
192 | 192 | let multExpInPower = pow(EXP, MULTSCALE, multPower, MULTSCALE, MULTSCALE, DOWN) | |
193 | 193 | let multK = fraction(paulB, multExpInPower, PAULI) | |
194 | 194 | [a, paulB, wReservesInUsdn, multBR, multPower, multExpInPower, multK] | |
195 | 195 | } | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func privateNsbtPriceREST () = { | |
199 | 199 | let kCalcArray = calculateK(reservesInWaves, neutrinoSupply, currentPrice, nsbtSupplyMAX, nsbtSupply) | |
200 | 200 | let multK = kCalcArray[IdxMultK] | |
201 | 201 | let multStep1 = fraction(nsbtSupplyMAX, MULT, (nsbtSupplyMAX - nsbtSupply)) | |
202 | 202 | let multStep2 = fraction(multStep1, multStep1, MULT) | |
203 | 203 | let multNsbt2usdnPrice = fraction(multK, multStep2, MULT) | |
204 | 204 | let nsbt2usdnPrice = fraction(multNsbt2usdnPrice, PAULI, MULT) | |
205 | 205 | let nsbt2wavesPrice = fraction(nsbt2usdnPrice, PAULI, currentPrice) | |
206 | 206 | $Tuple2(IntegerEntry("nsbt2usdnPrice", nsbt2usdnPrice), IntegerEntry("nsbt2wavesPrice", nsbt2wavesPrice)) | |
207 | 207 | } | |
208 | 208 | ||
209 | 209 | ||
210 | + | func privateNeutrinoStateREADONLY () = makeString(["resultNeutrinoStateREST", toString(currentPrice), toString(neutrinoLockedBalance), toString(wavesLockedBalance), toString(reservesInWaves), toString(reservesInUsdn), toString(neutrinoSupply), toString(surplus), toString(surplusPercent), toString(BR), toString(nsbtSupply)], "__") | |
211 | + | ||
212 | + | ||
210 | 213 | @Callable(i) | |
211 | - | func neutrinoStateREST () = throw(makeString(["resultNeutrinoStateREST", toString(currentPrice), toString(neutrinoLockedBalance), toString(wavesLockedBalance), toString(reservesInWaves), toString(reservesInUsdn), toString(neutrinoSupply), toString(surplus), toString(surplusPercent), toString(BR), toString(nsbtSupply)], "__")) | |
214 | + | func neutrinoStateREST () = throw(privateNeutrinoStateREADONLY()) | |
215 | + | ||
216 | + | ||
217 | + | ||
218 | + | @Callable(i) | |
219 | + | func neutrinoStateREADONLY () = $Tuple2(nil, privateNeutrinoStateREADONLY()) | |
212 | 220 | ||
213 | 221 | ||
214 | 222 | ||
215 | 223 | @Callable(i) | |
216 | 224 | func nsbtPriceREST () = { | |
217 | 225 | let nsbtPriceTuple = privateNsbtPriceREST() | |
218 | 226 | let nsbt2usdnPrice = nsbtPriceTuple._1.value | |
219 | 227 | let nsbt2wavesPrice = nsbtPriceTuple._2.value | |
220 | 228 | let restData = makeString(["startNsbtPriceREST", toString(nsbt2usdnPrice), toString(nsbt2wavesPrice), "endNsbtPriceREST"], "__") | |
221 | 229 | throw(restData) | |
222 | 230 | } | |
223 | 231 | ||
224 | 232 |
github/deemru/w8io/026f985 30.19 ms ◑