tx · BPx6ZqErW9PSEpC8ZuWiudXZCu4ZfxXJ4gZqXPrNAwWY
3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH: -0.01000000 Waves
2021.10.31 04:40 [1769842] smart account 3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH > SELF 0.00000000 Waves
{
"type": 13,
"id": "BPx6ZqErW9PSEpC8ZuWiudXZCu4ZfxXJ4gZqXPrNAwWY",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1635644497281,
"version": 2,
"chainId": 84,
"sender": "3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH",
"senderPublicKey": "6it1s6XyHkFTbzgCJPXSeHjyLYixDHy6hJgzzfbntDGB",
"proofs": [
"5qByiqVrDjKgciPnuBmHhaogu7uubvB8HBDjTT2sBEdMm5br5jgoWXGMgwiabYmYuX1wdAGrcVQmFivNaeptfNHq"
],
"script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQEAAAAFAAAAAAZtZHN0aWQBAAAAIAYu1kRFDCnSZz0aQgjpMvwys70UJVtRnhDUh1FQYpqKAAAAAAtnb29kYWNjb3VudAIAAAAjM016WHFvMnJCeGMzWEVLUFZjWUhEcnNnUDdqbUU2Y0dnNkMAAAAADU9yYWNsZUFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVQFgs5g7sHJWLf0iLmoL9RVDbyuM78yCVYAAAAAA3VzZAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAANT3JhY2xlQWRkcmVzcwIAAAAHdXNkcmF0ZQEAAAALaXNQYXltZW50T2sAAAABAAAAAWkDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAUUGF5bWVudCBub3QgYXR0YWNoZWQEAAAAAXAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2Fzc2V0SWQJAABnAAAAAggFAAAAAXAAAAAGYW1vdW50AAAAAAAAmJaAAAAAAgAAAAFpAQAAAAdidXltZHN0AAAAAQAAAAl0aGVTdHJpbmcDCQEAAAALaXNQYXltZW50T2sAAAABBQAAAAFpBAAAAAJwcAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAEYW1udAgFAAAAAnBwAAAABmFtb3VudAQAAAAKbWRzdGFtb3VudAkAAGgAAAACCQAAaAAAAAIJAABpAAAAAgUAAAAEYW1udAAAAAAAAA9CQAUAAAADdXNkAAAAAAAAACcQCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAKbWRzdGFtb3VudAUAAAAGbWRzdGlkBQAAAANuaWwJAAACAAAAAQIAAAAdV3JvbmcgcGF5bWVudCBhbW91bnQgb3IgYXNzZXQAAAABaQEAAAAKY2hhbmdlcmF0ZQAAAAEAAAAEcmF0ZQQAAAAHY29tcGFyZQkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIDCQAAAAAAAAIFAAAAB2NvbXBhcmUFAAAAC2dvb2RhY2NvdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAd1c2RyYXRlBQAAAARyYXRlBQAAAANuaWwJAAACAAAAAQIAAAALQkFEIEFDQ09VTlQAAAAA1g2x6g==",
"height": 1769842,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4HxQjzJKjWTLHKGeps8yGGzEm25jccQvxSkpMWuA6mWf
Next: 2C6pgdwhXuPye7QoDAvuFCztFprwanYLA4NPkScNz7L7
Diff:
Old | New | | Differences |
---|
23 | 23 | | then { |
---|
24 | 24 | | let j = f.payments[0] |
---|
25 | 25 | | let k = j.amount |
---|
26 | | - | let l = (((k / 100000000) * d) * 10000) |
---|
| 26 | + | let l = (((k / 1000000) * d) * 10000) |
---|
27 | 27 | | [ScriptTransfer(f.caller, l, a)] |
---|
28 | 28 | | } |
---|
29 | 29 | | else throw("Wrong payment amount or asset") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT' |
---|
5 | 5 | | |
---|
6 | 6 | | let b = "3MzXqo2rBxc3XEKPVcYHDrsgP7jmE6cGg6C" |
---|
7 | 7 | | |
---|
8 | 8 | | let c = Address(base58'3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH') |
---|
9 | 9 | | |
---|
10 | 10 | | let d = getIntegerValue(c, "usdrate") |
---|
11 | 11 | | |
---|
12 | 12 | | func e (f) = if ((size(f.payments) == 0)) |
---|
13 | 13 | | then throw("Payment not attached") |
---|
14 | 14 | | else { |
---|
15 | 15 | | let g = f.payments[0] |
---|
16 | 16 | | let h = g.assetId |
---|
17 | 17 | | (g.amount >= 10000000) |
---|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
21 | 21 | | @Callable(f) |
---|
22 | 22 | | func buymdst (i) = if (e(f)) |
---|
23 | 23 | | then { |
---|
24 | 24 | | let j = f.payments[0] |
---|
25 | 25 | | let k = j.amount |
---|
26 | | - | let l = (((k / 100000000) * d) * 10000) |
---|
| 26 | + | let l = (((k / 1000000) * d) * 10000) |
---|
27 | 27 | | [ScriptTransfer(f.caller, l, a)] |
---|
28 | 28 | | } |
---|
29 | 29 | | else throw("Wrong payment amount or asset") |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|
33 | 33 | | @Callable(f) |
---|
34 | 34 | | func changerate (m) = { |
---|
35 | 35 | | let n = toString(f.caller) |
---|
36 | 36 | | if ((n == b)) |
---|
37 | 37 | | then [IntegerEntry("usdrate", m)] |
---|
38 | 38 | | else throw("BAD ACCOUNT") |
---|
39 | 39 | | } |
---|
40 | 40 | | |
---|
41 | 41 | | |
---|