tx · EMz37TNF4W8Rb9wH2PH6yXpZBTqgErTwiVGyJLr5MrwE
3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH: -0.01000000 Waves
2021.09.05 17:33 [1689873] smart account 3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH > SELF 0.00000000 Waves
{
"type": 13,
"id": "EMz37TNF4W8Rb9wH2PH6yXpZBTqgErTwiVGyJLr5MrwE",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1630852456585,
"version": 2,
"chainId": 84,
"sender": "3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH",
"senderPublicKey": "6it1s6XyHkFTbzgCJPXSeHjyLYixDHy6hJgzzfbntDGB",
"proofs": [
"3C4C99o9SW66x6H7PUQjiw74a5dWcF3crUigkgg1gvaJkWE5v77eQc6dnKcn6PzJedaxM5v4NDfq4mrvyQtb3yYC"
],
"script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQEAAAACAAAAAAZtZHN0aWQBAAAAIAYu1kRFDCnSZz0aQgjpMvwys70UJVtRnhDUh1FQYpqKAQAAAAtpc1BheW1lbnRPawAAAAEAAAABaQMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABRQYXltZW50IG5vdCBhdHRhY2hlZAQAAAABcAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAHJG1hdGNoMAgFAAAAAXAAAAAHYXNzZXRJZAkAAGcAAAACCAUAAAABcAAAAAZhbW91bnQAAAAAAAX14QAAAAACAAAAAWkBAAAAB2J1eW1kc3QAAAABAAAACXRoZVN0cmluZwMJAQAAAAtpc1BheW1lbnRPawAAAAEFAAAAAWkEAAAAAnBwCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAARhbW50CAUAAAACcHAAAAAGYW1vdW50BAAAAAptZHN0YW1vdW50CQAAaQAAAAIJAABoAAAAAgUAAAAEYW1udAAAAAAAAAATiAAAAAAABfXhAAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAACm1kc3RhbW91bnQFAAAABm1kc3RpZAUAAAADbmlsCQAAAgAAAAECAAAAHVdyb25nIHBheW1lbnQgYW1vdW50IG9yIGFzc2V0AAAAAWkBAAAACmNoYW5nZXJhdGUAAAABAAAABHJhdGUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAB3VzZHJhdGUFAAAABHJhdGUFAAAAA25pbAAAAADac/fz",
"height": 1689873,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5aANPEHYvxFLdAVJAogYEXigCk6sxicSTYqATCVCmmLp
Next: EQQLPeXjHcMoDJZHwRqKjDHCZRaDm9VNyeKHf8DYy9KD
Diff:
Old | New | | Differences |
---|
25 | 25 | | else throw("Wrong payment amount or asset") |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
| 28 | + | |
---|
| 29 | + | @Callable(i) |
---|
| 30 | + | func changerate (rate) = [IntegerEntry("usdrate", rate)] |
---|
| 31 | + | |
---|
| 32 | + | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let mdstid = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT' |
---|
5 | 5 | | |
---|
6 | 6 | | func isPaymentOk (i) = if ((size(i.payments) == 0)) |
---|
7 | 7 | | then throw("Payment not attached") |
---|
8 | 8 | | else { |
---|
9 | 9 | | let p = i.payments[0] |
---|
10 | 10 | | match p.assetId { |
---|
11 | 11 | | case _ => |
---|
12 | 12 | | (p.amount >= 100000000) |
---|
13 | 13 | | } |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | 18 | | func buymdst (theString) = if (isPaymentOk(i)) |
---|
19 | 19 | | then { |
---|
20 | 20 | | let pp = i.payments[0] |
---|
21 | 21 | | let amnt = pp.amount |
---|
22 | 22 | | let mdstamount = ((amnt * 5000) / 100000000) |
---|
23 | 23 | | [ScriptTransfer(i.caller, mdstamount, mdstid)] |
---|
24 | 24 | | } |
---|
25 | 25 | | else throw("Wrong payment amount or asset") |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
| 28 | + | |
---|
| 29 | + | @Callable(i) |
---|
| 30 | + | func changerate (rate) = [IntegerEntry("usdrate", rate)] |
---|
| 31 | + | |
---|
| 32 | + | |
---|