tx · Ehsc7HL5umkMKkM4FH3DM1VW1BYwDgCjXbndH7UMMMtY

3N8Cko4wa6ewdnPRXybzTMDpnhuYREfkps7:  -0.00200000 Waves

2023.08.06 20:22 [2699023] smart account 3N8Cko4wa6ewdnPRXybzTMDpnhuYREfkps7 > SELF 0.00000000 Waves

{ "type": 13, "id": "Ehsc7HL5umkMKkM4FH3DM1VW1BYwDgCjXbndH7UMMMtY", "fee": 200000, "feeAssetId": null, "timestamp": 1691342704161, "version": 2, "chainId": 84, "sender": "3N8Cko4wa6ewdnPRXybzTMDpnhuYREfkps7", "senderPublicKey": "4oVxBvsmoAhMaT1WhgSLcKFKX1NzwYxDaR89cAdGRGky", "proofs": [ "kyZJwvpsg7NNqWq323D3Vdo3BGbifBei5ZWsVUdrDtNxjTTNXa3YqHvvZoPATd5cxynNzJGNFhFhSuTewaWCFsT" ], "script": "base64:BgIOCAISABIECgIIARIAEgAFAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQFByRtYXRjaDABIFWx2J9yh4Lv5eNbjawFq2XemkOhLxa7BfMat4el8cUYCQACAQINVW5rbm93biBjaGFpbgAPemJpbGxBc3NldElkS2V5Ag16YmlsbF9hc3NldElkAAx6YmlsbEFzc2V0SWQJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnAgCBQR0aGlzBQ96YmlsbEFzc2V0SWRLZXkCE05vdCBpbml0aWFsaXplZCB5ZXQAFHpiaWxsSXNzdWVkQW1vdW50S2V5AhJ6YmlsbF9pc3N1ZWRBbW91bnQEAWkBDWNvbnN0cnVjdG9yVjEAAwkBAiE9AggFAWkGY2FsbGVyBQR0aGlzCQACAQIRUGVybWlzc2lvbiBkZW5pZWQDCQEJaXNEZWZpbmVkAQkAoQgBBQ96Yml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A3BtdAdhc3NldElkAhNVU0RUIHBheW1lbnRzIG9ubHkhAwkBAiE9AgUKcG10QXNzZXRJZAULdXNkdEFzc2V0SWQJAAIBAhNVU0RUIHBheW1lbnRzIG9ubHkhBAxpc3N1ZWRBbW91bnQJARFAZXh0ck5hdGl2ZSgxMDU1KQEFFHpiaWxsSXNzdWVkQW1vdW50S2V5CQDMCAIJAQRCdXJuAgUMemJpbGxBc3NldElkBQNhbXQJAMwIAgkBDEludGVnZXJFbnRyeQIFFHpiaWxsSXNzdWVkQW1vdW50S2V5CQBlAgUMaXNzdWVkQW1vdW50BQNhbXQFA25pbAFpARBnZXRGdW5kc1JFQURPTkxZAAMJAQIhPQIJAJADAQgFAWkIcGF5bWVudHMAAAkAAgECE05vIHBheW1lbnRzIGFsbG93ZWQEB2Z1bmRTdW0JAGQCCQDwBwIFBHRoaXMFC3VzZHRBc3NldElkCQDwBwIFBHRoaXMFDHpiaWxsQXNzZXRJZAkAlAoCBQNuaWwFB2Z1bmRTdW0AulHkZA==", "height": 2699023, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EkdCbxSxbjkGJ7kWWU4fq5vGQj1iaXHUZpAgQKtNG2wZ Next: 3z1v5LtRkNZpftPpgWANmAEStmqdNx3YZ1AjTUCtgWfX Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = take(drop(this.bytes, 1), 1)
55
66 let b = {
77 let c = a
88 if ((base58'2W' == c))
99 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
1010 else if ((base58'2T' == c))
1111 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
1212 else throw("Unknown chain")
1313 }
1414
1515 let d = "zbill_assetId"
1616
1717 let e = valueOrErrorMessage(getBinary(this, d), "Not initialized yet")
1818
1919 let f = "zbill_issuedAmount"
2020
2121 @Callable(g)
2222 func constructorV1 () = if ((g.caller != this))
2323 then throw("Permission denied")
2424 else if (isDefined(getBinary(d)))
2525 then throw("Already initialized")
2626 else {
2727 let h = 0
2828 let i = Issue("ZBILL", "USDT Bill of Exchange token", h, 6, true, unit, 0)
2929 let j = calculateAssetId(i)
3030 [i, IntegerEntry(f, h), BinaryEntry(d, j)]
3131 }
3232
3333
3434
3535 @Callable(g)
3636 func takeUsdt (k,l) = if ((g.caller != this))
3737 then throw("permission denied")
3838 else if ((size(g.payments) != 0))
3939 then throw("No payments allowed")
4040 else {
4141 let h = getIntegerValue(f)
4242 [Reissue(e, l, true), IntegerEntry(f, (h + l)), ScriptTransfer(addressFromStringValue(k), l, b)]
4343 }
4444
4545
4646
4747 @Callable(g)
4848 func returnUsdt () = if ((size(g.payments) != 1))
4949 then throw("exactly 1 payment must be attached")
5050 else {
5151 let m = g.payments[0]
5252 let n = m.amount
5353 let o = valueOrErrorMessage(m.assetId, "USDT payments only!")
5454 if ((o != b))
5555 then throw("USDT payments only!")
5656 else {
5757 let h = getIntegerValue(f)
5858 [Burn(e, n), IntegerEntry(f, (h - n))]
5959 }
6060 }
6161
6262
6363
6464 @Callable(g)
6565 func getFundsREADONLY () = if ((size(g.payments) != 0))
6666 then throw("No payments allowed")
6767 else {
6868 let p = (assetBalance(this, b) + assetBalance(this, e))
6969 $Tuple2(nil, p)
7070 }
7171
7272

github/deemru/w8io/169f3d6 
44.81 ms