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:
OldNewDifferences
2525 else throw("Wrong payment amount or asset")
2626
2727
28+
29+@Callable(i)
30+func changerate (rate) = [IntegerEntry("usdrate", rate)]
31+
32+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let mdstid = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT'
55
66 func isPaymentOk (i) = if ((size(i.payments) == 0))
77 then throw("Payment not attached")
88 else {
99 let p = i.payments[0]
1010 match p.assetId {
1111 case _ =>
1212 (p.amount >= 100000000)
1313 }
1414 }
1515
1616
1717 @Callable(i)
1818 func buymdst (theString) = if (isPaymentOk(i))
1919 then {
2020 let pp = i.payments[0]
2121 let amnt = pp.amount
2222 let mdstamount = ((amnt * 5000) / 100000000)
2323 [ScriptTransfer(i.caller, mdstamount, mdstid)]
2424 }
2525 else throw("Wrong payment amount or asset")
2626
2727
28+
29+@Callable(i)
30+func changerate (rate) = [IntegerEntry("usdrate", rate)]
31+
32+

github/deemru/w8io/026f985 
22.37 ms