tx · 7fyujeKV1ECFt5Q4GvcZasj7q81fzDGSGZu26MdUY7ku
3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN: -1.00000000 Waves
2019.08.28 21:33 [651416] smart asset 3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN > SELF 0.00000000 AAAAAA Smart
{
"type": 15,
"id": "7fyujeKV1ECFt5Q4GvcZasj7q81fzDGSGZu26MdUY7ku",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1567017204424,
"version": 1,
"sender": "3NCujHULyYqqR6K5M8UDFmEqUXrk7dhGgSN",
"senderPublicKey": "HdT6SidnMsevqyJszfDFydCQ9gcL3FBHks3e7hbdAqoS",
"proofs": [
"2VJviTeo8Q1Ny1NiuUaXbj8dq6bM7Z2fZ7kJR1Q5upQHzbdAm2iQCuihdq2M6dBgrHeQv1ZZZQDjLN7c6ewAFgQU"
],
"assetId": "BvaMEHy8zhcQpv2JvPCQmecZNrfqQXzyJkXXDGPMrjZ3",
"script": "base64:AwQAAAAGQUxBTElkAQAAACADM/4BpwnFCv6fqdFZ4q5X0ntw9XLBqnDbSxuWXRIGlgQAAAATbWluaW1hbEFtb3VudFRvQnVybgkAAGkAAAACCAUAAAAEdGhpcwAAAAhxdWFudGl0eQAAAAAAAAAAZAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAAEYnVybgUAAAAHJG1hdGNoMAMJAABmAAAAAgUAAAATbWluaW1hbEFtb3VudFRvQnVybggFAAAABGJ1cm4AAAAIcXVhbnRpdHkJAAACAAAAAQIAAAA9WW91IGNhbiBidXJuIG9ubHkgMSBwZXJjZW50IChvciBtb3JlKSBvZiBjdXJyZW50IHRvdGFsIHN1cHBseQYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAABHJhdGUJAABrAAAAAwAAAAAABfXhAAgJAQAAAAdleHRyYWN0AAAAAQkAA+wAAAABBQAAAAZBTEFMSWQAAAAIcXVhbnRpdHkIBQAAAAR0aGlzAAAACHF1YW50aXR5BAAAAAhyYXRlRGlmZgkAAGUAAAACBQAAAARyYXRlCQAAawAAAAMAAAAAAAX14QAIBQAAAAFlAAAABXByaWNlCAUAAAABZQAAAAZhbW91bnQDAwMJAAAAAAAAAggICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQFAAAABkFMQUxJZAYJAAAAAAAAAggICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0BQAAAAZBTEFMSWQJAABmAAAAAgUAAAAIcmF0ZURpZmYA/////////5wHCQAAZgAAAAIAAAAAAAAAAGQFAAAACHJhdGVEaWZmBwZ1x1Uo",
"chainId": 84,
"height": 651416,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: FBhQ7hrL9p3gNprkU2PaULWUqWmMh9DLHr3owfNYkL3H
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let ALALId = base58'DWCuXbcXtrCkSKNX3D2uxh7zHh72SN7tC5eQXK92tC5' |
---|
| 4 | + | let minimalAmountToBurn = (this.quantity / 100) |
---|
| 5 | + | match tx { |
---|
| 6 | + | case burn: BurnTransaction => |
---|
| 7 | + | if ((minimalAmountToBurn > burn.quantity)) |
---|
| 8 | + | then throw("You can burn only 1 percent (or more) of current total supply") |
---|
| 9 | + | else true |
---|
| 10 | + | case e: ExchangeTransaction => |
---|
| 11 | + | let rate = fraction(100000000, extract(assetInfo(ALALId)).quantity, this.quantity) |
---|
| 12 | + | let rateDiff = (rate - fraction(100000000, e.price, e.amount)) |
---|
| 13 | + | if (if (if ((e.sellOrder.assetPair.priceAsset == ALALId)) |
---|
| 14 | + | then true |
---|
| 15 | + | else (e.sellOrder.assetPair.amountAsset == ALALId)) |
---|
| 16 | + | then (rateDiff > -100) |
---|
| 17 | + | else false) |
---|
| 18 | + | then (100 > rateDiff) |
---|
| 19 | + | else false |
---|
| 20 | + | case _ => |
---|
| 21 | + | true |
---|
| 22 | + | } |
---|