tx · 2VpcP9ovu63xsx6aXAjPm9uQBf4tXLXSyRsazPkmofuS

3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo:  -0.01400000 Waves

2021.10.09 16:45 [1738794] smart account 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo > SELF 0.00000000 Waves

{ "type": 13, "id": "2VpcP9ovu63xsx6aXAjPm9uQBf4tXLXSyRsazPkmofuS", "fee": 1400000, "feeAssetId": null, "timestamp": 1633787145401, "version": 2, "chainId": 84, "sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo", "senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x", "proofs": [ "4HZbBLEEkC5dMjgbjveMeet1tmWaiWj49CPtkFrKAsYh3MY5QvPDZaR6JqMbrbRo8kJ8s5mLhiTshEAP9xBBQ9Ym" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAACgAAAAALQ09ERUFzc2V0SUQBAAAAINAEYRpFnLQZXHk7APbo5tWij1YQ2cG3R/UN12TTTH73AAAAAAtTdGFydEhlaWdodAAAAAAAABwPmAAAAAAJYmxvY2tkaWZmCQAAZQAAAAIFAAAABmhlaWdodAUAAAALU3RhcnRIZWlnaHQAAAAAB29uZWhvdXIAAAAAAAA27oAAAAAABm9uZWRheQAAAAAABSZcAAAAAAAHb25ld2VlawAAAAAAJAyEAAAAAAAIb25lbW9udGgAAAAAAJy/kEAAAAAADlN0YXJ0SW5mbGF0aW9uCQAAZAAAAAIJAABpAAAAAgAAAAAAABX5AAkAAGgAAAACCQAAaAAAAAIJAABpAAAAAgAAAAAAAAAAAQAAAAAAAAAFoAUAAAAJYmxvY2tkaWZmAAAAAAAAAAWgAAAAAAAAAAAGAAAAAApGZWVBZGRyZXNzAQAAACBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAAAAAAKZGV2QWRkcmVzcwEAAAAgcT857UGuwl6lKR6zURKH3pDKrZTlUMsXWQ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RhcnRJbmZsYXRpb24JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAHbWVzc2FnZQIAAAAmPGgxPkNPREUgSXNzdWVkIFN1Y2Nlc3NmdWxseSE8L2gxPjxicj4FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5NCzOQw==", "height": 1738794, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HjLZDDLyYqxWA8WU53Yp8Hi68dzfUD3aLi2DFPRwX6he Next: AtTAPrb1nheMJ3j2RZEYz2ZaNX41RNt27zGtQRyUmCWR Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'F11g74azdw3SZN83raygbu9useimfTwSQ7HmTLggAq26'
55
6-let b = 1633824000000
6+let b = 1839000
77
8-let c = 3600000
8+let c = (height - b)
99
10-let d = 86400000
10+let d = 3600000
1111
12-let e = 604800000
12+let e = 86400000
1313
14-let f = 2629800000
14+let f = 604800000
1515
16-let g = pow(10, 0, 3, 0, 2, UP)
16+let g = 2629800000
1717
18-let h = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
18+let h = ((1440000 / (((1 / 1440) * c) * 1440)) + 6)
1919
20-let i = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
20+let i = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
2121
22-@Callable(j)
22+let j = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
23+
24+@Callable(k)
2325 func Claim () = {
24- let k = value(j.payments[0])
25- let l = toBase58String(j.caller.bytes)
26- if ((k.assetId != a))
26+ let l = value(k.payments[0])
27+ let m = toBase58String(k.caller.bytes)
28+ let n = (h * l.amount)
29+ let o = getIntegerValue(this, "Total_Issued_CODE:")
30+ let p = (o + n)
31+ if ((l.assetId != a))
2732 then throw(("Incorrect asset attached, please attach " + toBase58String(a)))
28- else if ((5000000 > k.amount))
29- then throw("Please Attach minimum 0.05 TN To Issue CODE Asset.")
30- else if ((b > lastBlock.timestamp))
31- then throw((("DApp is Not Started Yet please Wait until " + toString(((b - lastBlock.timestamp) / 60000))) + " Minutes"))
32- else [IntegerEntry("Inflation", g)]
33+ else if ((5000000 > l.amount))
34+ then throw("Please Attach minimum 0.05 CODE To Issue CODE Asset.")
35+ else if ((b > height))
36+ then throw((("DApp is Not Started Yet please Wait until " + toString(((b - height) / 60000))) + " blocks"))
37+ else [IntegerEntry("Inflation", h), StringEntry("message", "<h1>CODE Issued Successfully!</h1><br>")]
3338 }
3439
3540
36-@Verifier(m)
37-func n () = sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey)
41+@Verifier(q)
42+func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
3843
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'F11g74azdw3SZN83raygbu9useimfTwSQ7HmTLggAq26'
55
6-let b = 1633824000000
6+let b = 1839000
77
8-let c = 3600000
8+let c = (height - b)
99
10-let d = 86400000
10+let d = 3600000
1111
12-let e = 604800000
12+let e = 86400000
1313
14-let f = 2629800000
14+let f = 604800000
1515
16-let g = pow(10, 0, 3, 0, 2, UP)
16+let g = 2629800000
1717
18-let h = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
18+let h = ((1440000 / (((1 / 1440) * c) * 1440)) + 6)
1919
20-let i = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
20+let i = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
2121
22-@Callable(j)
22+let j = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
23+
24+@Callable(k)
2325 func Claim () = {
24- let k = value(j.payments[0])
25- let l = toBase58String(j.caller.bytes)
26- if ((k.assetId != a))
26+ let l = value(k.payments[0])
27+ let m = toBase58String(k.caller.bytes)
28+ let n = (h * l.amount)
29+ let o = getIntegerValue(this, "Total_Issued_CODE:")
30+ let p = (o + n)
31+ if ((l.assetId != a))
2732 then throw(("Incorrect asset attached, please attach " + toBase58String(a)))
28- else if ((5000000 > k.amount))
29- then throw("Please Attach minimum 0.05 TN To Issue CODE Asset.")
30- else if ((b > lastBlock.timestamp))
31- then throw((("DApp is Not Started Yet please Wait until " + toString(((b - lastBlock.timestamp) / 60000))) + " Minutes"))
32- else [IntegerEntry("Inflation", g)]
33+ else if ((5000000 > l.amount))
34+ then throw("Please Attach minimum 0.05 CODE To Issue CODE Asset.")
35+ else if ((b > height))
36+ then throw((("DApp is Not Started Yet please Wait until " + toString(((b - height) / 60000))) + " blocks"))
37+ else [IntegerEntry("Inflation", h), StringEntry("message", "<h1>CODE Issued Successfully!</h1><br>")]
3338 }
3439
3540
36-@Verifier(m)
37-func n () = sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey)
41+@Verifier(q)
42+func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
3843

github/deemru/w8io/169f3d6 
29.02 ms