tx · DTuE8qFTa4S12zaMdkw3uvG61z74N2FA4Sa398P5EU3b

3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK:  -0.01400000 Waves

2022.08.15 01:10 [2184724] smart account 3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK > SELF 0.00000000 Waves

{ "type": 13, "id": "DTuE8qFTa4S12zaMdkw3uvG61z74N2FA4Sa398P5EU3b", "fee": 1400000, "feeAssetId": null, "timestamp": 1660515040690, "version": 2, "chainId": 84, "sender": "3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK", "senderPublicKey": "FshLkkgzcLs6iQJ1Z8Nnfhm494tC8xZQczf9iXpZep3Y", "proofs": [ "2rNm7SyLp84TXwwZzCM3f2koir49wDGJmgVAC4yTQDEYgzRqEH4bjdT1VaVDdF36ossJHvErjAeL4tcuAyigSvAE" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAFAAAAAApCVENBc3NldElEAQAAACD0NPJEoKaVcLA62QAal819hhYdQl83FUDxF7HRh6LUlwAAAAALU0FUU0Fzc2V0SUQBAAAAIIQVHLyAa6peOQxN4R+aXTT73bjvUy7OZLsC9igQULD7AAAAAAhUcmVhc3VyeQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQEAAAAgUoPZoIvXkJI7M+XgQERyG3Ox4PxeH5gdLMWeskjH4iAAAAAABHR4bnMEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwIAAAAJVG90YWx0eG5zAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAAAAAACXRvdGFsdHhucwkAAGQAAAACBQAAAAR0eG5zAAAAAAAAAAABAAAAAgAAAAFpAQAAAAlJc3N1ZVNBVFMAAAAABAAAAANwbXQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEJAAGRAAAAAggFAAAAAWkAA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BPbmx5IAkAAlgAAAABBQAAAAtTQVRTQXNzZXRJRAIAAAAIIFtTQVRTXS4DCQAAZgAAAAIAAAAAAAAAE4gIBQAAAANwbXQAAAAGYW1vdW50CQAAAgAAAAECAAAALUF0dGFjaCBBbW91bnQgbXVzdCBiZSBncmVhdGVyIHRoYW4gNTAwMCBTQVRTLgkABEwAAAACCQEAAAAEQnVybgAAAAIFAAAAC1NBVFNBc3NldElECAUAAAADcG10AAAABmFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAJVG90YWx0eG5zBQAAAAl0b3RhbHR4bnMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAElRvdGFsX0lzc3VlZF9TQVRTOgUAAAAPVG90YWxJc3N1ZWRTQVRTCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAB21lc3NhZ2UCAAAAKjxoMT5TQVRTIExpcXVpZGF0ZWQgU3VjY2Vzc2Z1bGx5ITwvaDE+PGJyPgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAEmNhbGN1bGF0ZWJ1cm52YWx1ZQUAAAAKQlRDQXNzZXRJRAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5PT23YQ==", "height": 2184724, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9jr8QPwJ3orWdvsudhczG1Q1oUBFPJrcaQg5ZyerP6jq Next: ygk7jEhcbGU8N97MWcf3TaxAS4QqWgQhoFqi4UgGr2g Diff:
OldNewDifferences
4343 let j = toBase58String(h.callerPublicKey)
4444 let i = value(h.payments[0])
4545 let l = getIntegerValue(this, "Total_Issued_SATS:")
46- let o = getIntegerValue(this, "Total_Burned_SATS:")
47- let p = getIntegerValue(this, "SATSCurrentCap")
4846 let m = (l - i.amount)
49- let q = (o + i.amount)
50- let r = (p - m)
51- let s = getIntegerValue(this, "Total_SATS_Reserve_In_BTC:")
52- let t = getIntegerValue(this, "SATS_Backup_Value_In_BTC:")
53- let u = fraction(t, i.amount, 100000)
54- let v = (s - u)
55- let w = fraction(100000000, v, m)
47+ let o = fraction(i.amount, 1, 1000000)
5648 if ((i.assetId != b))
5749 then throw((("Kindly Deposit Only " + toBase58String(b)) + " [SATS]."))
5850 else if ((5000 > i.amount))
5951 then throw("Attach Amount must be greater than 5000 SATS.")
60- else [Burn(b, i.amount), IntegerEntry("Totaltxns", g), IntegerEntry("Total_Issued_SATS:", m), IntegerEntry("Total_Burned_SATS:", q), IntegerEntry("Balance_Minting_SATS:", r), IntegerEntry("Total_SATS_Reserve_In_BTC:", v), IntegerEntry("SATS_Backup_Value_In_BTC:", w), StringEntry("message", "<h1>SATS Liquidated Successfully!</h1><br>"), ScriptTransfer(h.caller, u, a)]
52+ else [Burn(b, i.amount), IntegerEntry("Totaltxns", g), IntegerEntry("Total_Issued_SATS:", m), StringEntry("message", "<h1>SATS Liquidated Successfully!</h1><br>"), ScriptTransfer(h.caller, o, a)]
6153 }
6254
6355
64-@Verifier(x)
65-func y () = {
66- let e = x
67- sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey)
56+@Verifier(p)
57+func q () = {
58+ let e = p
59+ sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey)
6860 }
6961
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'HSHJecCLGF7DEPA23dJe6WwroaLeDnik5eptjxEJYvwY'
55
66 let b = base58'9tbVJFXNxWGtZefTnuH9yojcYEPHwXGxhDvY4UK4qf2z'
77
88 let c = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
99
1010 let d = {
1111 let e = getInteger(this, "Totaltxns")
1212 if ($isInstanceOf(e, "Int"))
1313 then {
1414 let f = e
1515 f
1616 }
1717 else 0
1818 }
1919
2020 let g = (d + 1)
2121
2222 @Callable(h)
2323 func IssueSATS () = {
2424 let i = if ((size(h.payments) == 1))
2525 then h.payments[0]
2626 else throw((("No Payments attached please attach [BTC] - " + toBase58String(a)) + " Asset Only."))
2727 let j = toBase58String(h.caller.bytes)
2828 let k = fraction(1000000, i.amount, 1)
2929 let l = getIntegerValue(this, "Total_Issued_SATS:")
3030 let m = (l + k)
3131 let n = 1000000
3232 if ((i.assetId != a))
3333 then throw((("Incorrect asset attached, please attach [BTC] - " + toBase58String(a)) + " only."))
3434 else if ((5000 > i.amount))
3535 then throw("Please Attach minimum 5000 Satoshi's To Issue SATS Asset.")
3636 else [IntegerEntry("Total_Issued_SATS:", m), IntegerEntry("Totaltxns", g), StringEntry("message", "<h1>SATS Issued Successfully!</h1><br>"), Reissue(b, k, true), ScriptTransfer(h.caller, (k - n), b), ScriptTransfer(c, n, b)]
3737 }
3838
3939
4040
4141 @Callable(h)
4242 func Liquidate () = {
4343 let j = toBase58String(h.callerPublicKey)
4444 let i = value(h.payments[0])
4545 let l = getIntegerValue(this, "Total_Issued_SATS:")
46- let o = getIntegerValue(this, "Total_Burned_SATS:")
47- let p = getIntegerValue(this, "SATSCurrentCap")
4846 let m = (l - i.amount)
49- let q = (o + i.amount)
50- let r = (p - m)
51- let s = getIntegerValue(this, "Total_SATS_Reserve_In_BTC:")
52- let t = getIntegerValue(this, "SATS_Backup_Value_In_BTC:")
53- let u = fraction(t, i.amount, 100000)
54- let v = (s - u)
55- let w = fraction(100000000, v, m)
47+ let o = fraction(i.amount, 1, 1000000)
5648 if ((i.assetId != b))
5749 then throw((("Kindly Deposit Only " + toBase58String(b)) + " [SATS]."))
5850 else if ((5000 > i.amount))
5951 then throw("Attach Amount must be greater than 5000 SATS.")
60- else [Burn(b, i.amount), IntegerEntry("Totaltxns", g), IntegerEntry("Total_Issued_SATS:", m), IntegerEntry("Total_Burned_SATS:", q), IntegerEntry("Balance_Minting_SATS:", r), IntegerEntry("Total_SATS_Reserve_In_BTC:", v), IntegerEntry("SATS_Backup_Value_In_BTC:", w), StringEntry("message", "<h1>SATS Liquidated Successfully!</h1><br>"), ScriptTransfer(h.caller, u, a)]
52+ else [Burn(b, i.amount), IntegerEntry("Totaltxns", g), IntegerEntry("Total_Issued_SATS:", m), StringEntry("message", "<h1>SATS Liquidated Successfully!</h1><br>"), ScriptTransfer(h.caller, o, a)]
6153 }
6254
6355
64-@Verifier(x)
65-func y () = {
66- let e = x
67- sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey)
56+@Verifier(p)
57+func q () = {
58+ let e = p
59+ sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey)
6860 }
6961

github/deemru/w8io/169f3d6 
29.02 ms