tx · Bznk7Lj9u5D2Ek5kA9v59dBmMWA7aDRSqvzQ2jeoymgH

3MtkCfhJSAZ6P2bsBM2DdpurZ7S1vepUvrc:  -0.01400000 Waves

2019.09.28 13:05 [696145] smart account 3MtkCfhJSAZ6P2bsBM2DdpurZ7S1vepUvrc > SELF 0.00000000 Waves

{ "type": 13, "id": "Bznk7Lj9u5D2Ek5kA9v59dBmMWA7aDRSqvzQ2jeoymgH", "fee": 1400000, "feeAssetId": null, "timestamp": 1569665152990, "version": 1, "sender": "3MtkCfhJSAZ6P2bsBM2DdpurZ7S1vepUvrc", "senderPublicKey": "5M8TjFdQ2hPL23uw5RrCvaES2qU4NpCtn68zqTyiYm2E", "proofs": [ "4VWRxMSZaNTcR85P2JJY42QAiyuGAtMTB2VLz4oypkXFHHn54Gj1qmHh4ExmoJ7pKuiXdd5u5ofgE5owmfrdYQ1N" ], "script": "base64:AAIDAAAAAAAAAAAAAAAGAAAAAAdXQVZFTEVUCQAAaAAAAAIJAABoAAAAAgAAAAAAAAAAZAAAAAAAAAAD6AAAAAAAAAAD6AAAAAAKQ09NTUlTU0lPTgkAAGkAAAACCQAAaAAAAAIAAAAAAAAAAAUFAAAAB1dBVkVMRVQAAAAAAAAAA+gAAAAAB3Rva2VuSUQJAAJZAAAAAQIAAAAsNHlzWmVVdnRCclNWZ0o5djNNZmgzYldEMldOUGQ1a1E4MjdwaW9nd3BNeDQAAAAACXByaXplUG9vbAkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABAgAAACMzTXJxelhmUVdUcmhySjZHQmFtU3dLS0R6MzFnZFhMZ0NhcgAAAAAHcHJvamVjdAkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABAgAAACMzTjVMeTRia3ZnNXVGamY5QnBlQXNpazhMcTJzZkhZYzJIVQAAAAANcGxheWVyU3RvcmFnZQkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABAgAAACMzTXh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2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAlwcml6ZVBvb2wFAAAADGhhbGZPZkRvbmF0ZQUAAAAEdW5pdAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAdwcm9qZWN0BQAAAAxoYWxmT2ZEb25hdGUFAAAABHVuaXQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAARZ2FtZVdhbGxldEFkZHJlc3MFAAAADHRva2Vuc0Ftb3VudAUAAAAHdG9rZW5JRAUAAAADbmlsAAAAABni51Y=", "chainId": 84, "height": 696145, "spentComplexity": 0 } View: original | compacted Prev: 8zBAEDbXe7cLjX7Fa2YYH2ULM4ZxEHJMx4srMqrtFHr7 Next: 8f9EiU3CsEPaQpqZvBiHEmqjUX3PBmjrFpA8svk5iEjk Diff:
OldNewDifferences
2020 let l = k.amount
2121 let m = ((l - b) / 2)
2222 let n = ((l - b) / a)
23- let o = isDefined(getStringValue(this, i))
24- if (!(o))
25- then throw("This package doesn't exist anymore")
23+ if ((1 == 1))
24+ then throw(toString(n))
2625 else {
27- let p = split(i, "_")
28- if ((1 == 1))
29- then throw(i)
26+ let o = isDefined(getStringValue(this, i))
27+ if (!(o))
28+ then throw("This package doesn't exist anymore")
3029 else {
30+ let p = split(i, "_")
3131 let q = parseIntValue(p[0])
3232 let r = parseIntValue(getStringValue(this, i))
3333 if ((n != r))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = ((100 * 1000) * 1000)
55
66 let b = ((5 * a) / 1000)
77
88 let c = fromBase58String("4ysZeUvtBrSVgJ9v3Mfh3bWD2WNPd5kQ827piogwpMx4")
99
1010 let d = addressFromStringValue("3MrqzXfQWTrhrJ6GBamSwKKDz31gdXLgCar")
1111
1212 let e = addressFromStringValue("3N5Ly4bkvg5uFjf9BpeAsik8Lq2sfHYc2HU")
1313
1414 let f = addressFromStringValue("3MxZaWJmdypjv8MMv8RPTtDq4GNMPdCisJP")
1515
1616 @Callable(g)
1717 func buy (h,i) = {
1818 let j = toBase58String(g.transactionId)
1919 let k = extract(g.payment)
2020 let l = k.amount
2121 let m = ((l - b) / 2)
2222 let n = ((l - b) / a)
23- let o = isDefined(getStringValue(this, i))
24- if (!(o))
25- then throw("This package doesn't exist anymore")
23+ if ((1 == 1))
24+ then throw(toString(n))
2625 else {
27- let p = split(i, "_")
28- if ((1 == 1))
29- then throw(i)
26+ let o = isDefined(getStringValue(this, i))
27+ if (!(o))
28+ then throw("This package doesn't exist anymore")
3029 else {
30+ let p = split(i, "_")
3131 let q = parseIntValue(p[0])
3232 let r = parseIntValue(getStringValue(this, i))
3333 if ((n != r))
3434 then throw(((("Donation amount should be " + toString(r)) + " Waves, but we got ") + toString(n)))
3535 else {
3636 let s = isDefined(k.assetId)
3737 let t = isDefined(k.assetId)
3838 let u = toBase58String(g.callerPublicKey)
3939 let v = addressFromPublicKey(fromBase58String(u))
4040 if (s)
4141 then throw("Bet amount must be in Waves")
4242 else if (t)
4343 then throw("Transaction's fee must be in Waves")
4444 else {
4545 let w = toString(v)
4646 let x = toString(n)
4747 let y = getStringValue(f, (h + "_address"))
4848 let z = addressFromStringValue(y)
4949 TransferSet([ScriptTransfer(d, m, unit), ScriptTransfer(e, m, unit), ScriptTransfer(z, q, c)])
5050 }
5151 }
5252 }
5353 }
5454 }
5555
5656

github/deemru/w8io/026f985 
27.15 ms