tx · 5YuUqMPnpAsvLUaB7cm9HyEKTy3hcdjTQumyEZTuvcbp

3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN:  -1.00000000 Waves

2019.08.30 12:49 [653828] smart asset 3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN > SELF 0.00000000 AAAAAA Smart

{ "type": 15, "id": "5YuUqMPnpAsvLUaB7cm9HyEKTy3hcdjTQumyEZTuvcbp", "fee": 100000000, "feeAssetId": null, "timestamp": 1567158602224, "version": 1, "sender": "3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN", "senderPublicKey": "HdT6SidnMsevqyJszfDFydCQ9gcL3FBHks3e7hbdAqoS", "proofs": [ "57RjnnQEAj2zgwbFJJHMRCTvoP1RGJviyXVDMXHZ7AfMBL9Whe1oxawNfEUJ459RMA4ptEkLkG5tYEW9v8XyjtHn" ], "assetId": "BvaMEHy8zhcQpv2JvPCQmecZNrfqQXzyJkXXDGPMrjZ3", "script": "base64:AwQAAAAFUkZCSWQBAAAAIAMz/gGnCcUK/p+p0VnirlfSe3D1csGqcNtLG5ZdEgaWBAAAABNtaW5pbWFsQW1vdW50VG9CdXJuCQAAaQAAAAIIBQAAAAR0aGlzAAAACHF1YW50aXR5AAAAAAAAAABkBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBAAAAARidXJuBQAAAAckbWF0Y2gwAwkAAGYAAAACBQAAABNtaW5pbWFsQW1vdW50VG9CdXJuCAUAAAAEYnVybgAAAAhxdWFudGl0eQkAAAIAAAABAgAAAD1Zb3UgY2FuIGJ1cm4gb25seSAxIHBlcmNlbnQgKG9yIG1vcmUpIG9mIGN1cnJlbnQgdG90YWwgc3VwcGx5BgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAHcmF0ZU1pbgkAAGsAAAADAAAAAAAF9eEACAkBAAAAB2V4dHJhY3QAAAABCQAD7AAAAAEFAAAABVJGQklkAAAACHF1YW50aXR5CAUAAAAEdGhpcwAAAAhxdWFudGl0eQMDAwkAAAAAAAACCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAUAAAAFUkZCSWQGCQAAAAAAAAIICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAUAAAAFUkZCSWQJAAAAAAAAAggFAAAAAWUAAAAFcHJpY2UFAAAAB3JhdGVNaW4HBgkAAAIAAAABAgAAAHdUaGlzIHRva2VuIGNhbiBiZSB0cmFkZWQgd2l0aCBSRkIgVG9rZW4gb25seSBhdCByYXRlIGNhbGN1bGF0ZWQgd2l0aCBmb3JtdWxhOiBSRkIgVG90YWwgU3VwcGx5IC8gUkZCIFNtYXJ0IFRvdGFsIFN1cHBseQbVKFNB", "chainId": 84, "height": 653828, "spentComplexity": 0 } View: original | compacted Prev: YQXVrvAoV5ugdjh69718A5GGpubUk9hrwaiUx56Fjgf Next: 5Ewnb6CJE5fUGSyASYeETGVVj2BnhgKuBm1ZcVUpA778 Diff:
OldNewDifferences
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let RFBId = base58'DWCuXbcXtrCkSKNX3D2uxh7zHh72SN7tC5eQXK92tC5'
44 let minimalAmountToBurn = (this.quantity / 100)
5-let assetId = base58'BvaMEHy8zhcQpv2JvPCQmecZNrfqQXzyJkXXDGPMrjZ3'
65 match tx {
76 case burn: BurnTransaction =>
87 if ((minimalAmountToBurn > burn.quantity))
98 then throw("You can burn only 1 percent (or more) of current total supply")
109 else true
11- case ex: ExchangeTransaction =>
12- let pair = AssetPair(assetId, unit)
13- let rate = fraction(1000000000, extract(assetInfo(RFBId)).quantity, this.quantity)
14- let rateDiff = (rate - fraction(100000000, ex.price, ex.amount))
15- if (if ((ex.buyOrder.assetPair == pair))
16- then (rateDiff > -100)
10+ case e: ExchangeTransaction =>
11+ let rateMin = fraction(100000000, extract(assetInfo(RFBId)).quantity, this.quantity)
12+ if (if (if ((e.sellOrder.assetPair.priceAsset == RFBId))
13+ then true
14+ else (e.sellOrder.assetPair.amountAsset == RFBId))
15+ then (e.price == rateMin)
1716 else false)
18- then (100 > rateDiff)
19- else false
17+ then true
18+ else throw("This token can be traded with RFB Token only at rate calculated with formula: RFB Total Supply / RFB Smart Total Supply")
2019 case _ =>
2120 true
2221 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let RFBId = base58'DWCuXbcXtrCkSKNX3D2uxh7zHh72SN7tC5eQXK92tC5'
44 let minimalAmountToBurn = (this.quantity / 100)
5-let assetId = base58'BvaMEHy8zhcQpv2JvPCQmecZNrfqQXzyJkXXDGPMrjZ3'
65 match tx {
76 case burn: BurnTransaction =>
87 if ((minimalAmountToBurn > burn.quantity))
98 then throw("You can burn only 1 percent (or more) of current total supply")
109 else true
11- case ex: ExchangeTransaction =>
12- let pair = AssetPair(assetId, unit)
13- let rate = fraction(1000000000, extract(assetInfo(RFBId)).quantity, this.quantity)
14- let rateDiff = (rate - fraction(100000000, ex.price, ex.amount))
15- if (if ((ex.buyOrder.assetPair == pair))
16- then (rateDiff > -100)
10+ case e: ExchangeTransaction =>
11+ let rateMin = fraction(100000000, extract(assetInfo(RFBId)).quantity, this.quantity)
12+ if (if (if ((e.sellOrder.assetPair.priceAsset == RFBId))
13+ then true
14+ else (e.sellOrder.assetPair.amountAsset == RFBId))
15+ then (e.price == rateMin)
1716 else false)
18- then (100 > rateDiff)
19- else false
17+ then true
18+ else throw("This token can be traded with RFB Token only at rate calculated with formula: RFB Total Supply / RFB Smart Total Supply")
2019 case _ =>
2120 true
2221 }

github/deemru/w8io/026f985 
50.97 ms