tx · EBiMQDxkvTf1mDcHq8z6txfuvfKcfqpeoBMCp2DbfPT5

3N2xqkdTrWSis1QWQnpyeJyL95qjkUyP7Ve:  -0.01400000 Waves

2021.09.11 23:54 [1698898] smart account 3N2xqkdTrWSis1QWQnpyeJyL95qjkUyP7Ve > SELF 0.00000000 Waves

{ "type": 13, "id": "EBiMQDxkvTf1mDcHq8z6txfuvfKcfqpeoBMCp2DbfPT5", "fee": 1400000, "feeAssetId": null, "timestamp": 1631393750405, "version": 2, "chainId": 84, "sender": "3N2xqkdTrWSis1QWQnpyeJyL95qjkUyP7Ve", "senderPublicKey": "GixVPmDAUorToWCPYCpBKvBFRBc7qtQSXhL8zWJsfnVN", "proofs": [ "5LXkYx256c1kfJG9f8ihRU48oA44yCBeB9VD9LaFZPaVU3thkCmgP6aKqsF4eTez7YMmPMRwsKngVcp1eRtH4rQM" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAAAgAAAAAKTURDQXNzZXRJRAEAAAAg8fPeCHuQRgophQrDvxW2V8OrWtGJrF9fv+RfpZlkSxwAAAAAC1VTRE5Bc3NldElEAQAAACC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QAAAAEAAAABaQEAAAAHRGVwb3NpdAAAAAEAAAAEZGF5cwQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAR05vIHBheW1lbnQgYXR0YWNoZWQsIFBsZWFzZSBBdHRhY2ggTURDIFRva2VuIGFzIHBlciBUSUVSIGluIHBheW1lbnRbMV0uBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAD21heGltdW1sb2NrZGF5cwAAAAAAAAAAWgQAAAAKbG9ja3N0YXR1cwIAAAAGTE9DS0VEBAAAAARVTFNUAAAAAH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pbAMJAABnAAAAAggFAAAAA3BtdAAAAAZhbW91bnQFAAAABFVMRFQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAAhUSUVSX09mXwUAAAAKY3VycmVudEtleQIAAAAHRElBTU9ORAUAAAADbmlsCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAAEkRlcG9zaXRfaGVpZ2h0X09mXwUAAAAKY3VycmVudEtleQUAAAAGaGVpZ2h0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAAEkRlcG9zaXRfQW1vdW50X09mXwUAAAAKY3VycmVudEtleQgFAAAAA3BtdAAAAAZhbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAVVG90YWxfTG9ja19CbG9ja3NfT2ZfBQAAAApjdXJyZW50S2V5BQAAAA90b3RhbGxvY2tibG9ja3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAA9Mb2NrX1N0YXR1c19PZl8FAAAACmN1cnJlbnRLZXkFAAAACmxvY2tzdGF0dXMFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleXYVN1I=", "height": 1698898, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 4QGgk46XDSBRgs5LoqcBm9MsSo4eC3gXYMD52MGwgHuS Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let MDCAssetID = base58'HHUw6SZXbvHzET5JcTTFnyNFWPCw463M9Qf9g5CyLD3Z'
5+
6+let USDNAssetID = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
7+
8+@Callable(i)
9+func Deposit (days) = {
10+ let pmt = if ((size(i.payments) == 1))
11+ then i.payments[0]
12+ else throw("No payment attached, Please Attach MDC Token as per TIER in payment[1].")
13+ let currentKey = toBase58String(i.caller.bytes)
14+ let maximumlockdays = 90
15+ let lockstatus = "LOCKED"
16+ let ULST = 499999900000
17+ let ULGT = 999999900000
18+ let ULDT = 1000000000000
19+ let oneday = 1440
20+ let totallockblocks = (oneday * days)
21+ if ((pmt.assetId != MDCAssetID))
22+ then throw((("Incorrect asset attached, please attach " + toBase58String(MDCAssetID)) + " only."))
23+ else if ((6 >= days))
24+ then throw("Choose Locking days in between 7 to 90.")
25+ else if ((days > maximumlockdays))
26+ then throw("You Entered days greater than 90 please Enter no. of days in between 7 to 90.")
27+ else if ((1000000000 > pmt.amount))
28+ then throw("Please Attach minimum 10,000 MDC To Achieve SILVER TIER.")
29+ else if ((ULST >= pmt.amount))
30+ then [StringEntry(("TIER_Of_" + currentKey), "SILVER")]
31+ else if ((ULGT >= pmt.amount))
32+ then [StringEntry(("TIER_Of_" + currentKey), "GOLD")]
33+ else if ((pmt.amount >= ULDT))
34+ then [StringEntry(("TIER_Of_" + currentKey), "DIAMOND")]
35+ else [IntegerEntry(("Deposit_height_Of_" + currentKey), height), IntegerEntry(("Deposit_Amount_Of_" + currentKey), pmt.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), totallockblocks), StringEntry(("Lock_Status_Of_" + currentKey), lockstatus)]
36+ }
37+
38+
39+@Verifier(tx)
40+func verify () = match tx {
41+ case _ =>
42+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
43+}
44+

github/deemru/w8io/026f985 
12.23 ms