tx · AvcTkEKL1gLjM1WFK7hhqM2mS8RpTWDCQVsrRJsMNpZG

3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH:  -0.01000000 Waves

2021.10.31 03:16 [1769755] smart account 3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH > SELF 0.00000000 Waves

{ "type": 13, "id": "AvcTkEKL1gLjM1WFK7hhqM2mS8RpTWDCQVsrRJsMNpZG", "fee": 1000000, "feeAssetId": null, "timestamp": 1635639431987, "version": 2, "chainId": 84, "sender": "3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH", "senderPublicKey": "6it1s6XyHkFTbzgCJPXSeHjyLYixDHy6hJgzzfbntDGB", "proofs": [ "4sYH3JxsA8r6mxnyzqFLPQycnYX4jLzmYsr4tB5LEwPRcV6bt7MMZFokn1as3Fbw6BkDS8ZrZHDAWjEgxwEFmGPQ" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQEAAAAFAAAAAAZtZHN0aWQBAAAAIAYu1kRFDCnSZz0aQgjpMvwys70UJVtRnhDUh1FQYpqKAAAAAAtnb29kYWNjb3VudAIAAAAjM016WHFvMnJCeGMzWEVLUFZjWUhEcnNnUDdqbUU2Y0dnNkMAAAAADU9yYWNsZUFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVQFgs5g7sHJWLf0iLmoL9RVDbyuM78yCVYAAAAAA3VzZAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAANT3JhY2xlQWRkcmVzcwIAAAAHdXNkcmF0ZQEAAAALaXNQYXltZW50T2sAAAABAAAAAWkDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAUUGF5bWVudCBub3QgYXR0YWNoZWQEAAAAAXAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2Fzc2V0SWQJAABnAAAAAggFAAAAAXAAAAAGYW1vdW50AAAAAAAC+vCAAAAAAgAAAAFpAQAAAAdidXltZHN0AAAAAQAAAAl0aGVTdHJpbmcDCQEAAAALaXNQYXltZW50T2sAAAABBQAAAAFpBAAAAAJwcAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAEYW1udAgFAAAAAnBwAAAABmFtb3VudAQAAAAKbWRzdGFtb3VudAkAAGkAAAACCQAAaAAAAAIJAABoAAAAAgUAAAAEYW1udAUAAAADdXNkAAAAAAAAACcQAAAAAAAAACcQCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAKbWRzdGFtb3VudAUAAAAGbWRzdGlkBQAAAANuaWwJAAACAAAAAQIAAAAdV3JvbmcgcGF5bWVudCBhbW91bnQgb3IgYXNzZXQAAAABaQEAAAAKY2hhbmdlcmF0ZQAAAAEAAAAEcmF0ZQQAAAAHY29tcGFyZQkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIDCQAAAAAAAAIFAAAAB2NvbXBhcmUFAAAAC2dvb2RhY2NvdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAd1c2RyYXRlBQAAAARyYXRlBQAAAANuaWwJAAACAAAAAQIAAAALQkFEIEFDQ09VTlQAAAAAp0hgoQ==", "height": 1769755, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BuyRzDRkim4Q7ACxiZUcAEqsuy5mVdjx9kCNznM8fxS4 Next: Fcgsu4BwFaUZusXLk4uidvPnnMb1gmn8B4h19omiMJFa Diff:
OldNewDifferences
1515 let p = i.payments[0]
1616 match p.assetId {
1717 case _ =>
18- (p.amount >= 100000000)
18+ (p.amount >= 50000000)
1919 }
2020 }
2121
2525 then {
2626 let pp = i.payments[0]
2727 let amnt = pp.amount
28- let mdstamount = (((amnt * usd) * 10000) / 100000000)
28+ let mdstamount = (((amnt * usd) * 10000) / 10000)
2929 [ScriptTransfer(i.caller, mdstamount, mdstid)]
3030 }
3131 else throw("Wrong payment amount or asset")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let mdstid = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT'
55
66 let goodaccount = "3MzXqo2rBxc3XEKPVcYHDrsgP7jmE6cGg6C"
77
88 let OracleAddress = Address(base58'3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH')
99
1010 let usd = getIntegerValue(OracleAddress, "usdrate")
1111
1212 func isPaymentOk (i) = if ((size(i.payments) == 0))
1313 then throw("Payment not attached")
1414 else {
1515 let p = i.payments[0]
1616 match p.assetId {
1717 case _ =>
18- (p.amount >= 100000000)
18+ (p.amount >= 50000000)
1919 }
2020 }
2121
2222
2323 @Callable(i)
2424 func buymdst (theString) = if (isPaymentOk(i))
2525 then {
2626 let pp = i.payments[0]
2727 let amnt = pp.amount
28- let mdstamount = (((amnt * usd) * 10000) / 100000000)
28+ let mdstamount = (((amnt * usd) * 10000) / 10000)
2929 [ScriptTransfer(i.caller, mdstamount, mdstid)]
3030 }
3131 else throw("Wrong payment amount or asset")
3232
3333
3434
3535 @Callable(i)
3636 func changerate (rate) = {
3737 let compare = toString(i.caller)
3838 if ((compare == goodaccount))
3939 then [IntegerEntry("usdrate", rate)]
4040 else throw("BAD ACCOUNT")
4141 }
4242
4343

github/deemru/w8io/026f985 
22.05 ms