tx · H7KX4rq7gVeF7xNe6TybegJ6DXweqTzZp8xQz6f4yeUk

3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz:  -1.00000000 Waves

2019.09.13 01:24 [673538] smart asset 3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz > SELF 0.00000000 time3

{ "type": 15, "id": "H7KX4rq7gVeF7xNe6TybegJ6DXweqTzZp8xQz6f4yeUk", "fee": 100000000, "feeAssetId": null, "timestamp": 1568327093480, "version": 1, "sender": "3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz", "senderPublicKey": "8xbFEr8yZ5HF64v8tiadoqScjuYSatXx8ceugsivh1zn", "proofs": [ "5Jpsv9nizB1vgSqy5rUuE6P4AAVXAWSHEM5JabTZeePX9xGZnd2MDRnw4vYMms3SgnG2nPiJ88HyQjs6nBfwqjP7" ], "assetId": "J6C8iuvmPWE7erepvWeYQisAy6p2Wf1uYVB2cVqriC7", "script": "base64:AgQAAAATbWluaW11bVdhdmVzQmFsYW5jZQAAAAAABfXhAAQAAAAQbW92ZVRpbWVJbkJsb2NrcwAAAAAAAAAAAgQAAAAQbWluaW1hbEZlZVRvTW92ZQAAAAAAAJiWgAQAAAAQbWluaW1hbEZlZVRvQnVybgAAAAAAAvrwgAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAABHR4SWQIBQAAAAF0AAAACmF0dGFjaG1lbnQEAAAAHGN1cnJlbnRSZWNpcGllbnRXYXZlc0JhbGFuY2UJAQAAAAx3YXZlc0JhbGFuY2UAAAABCAUAAAABdAAAAAlyZWNpcGllbnQEAAAAC3RyYW5zYWN0aW9uCQAD6AAAAAEJAQAAAAdleHRyYWN0AAAAAQgFAAAAAXQAAAAHYXNzZXRJZAQAAAAHJG1hdGNoMQUAAAALdHJhbnNhY3Rpb24DCQAAAQAAAAIFAAAAByRtY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AAAAHaXNzdWVUeAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAARQmFkIGlzc3VlIHR4IHR5cGUJAAACAAAAAQIAAAAgWW91IG9ubHkgY2FuIHRyYW5zZmVyIHRoaXMgdG9rZW7gyQIs", "chainId": 84, "height": 673538, "spentComplexity": 0 } View: original | compacted Prev: 5SPMfKjknpBtWvAQAd8rB4Hvk1dneGbVi5btmqgfGVNz Next: 5gSirq3C5jx1DH1nSct1Z6DT8TJKP6TS91TDAkuSLEce Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 2 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
3-let minimumWavesBalance = 1000000000
3+let minimumWavesBalance = 100000000
44 let moveTimeInBlocks = 2
55 let minimalFeeToMove = 10000000
66 let minimalFeeToBurn = 50000000
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 2 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
3-let minimumWavesBalance = 1000000000
3+let minimumWavesBalance = 100000000
44 let moveTimeInBlocks = 2
55 let minimalFeeToMove = 10000000
66 let minimalFeeToBurn = 50000000
77 match tx {
88 case t: TransferTransaction =>
99 let txId = t.attachment
1010 let currentRecipientWavesBalance = wavesBalance(t.recipient)
1111 let transaction = transactionById(extract(t.assetId))
1212 match transaction {
1313 case issueTx: IssueTransaction =>
1414 let transactionByIssuer = (t.senderPublicKey == issueTx.senderPublicKey)
1515 if (transactionByIssuer)
1616 then if ((minimumWavesBalance > currentRecipientWavesBalance))
1717 then throw("Current balance is less than minimalWavesBalance")
1818 else true
1919 else if ((32 > size(t.attachment)))
2020 then throw("Attachment should contain transaction id ")
2121 else {
2222 let receiveTx = transactionById(txId)
2323 match receiveTx {
2424 case recTx: MassTransferTransaction|TransferTransaction =>
2525 let receivedBlockNumber = extract(transactionHeightById(recTx.id))
2626 let receivedAssetInLastNBlocks = if ((moveTimeInBlocks >= (height - receivedBlockNumber)))
2727 then (t.assetId == recTx.assetId)
2828 else false
2929 let feeMore1Waves = (t.fee >= minimalFeeToMove)
3030 if (if (!(receivedAssetInLastNBlocks))
3131 then !(feeMore1Waves)
3232 else false)
3333 then throw("You got potato long time ago, now you have to pay 1 WAVES fee")
3434 else if (receivedAssetInLastNBlocks)
3535 then true
3636 else feeMore1Waves
3737 case _ =>
3838 throw("Receive tx should be a transfer")
3939 }
4040 }
4141 case _ =>
4242 throw("Not issue tx")
4343 }
4444 case burn: BurnTransaction =>
4545 if ((minimalFeeToBurn > burn.fee))
4646 then throw("You have to pay 5 WAVES to burn this token")
4747 else true
4848 case mass: SetAssetScriptTransaction|MassTransferTransaction =>
4949 let transaction = transactionById(extract(mass.assetId))
5050 match transaction {
5151 case issueTx: IssueTransaction =>
5252 (mass.senderPublicKey == issueTx.senderPublicKey)
5353 case _ =>
5454 throw("Bad issue tx type")
5555 }
5656 case _ =>
5757 throw("You only can transfer this token")
5858 }

github/deemru/w8io/169f3d6 
23.41 ms