tx · 3hY84AMibr8ae7Du87oennf7Wi41ztHeCig3ptKA66eL

3N2xqkdTrWSis1QWQnpyeJyL95qjkUyP7Ve:  -0.01400000 Waves

2021.09.12 00:22 [1698924] smart account 3N2xqkdTrWSis1QWQnpyeJyL95qjkUyP7Ve > SELF 0.00000000 Waves

{ "type": 13, "id": "3hY84AMibr8ae7Du87oennf7Wi41ztHeCig3ptKA66eL", "fee": 1400000, "feeAssetId": null, "timestamp": 1631395406061, "version": 2, "chainId": 84, "sender": "3N2xqkdTrWSis1QWQnpyeJyL95qjkUyP7Ve", "senderPublicKey": "GixVPmDAUorToWCPYCpBKvBFRBc7qtQSXhL8zWJsfnVN", "proofs": [ "3HdbQhYRGghPiPW9d7ArEmnxQAiSK5FZBTQ7gCtta3kWgqSWmMY4jvTeLfiSx5J5NFcKoxwxubM2jife1DSfdQhW" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAAAgAAAAAKTURDQXNzZXRJRAEAAAAg8PqWfCOktYC7c/5YZOoZnKjAIi+gpnpsph7Y6R/RtsAAAAAAC1VTRE5Bc3NldElEAQAAACBbw7ZR480OK0QcFbKDWYG/j8XxofSW0CjrC/Oyqq75nQAAAAEAAAABaQEAAAAHRGVwb3NpdAAAAAEAAAAEZGF5cwQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAR05vIHBheW1lbnQgYXR0YWNoZWQsIFBsZWFzZSBBdHRhY2ggTURDIFRva2VuIGFzIHBlciBUSUVSIGluIHBheW1lbnRbMV0uBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAD21heGltdW1sb2NrZGF5cwAAAAAAAAAAWgQAAAAKbG9ja3N0YXR1cwIAAAAGTE9DS0VEBAAAAARVTFNUAAAAAHRqUof/BAA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Y3VycmVudEtleQUAAAAKbG9ja3N0YXR1cwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5Y9bjIg==", "height": 1698924, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3SRauVH1pf179SP5SMvEQaKjeDfEqPp8SPQbCbdjNAvh Next: GyciPFWxhgQwfoTS7mWPHDjGZBhDpzinFtHSEZsRCScm Diff:
OldNewDifferences
1313 let currentKey = toBase58String(i.caller.bytes)
1414 let maximumlockdays = 90
1515 let lockstatus = "LOCKED"
16- let ULST = 499999900000
16+ let ULST = 499999999999
1717 let ULGT = 999999900000
1818 let ULDT = 1000000000000
1919 let oneday = 1440
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let MDCAssetID = base58'HDgUBQhx8vJY2uUmQPtqzEu6C32Ktx4jAD37aprLKV9Z'
55
66 let USDNAssetID = base58'7BDByxoPpx8gjNfkuBi8h1zBTtg9PrxLvYv3q613CES8'
77
88 @Callable(i)
99 func Deposit (days) = {
1010 let pmt = if ((size(i.payments) == 1))
1111 then i.payments[0]
1212 else throw("No payment attached, Please Attach MDC Token as per TIER in payment[1].")
1313 let currentKey = toBase58String(i.caller.bytes)
1414 let maximumlockdays = 90
1515 let lockstatus = "LOCKED"
16- let ULST = 499999900000
16+ let ULST = 499999999999
1717 let ULGT = 999999900000
1818 let ULDT = 1000000000000
1919 let oneday = 1440
2020 let totallockblocks = (oneday * days)
2121 if ((pmt.assetId != MDCAssetID))
2222 then throw((("Incorrect asset attached, please attach " + toBase58String(MDCAssetID)) + " only."))
2323 else if ((6 >= days))
2424 then throw("Choose Locking days in between 7 to 90.")
2525 else if ((days > maximumlockdays))
2626 then throw("You Entered days greater than 90 please Enter no. of days in between 7 to 90.")
2727 else if ((1000000000 > pmt.amount))
2828 then throw("Please Attach minimum 10,000 MDC To Achieve SILVER TIER.")
2929 else if ((ULST >= pmt.amount))
3030 then [StringEntry(("TIER_Of_" + currentKey), "SILVER"), 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)]
3131 else if ((ULGT >= pmt.amount))
3232 then [StringEntry(("TIER_Of_" + currentKey), "GOLD")]
3333 else if ((pmt.amount >= ULDT))
3434 then [StringEntry(("TIER_Of_" + currentKey), "DIAMOND")]
3535 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)]
3636 }
3737
3838
3939 @Verifier(tx)
4040 func verify () = match tx {
4141 case _ =>
4242 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4343 }
4444

github/deemru/w8io/026f985 
19.73 ms