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:
OldNewDifferences
2323 then {
2424 let pp = i.payments[0]
2525 let amnt = pp.amount
26- let elAmount = ((amnt / 100000000) * 6000)
26+ let elAmount = ((amnt / 10000) * 6000)
2727 [ScriptTransfer(i.caller, elAmount, midiId)]
2828 }
2929 else throw("Wrong payment amount or asset")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let midiId = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT'
55
66 let date = lastBlock.timestamp
77
88 let amMidi = 0
99
1010 func isPaymentOk (i) = if ((size(i.payments) == 0))
1111 then throw("Payment not attached")
1212 else {
1313 let p = i.payments[0]
1414 match p.assetId {
1515 case _ =>
1616 (30000000000000 >= p.amount)
1717 }
1818 }
1919
2020
2121 @Callable(i)
2222 func buymidi (what) = if (isPaymentOk(i))
2323 then {
2424 let pp = i.payments[0]
2525 let amnt = pp.amount
26- let elAmount = ((amnt / 100000000) * 6000)
26+ let elAmount = ((amnt / 10000) * 6000)
2727 [ScriptTransfer(i.caller, elAmount, midiId)]
2828 }
2929 else throw("Wrong payment amount or asset")
3030
3131

github/deemru/w8io/169f3d6 
52.54 ms