tx · 7wHkTWcGU57iWPGimJtTKvZFy1qokkMd1r2Dcfg596BG

3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe:  -0.01400000 Waves

2020.11.01 22:30 [1246664] smart account 3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe > SELF 0.00000000 Waves

{ "type": 13, "id": "7wHkTWcGU57iWPGimJtTKvZFy1qokkMd1r2Dcfg596BG", "fee": 1400000, "feeAssetId": null, "timestamp": 1604259063289, "version": 2, "chainId": 84, "sender": "3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe", "senderPublicKey": "9GE2xN4fms9YNDxR1hGg52RynqDd8125TA42g4X29ZV7", "proofs": [ "3DzvZrCjZz5Pgfr3e4Mf2tFanU77tNMEXPF7ojtfzj7xQP4eFf5JkiGtyMFcvUNDeMaf8MzWnDUFnhPp6VynVbM6" ], "script": "base64:AAIEAAAAAAAAABUIAhIGCgQIAQEIEgQKAggIEgMKAQgAAAAEAAAAAAJjZgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQkAAlkAAAABAgAAACxKN3Z5b1VBOEdkNVFNcTRZVnRlZHB2MTlkd0NZcm9aRVlyTjhiS2dMenFWOAAAAAAEb3BicgEAAAAgmfy5oa9oHbJYecHXssaagqIhQYzkPpfErZjoZUq4xX8BAAAAEGdldEFsbG93ZWRUb2tlbnMAAAABAAAAB3Rva2VuSWQEAAAABWFsbG93BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAB3Rva2VuSWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQcFAAAABWFsbG93AQAAAAtjb21wYXJlSGFzaAAAAAIAAAABYwAAAAFoCQAAAAAAAAIJAAH1AAAAAQkAAfYAAAABCQABmwAAAAEFAAAAAWMJAAJZAAAAAQUAAAABaAAAAAMAAAABaQEAAAAHb3BickJ1eQAAAAQAAAAHdG9rZW5JZAAAAANxdGQAAAAFcH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cwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleYG1Xq8=", "height": 1246664, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 37qPGv7987a7mXYAqAA78pbs4CGL1hDv2NpAZh75B1F7 Next: GwgbSWqtibdHZnHL7UujJPBY1hjEi4v7QAoBpDVgHUb9 Diff:
OldNewDifferences
2929 let q = c(d)
3030 if ((size(p) == 0))
3131 then throw("Payment for exchange is mandatory")
32- else if (!(h((d + toString((l * m))), n)))
32+ else if (!(h((d + toString(((l + m) + p[0].amount))), n)))
3333 then throw("Purchase information is incompatible")
3434 else if (if (isDefined(p[0].assetId))
3535 then (q == false)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = addressFromPublicKey(fromBase58String("J7vyoUA8Gd5QMq4YVtedpv19dwCYroZEYrN8bKgLzqV8"))
55
66 let b = base58'BN6ta4Sfmmh8tfmJE4pqJrSxLNJReAqnerPePYqkjcjG'
77
88 func c (d) = {
99 let e = {
1010 let f = getString(this, d)
1111 if ($isInstanceOf(f, "String"))
1212 then {
1313 let g = f
1414 g
1515 }
1616 else false
1717 }
1818 e
1919 }
2020
2121
2222 func h (i,j) = (keccak256(blake2b256(toBytes(i))) == fromBase58String(j))
2323
2424
2525 @Callable(k)
2626 func opbrBuy (d,l,m,n) = {
2727 let o = toBase58String(k.caller.bytes)
2828 let p = k.payments
2929 let q = c(d)
3030 if ((size(p) == 0))
3131 then throw("Payment for exchange is mandatory")
32- else if (!(h((d + toString((l * m))), n)))
32+ else if (!(h((d + toString(((l + m) + p[0].amount))), n)))
3333 then throw("Purchase information is incompatible")
3434 else if (if (isDefined(p[0].assetId))
3535 then (q == false)
3636 else false)
3737 then throw("The used token is not accepted")
3838 else if (if (isDefined(p[0].assetId))
3939 then (fromBase58String(d) != p[0].assetId)
4040 else false)
4141 then throw("declared token is different from submitted token")
4242 else {
4343 let i = fraction(1, p[0].amount, 100)
4444 [ScriptTransfer(k.caller, l, b), ScriptTransfer(a, i, p[0].assetId)]
4545 }
4646 }
4747
4848
4949
5050 @Callable(k)
5151 func tokenList (d,r) = {
5252 let s = toBase58String(k.caller.bytes)
5353 if ((s != toString(this)))
5454 then throw("The address is not authorized to list tokens")
5555 else [StringEntry(d, r), ScriptTransfer(a, 1000000, unit)]
5656 }
5757
5858
5959
6060 @Callable(k)
6161 func tokenDelist (d) = {
6262 let s = toBase58String(k.caller.bytes)
6363 if ((s != toString(this)))
6464 then throw("The address is not authorized to delist tokens")
6565 else [DeleteEntry(d), ScriptTransfer(a, 10000000, unit)]
6666 }
6767
6868
6969 @Verifier(t)
7070 func u () = sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey)
7171

github/deemru/w8io/169f3d6 
21.23 ms