tx · GnJLk4R2TyAT8vLiFzUAjFo3SuyqoyPQhxh1kecQPkp1

3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN:  -1.00000000 Waves

2019.08.30 13:11 [653847] smart asset 3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN > SELF 0.00000000 AAAAAA Smart

{ "type": 15, "id": "GnJLk4R2TyAT8vLiFzUAjFo3SuyqoyPQhxh1kecQPkp1", "fee": 100000000, "feeAssetId": null, "timestamp": 1567159913111, "version": 1, "sender": "3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN", "senderPublicKey": "HdT6SidnMsevqyJszfDFydCQ9gcL3FBHks3e7hbdAqoS", "proofs": [ "3NDB6ECXmaJCvy1dkDHBKWJ4294AhGHJ1b9LWChVENmhxtbmza96AwtEQwramBg6oMWQXxKgggEXtLc3G6jwvtmw" ], "assetId": "BvaMEHy8zhcQpv2JvPCQmecZNrfqQXzyJkXXDGPMrjZ3", "script": "base64:AwQAAAAFUkZCSWQBAAAAIAMz/gGnCcUK/p+p0VnirlfSe3D1csGqcNtLG5ZdEgaWBAAAABNtaW5pbWFsQW1vdW50VG9CdXJuCQAAaQAAAAIIBQAAAAR0aGlzAAAACHF1YW50aXR5AAAAAAAAAABkBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBAAAAARidXJuBQAAAAckbWF0Y2gwAwkAAGYAAAACBQAAABNtaW5pbWFsQW1vdW50VG9CdXJuCAUAAAAEYnVybgAAAAhxdWFudGl0eQkAAAIAAAABAgAAAD1Zb3UgY2FuIGJ1cm4gb25seSAxIHBlcmNlbnQgKG9yIG1vcmUpIG9mIGN1cnJlbnQgdG90YWwgc3VwcGx5BgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAHcmF0ZU1pbgkAAGsAAAADAAAAAAAF9eEACAkBAAAAB2V4dHJhY3QAAAABCQAD7AAAAAEFAAAABVJGQklkAAAACHF1YW50aXR5CAUAAAAEdGhpcwAAAAhxdWFudGl0eQQAAAAIcmF0ZURpZmYJAABrAAAAAwAAAAAABfXhAAgFAAAAAWUAAAAFcHJpY2UIBQAAAAFlAAAABmFtb3VudAMDAwkAAAAAAAACCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAUAAAAFUkZCSWQGCQAAAAAAAAIICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAUAAAAFUkZCSWQJAAAAAAAAAggFAAAAAWUAAAAFcHJpY2UFAAAAB3JhdGVNaW4HBgkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAHpUaGlzIHRva2VuIGNhbiBiZSB0cmFkZWQgd2l0aCBSRkIgVG9rZW4gb25seSBhdCByYXRlIGNhbGN1bGF0ZWQgd2l0aCBmb3JtdWxhOiBSRkIgVG90YWwgU3VwcGx5IC8gUkZCIFNtYXJ0IFRvdGFsIFN1cHBseSA9IAkAAaQAAAABBQAAAAdyYXRlTWluAgAAAA4sIHJhdGUgZGlmZiBpcwkAAaQAAAABBQAAAAhyYXRlRGlmZgYLW1C3", "chainId": 84, "height": 653847, "spentComplexity": 0 } View: original | compacted Prev: EuaFdmK5fBRDd8c7PcsPG9xsyK18F6fyKLUztpympGZn Next: H12wPUsE1uUpUQfEcSzqXC3VhZw2k9LLZF94HRiw5Jb6 Diff:
OldNewDifferences
99 else true
1010 case e: ExchangeTransaction =>
1111 let rateMin = fraction(100000000, extract(assetInfo(RFBId)).quantity, this.quantity)
12- let rateDiff = (rateMin - fraction(100000000, e.price, e.amount))
12+ let rateDiff = fraction(100000000, e.price, e.amount)
1313 if (if (if ((e.sellOrder.assetPair.priceAsset == RFBId))
1414 then true
1515 else (e.sellOrder.assetPair.amountAsset == RFBId))
1616 then (e.price == rateMin)
1717 else false)
1818 then true
19- else throw(((("This token can be traded with RFB Token only at rate calculated with formula: RFB Total Supply / RFB Smart Total Supply = " + toString(rateMin)) + ", rate diff is") + toString(rateMin)))
19+ else throw(((("This token can be traded with RFB Token only at rate calculated with formula: RFB Total Supply / RFB Smart Total Supply = " + toString(rateMin)) + ", rate diff is") + toString(rateDiff)))
2020 case _ =>
2121 true
2222 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let RFBId = base58'DWCuXbcXtrCkSKNX3D2uxh7zHh72SN7tC5eQXK92tC5'
44 let minimalAmountToBurn = (this.quantity / 100)
55 match tx {
66 case burn: BurnTransaction =>
77 if ((minimalAmountToBurn > burn.quantity))
88 then throw("You can burn only 1 percent (or more) of current total supply")
99 else true
1010 case e: ExchangeTransaction =>
1111 let rateMin = fraction(100000000, extract(assetInfo(RFBId)).quantity, this.quantity)
12- let rateDiff = (rateMin - fraction(100000000, e.price, e.amount))
12+ let rateDiff = fraction(100000000, e.price, e.amount)
1313 if (if (if ((e.sellOrder.assetPair.priceAsset == RFBId))
1414 then true
1515 else (e.sellOrder.assetPair.amountAsset == RFBId))
1616 then (e.price == rateMin)
1717 else false)
1818 then true
19- else throw(((("This token can be traded with RFB Token only at rate calculated with formula: RFB Total Supply / RFB Smart Total Supply = " + toString(rateMin)) + ", rate diff is") + toString(rateMin)))
19+ else throw(((("This token can be traded with RFB Token only at rate calculated with formula: RFB Total Supply / RFB Smart Total Supply = " + toString(rateMin)) + ", rate diff is") + toString(rateDiff)))
2020 case _ =>
2121 true
2222 }

github/deemru/w8io/026f985 
47.98 ms