tx · F24srpWYefzuZabSmj3z5ieRzBiGdRg7bVBAa3MKSGzi

3N7u6nQ6aTajkkFQXMioxNKMH1J4gMbANYW:  -0.01400000 Waves

2019.08.21 20:37 [641200] smart account 3N7u6nQ6aTajkkFQXMioxNKMH1J4gMbANYW > SELF 0.00000000 Waves

{ "type": 13, "id": "F24srpWYefzuZabSmj3z5ieRzBiGdRg7bVBAa3MKSGzi", "fee": 1400000, "feeAssetId": null, "timestamp": 1566408996557, "version": 1, "sender": "3N7u6nQ6aTajkkFQXMioxNKMH1J4gMbANYW", "senderPublicKey": "F61jny4qCgvr1wEi27m7oBLvnmQpW46FBdNUtcbv8aXQ", "proofs": [ "KVCR2o46ywWHPo14cQAn8kijReGVSBb4uqEvHZ7Eyy9y1WnVyakdyw91os7RgTVYdtiyjtYtZaUSJk1cUk1RgYn" ], "script": "base64:AAIDAAAAAAAAAAAAAAAuAAAAAAROT05FAgAAAAABAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUAAAAAEk5ldXRyaW5vQXNzZXRJZEtleQIAAAARbmV1dHJpbm9fYXNzZXRfaWQAAAAADkJvbmRBc3NldElkS2V5AgAAAA1ib25kX2Fzc2V0X2lkAAAAABJBdWN0aW9uQ29udHJhY3RLZXkCAAAAEGF1Y3Rpb25fY29udHJhY3QAAAAACFByaWNlS2V5AgAAAAVwcmljZQAAAAAMT3JkZXJCb29rS2V5AgAAAAlvcm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91c2VyQm9uZEJhbGFuY2UFAAAAE3VzZXJOZXV0cmlub0JhbGFuY2UFAAAABmFtb3VudAkAAAIAAAABAgAAABhpbnZhbGlkIGJhbGFuY2Ugc25hcHNob3QDCQAAAAAAAAIFAAAACW9yZGVyYm9vawUAAAAETk9ORQkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAVTG9ja05ldXRyaW5vQW1vdW50S2V5BQAAAAJpZAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAABRMb2NrTmV1dHJpbm9CbG9ja0tleQUAAAACaWQAAAAAAAAAAAAFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAABpAAAAAgkAAGgAAAACBQAAAAdzdXJwbHVzBQAAAAZhbW91bnQJAABkAAAAAgUAAAAOc3VwcGx5TmV1dHJpbm8FAAAACWFsbG93Qm9uZAUAAAAPTmV1dHJpbm9Bc3NldElkBQAAAANuaWwJAAACAAAAAQIAAAATb3JkZXJib29rIG5vciBlbXB0eQAAAAAHODYO", "chainId": 84, "height": 641200, "spentComplexity": 0 } View: original | compacted Prev: CUqXwoT3hjLyiFMHtyxwdJSGRctjWfTeD5tYaFQzfgPa Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let NONE = ""
55
66 func getNumberByKey (key) = match getInteger(this, key) {
77 case a: Int =>
88 a
99 case _ =>
1010 0
1111 }
1212
1313
1414 func getStringByKey (key) = match getString(this, key) {
1515 case a: String =>
1616 a
1717 case _ =>
1818 NONE
1919 }
2020
2121
2222 let NeutrinoAssetIdKey = "neutrino_asset_id"
2323
2424 let BondAssetIdKey = "bond_asset_id"
2525
2626 let AuctionContractKey = "auction_contract"
2727
2828 let PriceKey = "price"
2929
3030 let OrderBookKey = "orderbook"
3131
3232 let OrderAmountKey = "order_amount_"
3333
3434 let OrderOwnerKey = "order_owner_"
3535
3636 let OrderHeightKey = "order_height_"
3737
3838 let OrderBookAmountKey = "orderbook_amount"
3939
4040 let OrderBookAmountSnapshotKey = "orderbook_amount_key"
4141
4242 let SurplusKey = "surplus_amount"
4343
4444 let SurplusBlockKey = "surplus_block"
4545
4646 let OrderbookSnapshotKey = "orderbook_snapshot"
4747
4848 let OrderbookSnapshotBlockKey = "orderbook_snapshot_block"
4949
5050 let BondGeneratedBlockKey = "bond_generated_block"
5151
5252 let LockNeutrinoBlockKey = "lock_block_"
5353
5454 let LockNeutrinoOwnerKey = "lock_owner_"
5555
5656 let LockNeutrinoAmountKey = "lock_amount_"
5757
5858 func getPrice () = getNumberByKey(PriceKey)
5959
6060
6161 func getOrderBook () = getStringByKey(OrderBookKey)
6262
6363
6464 func getOrderBookAmount () = getNumberByKey(OrderBookAmountKey)
6565
6666
6767 func getOrderAmount (id) = getNumberByKey((OrderAmountKey + id))
6868
6969
7070 func getOrderOwner (id) = getStringByKey((OrderOwnerKey + id))
7171
7272
7373 func getSurplus () = getStringByKey(SurplusKey)
7474
7575
7676 func getSurplusBlock () = getNumberByKey(SurplusKey)
7777
7878
7979 func getBondGeneratedBlock () = getNumberByKey(BondGeneratedBlockKey)
8080
8181
8282 func getOrderbookSnapshot () = getStringByKey(OrderbookSnapshotKey)
8383
8484
8585 func getOrderBookAmountSnapshot () = getNumberByKey(OrderBookAmountSnapshotKey)
8686
8787
8888 func getOrderbookSnapshotBlock () = getNumberByKey(OrderbookSnapshotBlockKey)
8989
9090
9191 func getLockNeutrinoBlock (id) = getNumberByKey((LockNeutrinoBlockKey + id))
9292
9393
9494 func getLockNeutrinoOwner (id) = getStringByKey((LockNeutrinoOwnerKey + id))
9595
9696
9797 func getLockNeutrinoAmount (id) = getNumberByKey((LockNeutrinoAmountKey + id))
9898
9999
100100 let SnapshotBlockExpire = 10
101101
102102 let OrderSplitSymbol = "_"
103103
104104 let Wavelet = 100000000
105105
106106 let MinimalBondOrder = 10
107107
108108 let MinimalSurplus = 10
109109
110110 let NeutrinoAssetId = fromBase58String(getStringByKey(NeutrinoAssetIdKey))
111111
112112 let BondAssetId = fromBase58String(getStringByKey(BondAssetIdKey))
113113
114114 let AuctionContract = getStringByKey(AuctionContractKey)
115115
116116 func getReserve () = wavesBalance(this)
117117
118118
119119 func getNeutrinoSupply () = {
120120 let info = extract(assetInfo(NeutrinoAssetId))
121121 (info.quantity - assetBalance(this, NeutrinoAssetId))
122122 }
123123
124124
125125 func getBondSupply () = {
126126 let info = extract(assetInfo(BondAssetId))
127127 (info.quantity - assetBalance(this, BondAssetId))
128128 }
129129
130130
131131 @Callable(i)
132132 func setCurrentPrice (price) = WriteSet([DataEntry(PriceKey, price)])
133133
134134
135135
136136 @Callable(i)
137137 func swapWavesToNeutrino () = {
138138 let price = getPrice()
139139 let pmt = extract(i.payment)
140140 if (isDefined(pmt.assetId))
141141 then throw("can use waves only")
142142 else {
143143 let account = toBase58String(i.caller.bytes)
144144 let amount = (pmt.amount * price)
145145 TransferSet([ScriptTransfer(addressFromStringValue(account), amount, NeutrinoAssetId)])
146146 }
147147 }
148148
149149
150150
151151 @Callable(i)
152152 func swapNeutrinoToWaves () = {
153153 let price = getPrice()
154154 let pmt = extract(i.payment)
155155 if ((pmt.assetId != NeutrinoAssetId))
156156 then throw("can use neutrino only")
157157 else {
158158 let account = toBase58String(i.caller.bytes)
159159 let amount = (pmt.amount / price)
160160 TransferSet([ScriptTransfer(addressFromStringValue(account), amount, unit)])
161161 }
162162 }
163163
164164
165165
166166 @Callable(i)
167167 func generateBond () = {
168168 let priceNeutrino = getPrice()
169169 let reserve = getReserve()
170170 let supply = getNeutrinoSupply()
171171 let deficit = (supply - (reserve * priceNeutrino))
172172 let lastBondGenerated = getBondGeneratedBlock()
173173 if (if ((deficit >= MinimalBondOrder))
174174 then ((lastBondGenerated + SnapshotBlockExpire) > height)
175175 else false)
176176 then ScriptResult(WriteSet([DataEntry(BondGeneratedBlockKey, height)]), TransferSet([ScriptTransfer(addressFromStringValue(AuctionContract), (deficit - MinimalBondOrder), BondAssetId)]))
177177 else throw("deficit did not reach the threshold")
178178 }
179179
180180
181181
182182 @Callable(i)
183183 func setOrder () = {
184184 let orderbook = getOrderBook()
185185 let pmt = extract(i.payment)
186186 let newOrderId = toBase58String(keccak256(((toBytes(pmt.amount) + i.caller.bytes) + toBytes(height))))
187187 if ((pmt.assetId != BondAssetId))
188188 then throw("can use waves only")
189189 else if ((getOrderOwner(newOrderId) != NONE))
190190 then throw("order exists")
191191 else if ((orderbook == NONE))
192192 then WriteSet([DataEntry(OrderBookAmountKey, (getOrderBookAmount() + pmt.amount)), DataEntry(OrderBookKey, (OrderSplitSymbol + newOrderId)), DataEntry((OrderAmountKey + newOrderId), pmt.amount), DataEntry((OrderOwnerKey + newOrderId), toString(i.caller)), DataEntry((OrderHeightKey + newOrderId), height)])
193193 else WriteSet([DataEntry(OrderBookAmountKey, (getOrderBookAmount() + pmt.amount)), DataEntry(OrderBookKey, ((orderbook + OrderSplitSymbol) + newOrderId)), DataEntry((OrderAmountKey + newOrderId), pmt.amount), DataEntry((OrderOwnerKey + newOrderId), toString(i.caller)), DataEntry((OrderHeightKey + newOrderId), height)])
194194 }
195195
196196
197197
198198 @Callable(i)
199199 func cancelOrder (orderId) = {
200200 let orderbook = getOrderBook()
201201 let owner = getOrderOwner(orderId)
202202 let amount = getOrderAmount(orderId)
203203 if ((owner != toString(i.caller)))
204204 then throw("permission denied")
205205 else {
206206 let newOrderBookOnePart = split(orderbook, (OrderSplitSymbol + orderId))[0]
207207 let newOrderBookTwoPart = split(orderbook, (OrderSplitSymbol + orderId))[1]
208208 ScriptResult(WriteSet([DataEntry(OrderBookAmountKey, (getOrderBookAmount() - amount)), DataEntry(OrderBookKey, (newOrderBookOnePart + newOrderBookTwoPart)), DataEntry((OrderAmountKey + orderId), 0)]), TransferSet([ScriptTransfer(i.caller, amount, unit)]))
209209 }
210210 }
211211
212212
213213
214214 @Callable(i)
215215 func executeOrder () = {
216216 let orderbook = getOrderbookSnapshot()
217217 let orderId = split(orderbook, OrderSplitSymbol)[1]
218218 let orderAmount = getOrderAmount(orderId)
219219 let priceNeutrino = getPrice()
220220 let reserve = getReserve()
221221 let supply = getNeutrinoSupply()
222222 let surplus = ((reserve * priceNeutrino) - supply)
223223 if ((orderAmount == 0))
224224 then {
225225 let newOrderBookTwoPart = split(orderbook, (orderId + OrderSplitSymbol))[1]
226226 ScriptResult(WriteSet([DataEntry(OrderbookSnapshotKey, newOrderBookTwoPart)]), TransferSet([ScriptTransfer(i.caller, orderAmount, NeutrinoAssetId)]))
227227 }
228228 else if ((0 >= surplus))
229229 then throw("surplus is less than zero")
230230 else if ((surplus >= orderAmount))
231231 then {
232232 let newOrderbookSnapshot = split(orderbook, (orderId + OrderSplitSymbol))[1]
233233 let actualOrderbook = getOrderBook()
234234 let newActualOrderBookOnePart = split(actualOrderbook, (OrderSplitSymbol + orderId))[0]
235235 let newActualOrderBookTwoPart = split(actualOrderbook, (OrderSplitSymbol + orderId))[1]
236236 ScriptResult(WriteSet([DataEntry(OrderBookAmountKey, (getOrderBookAmount() - orderAmount)), DataEntry(OrderBookKey, (newActualOrderBookOnePart + newActualOrderBookTwoPart)), DataEntry(OrderbookSnapshotKey, newOrderbookSnapshot), DataEntry((OrderAmountKey + orderId), 0)]), TransferSet([ScriptTransfer(i.caller, orderAmount, NeutrinoAssetId)]))
237237 }
238238 else ScriptResult(WriteSet([DataEntry(OrderBookAmountKey, (getOrderBookAmount() - surplus)), DataEntry((OrderAmountKey + orderId), (orderAmount - surplus))]), TransferSet([ScriptTransfer(i.caller, surplus, NeutrinoAssetId)]))
239239 }
240240
241241
242242
243243 @Callable(i)
244244 func calculateSurplusAndCreateSnapshot () = {
245245 let priceNeutrino = getPrice()
246246 let reserve = getReserve()
247247 let supply = getNeutrinoSupply()
248248 let surplus = ((reserve * priceNeutrino) - supply)
249249 if (if ((0 >= surplus))
250250 then true
251251 else (MinimalSurplus > surplus))
252252 then throw("surplus is less minimum")
253253 else ScriptResult(WriteSet([DataEntry(OrderBookAmountSnapshotKey, getOrderBookAmount()), DataEntry(SurplusBlockKey, height), DataEntry(SurplusKey, surplus)]), TransferSet([ScriptTransfer(i.caller, surplus, NeutrinoAssetId)]))
254254 }
255255
256256
257257
258258 @Callable(i)
259259 func snapshotNeutrino () = {
260260 let userNeutrinoBalance = assetBalance(i.caller, NeutrinoAssetId)
261261 let userBondBalance = assetBalance(i.caller, BondAssetId)
262262 let amount = (userBondBalance + userNeutrinoBalance)
263263 let id = toBase58String(keccak256(((toBytes(amount) + i.caller.bytes) + toBytes(height))))
264264 if ((getLockNeutrinoOwner(id) != NONE))
265265 then throw("id exists")
266266 else WriteSet([DataEntry((LockNeutrinoAmountKey + id), amount), DataEntry((LockNeutrinoBlockKey + id), height), DataEntry((LockNeutrinoOwnerKey + id), toString(i.caller))])
267267 }
268268
269269
270270
271271 @Callable(i)
272272 func getNewNeutrino (id) = {
273273 let userNeutrinoBalance = assetBalance(i.caller, NeutrinoAssetId)
274274 let userBondBalance = assetBalance(i.caller, BondAssetId)
275275 let orderbook = getOrderbookSnapshot()
276276 let priceNeutrino = getPrice()
277277 let reserve = getReserve()
278278 let supplyNeutrino = getNeutrinoSupply()
279279 let supplyBond = getBondSupply()
280280 let allowBond = (supplyBond - getOrderBookAmountSnapshot())
281281 let surplus = ((reserve * priceNeutrino) - supplyNeutrino)
282282 let surplusBlock = getSurplusBlock()
283283 let block = getLockNeutrinoBlock(id)
284284 let amount = getLockNeutrinoAmount(id)
285285 if ((0 >= surplus))
286286 then throw("surplus is less than zero")
287287 else if ((block >= surplusBlock))
288288 then throw("wait new snapshot")
289289 else if (((userBondBalance + userNeutrinoBalance) != amount))
290290 then throw("invalid balance snapshot")
291291 else if ((orderbook == NONE))
292292 then ScriptResult(WriteSet([DataEntry((LockNeutrinoAmountKey + id), 0), DataEntry((LockNeutrinoBlockKey + id), 0)]), TransferSet([ScriptTransfer(i.caller, ((surplus * amount) / (supplyNeutrino + allowBond)), NeutrinoAssetId)]))
293293 else throw("orderbook nor empty")
294294 }
295295
296296

github/deemru/w8io/169f3d6 
91.65 ms