tx · 3GvXautqWaQhJwFp7Gn5zAWeBwhyS3xgfeZPRzr5zaQo

3MtkCfhJSAZ6P2bsBM2DdpurZ7S1vepUvrc:  -0.01400000 Waves

2019.09.28 01:26 [695441] smart account 3MtkCfhJSAZ6P2bsBM2DdpurZ7S1vepUvrc > SELF 0.00000000 Waves

{ "type": 13, "id": "3GvXautqWaQhJwFp7Gn5zAWeBwhyS3xgfeZPRzr5zaQo", "fee": 1400000, "feeAssetId": null, "timestamp": 1569623335491, "version": 1, "sender": "3MtkCfhJSAZ6P2bsBM2DdpurZ7S1vepUvrc", "senderPublicKey": "5M8TjFdQ2hPL23uw5RrCvaES2qU4NpCtn68zqTyiYm2E", "proofs": [ "2K73c8hVQFEM25Pa7j9z1s2gKF5M3vYVEU3GABJ9ZXeu19GcdyNfiDUAB83uBB6ZU25nrV6cSUpFMChfFygd54ka" ], "script": "base64:AAIDAAAAAAAAAAAAAAAGAAAAAAdXQVZFTEVUCQAAaAAAAAIJAABoAAAAAgAAAAAAAAAAZAAAAAAAAAAD6AAAAAAAAAAD6AAAAAAKQ09NTUlTU0lPTgkAAGkAAAACCQAAaAAAAAIAAAAAAAAAAAUFAAAAB1dBVkVMRVQAAAAAAAAAA+gAAAAAB3Rva2VuSUQCAAAAPEo0WlhldUtiMnJaSG9pdFVIaFJIVlpwcWU5TkJuQ2s2WDJBeG5pbXVlZ2NzdGNEVkNockJ1RFFQOGdYTQAAAAAJcHJpemVQb29sCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAECAAAAIzNNcnF6WGZRV1RyaHJKNkdCYW1Td0tLRHozMWdkWExnQ2FyAAAAAAdwcm9qZWN0CQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAECAAAAIzNONUx5NGJrdmc1dUZqZjlCcGVBc2lrOExxMnNmSFljMkhVAAAAAA1wbGF5ZXJTdG9yYWdlCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9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AAAAxoYWxmT2ZEb25hdGUFAAAABHVuaXQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAHcHJvamVjdAUAAAAMaGFsZk9mRG9uYXRlBQAAAAR1bml0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAEWdhbWVXYWxsZXRBZGRyZXNzAAAAAAAAACcQCQACWQAAAAEFAAAAB3Rva2VuSUQFAAAAA25pbAAAAAAh47yY", "chainId": 84, "height": 695441, "spentComplexity": 0 } View: original | compacted Prev: DFSj3Tv43wpsdDZuwk9Dfv7ymTjAYFqGyssUC21bPz9Y Next: 9bigCCvqQ3wgduZboVqMkHyfhrE5xamgS6kP8h82Xy9U Diff:
OldNewDifferences
4343 let x = toString(n)
4444 let y = getStringValue(f, (h + "_address"))
4545 let z = addressFromStringValue(y)
46- TransferSet([ScriptTransfer(d, m, unit), ScriptTransfer(e, m, unit), ScriptTransfer(z, 10000, unit)])
46+ TransferSet([ScriptTransfer(d, m, unit), ScriptTransfer(e, m, unit), ScriptTransfer(z, 10000, fromBase58String(c))])
4747 }
4848 }
4949 }
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 = "J4ZXeuKb2rZHoitUHhRHVZpqe9NBnCk6X2AxnimuegcstcDVChrBuDQP8gXM"
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)
2323 let o = isDefined(getStringValue(this, i))
2424 if (!(o))
2525 then throw("This package doesn't exist anymore")
2626 else {
2727 let p = split(i, "_")
2828 let q = parseIntValue(p[0])
2929 let r = parseIntValue(getStringValue(this, i))
3030 if ((n != r))
3131 then throw(((("Donation amount should be " + toString(r)) + " Waves, but we got ") + toString(n)))
3232 else {
3333 let s = isDefined(k.assetId)
3434 let t = isDefined(k.assetId)
3535 let u = toBase58String(g.callerPublicKey)
3636 let v = addressFromPublicKey(fromBase58String(u))
3737 if (s)
3838 then throw("Bet amount must be in Waves")
3939 else if (t)
4040 then throw("Transaction's fee must be in Waves")
4141 else {
4242 let w = toString(v)
4343 let x = toString(n)
4444 let y = getStringValue(f, (h + "_address"))
4545 let z = addressFromStringValue(y)
46- TransferSet([ScriptTransfer(d, m, unit), ScriptTransfer(e, m, unit), ScriptTransfer(z, 10000, unit)])
46+ TransferSet([ScriptTransfer(d, m, unit), ScriptTransfer(e, m, unit), ScriptTransfer(z, 10000, fromBase58String(c))])
4747 }
4848 }
4949 }
5050 }
5151
5252

github/deemru/w8io/169f3d6 
35.21 ms