tx · 3rwubdqL6j7gaQgkV1CDCT8bHBmJ9Nn6TE8uDk3Kdii5
3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH: -0.01400000 Waves
2021.05.17 02:03 [1528871] smart account 3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH > SELF 0.00000000 Waves
{
"type": 13,
"id": "3rwubdqL6j7gaQgkV1CDCT8bHBmJ9Nn6TE8uDk3Kdii5",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1621206250033,
"version": 2,
"chainId": 84,
"sender": "3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH",
"senderPublicKey": "6it1s6XyHkFTbzgCJPXSeHjyLYixDHy6hJgzzfbntDGB",
"proofs": [
"4uz6H6X1EP1AcQHnH9QwpRRb366dhNGBsL2HWW1EqLL4cURwS56kYyNzxAt7v56SdEZxnbPsnFQrcap62gNTvqzP"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAABAAAAAAGbWlkaUlkAQAAACAGLtZERQwp0mc9GkII6TL8MrO9FCVbUZ4Q1IdRUGKaigAAAAAEZGF0ZQgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAAAAAABmFtTWlkaQAAAAAAAAAAAAEAAAALaXNQYXltZW50T2sAAAABAAAAAWkDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAUUGF5bWVudCBub3QgYXR0YWNoZWQEAAAAAXAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2Fzc2V0SWQJAABnAAAAAgAAABtI61fgAAgFAAAAAXAAAAAGYW1vdW50AAAAAQAAAAFpAQAAAAdidXltaWRpAAAAAQAAAAR3aGF0AwkBAAAAC2lzUGF5bWVudE9rAAAAAQUAAAABaQQAAAACcHAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAABGFtbnQIBQAAAAJwcAAAAAZhbW91bnQEAAAACGVsQW1vdW50CQAAaAAAAAIJAABpAAAAAgUAAAAEYW1udAAAAAAAAAAnEAAAAAAAAAAXcAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAACGVsQW1vdW50BQAAAAZtaWRpSWQFAAAAA25pbAkAAAIAAAABAgAAAB1Xcm9uZyBwYXltZW50IGFtb3VudCBvciBhc3NldAAAAACzCEZc",
"height": 1528871,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: GgDHAPCZoXsvyNpmrh134vJ3UwJ3ZrAJnNdPwuT6o6pp
Next: 7y8oygm4SyCDPPX3mt1SmbA2fMejRyx3cQE2dGr991tR
Diff:
Old | New | | Differences |
---|
21 | 21 | | then { |
---|
22 | 22 | | let i = e.payments[0] |
---|
23 | 23 | | let j = i.amount |
---|
24 | | - | let k = ((j / 100000000) * 6000) |
---|
| 24 | + | let k = ((j / 10000) * 6000) |
---|
25 | 25 | | [ScriptTransfer(e.caller, k, a)] |
---|
26 | 26 | | } |
---|
27 | 27 | | else throw("Wrong payment amount or asset") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT' |
---|
5 | 5 | | |
---|
6 | 6 | | let b = lastBlock.timestamp |
---|
7 | 7 | | |
---|
8 | 8 | | let c = 0 |
---|
9 | 9 | | |
---|
10 | 10 | | func d (e) = if ((size(e.payments) == 0)) |
---|
11 | 11 | | then throw("Payment not attached") |
---|
12 | 12 | | else { |
---|
13 | 13 | | let f = e.payments[0] |
---|
14 | 14 | | let g = f.assetId |
---|
15 | 15 | | (30000000000000 >= f.amount) |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Callable(e) |
---|
20 | 20 | | func buymidi (h) = if (d(e)) |
---|
21 | 21 | | then { |
---|
22 | 22 | | let i = e.payments[0] |
---|
23 | 23 | | let j = i.amount |
---|
24 | | - | let k = ((j / 100000000) * 6000) |
---|
| 24 | + | let k = ((j / 10000) * 6000) |
---|
25 | 25 | | [ScriptTransfer(e.caller, k, a)] |
---|
26 | 26 | | } |
---|
27 | 27 | | else throw("Wrong payment amount or asset") |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|