tx · EC9Loa4kuf7ehokcYVux1EwVeCdjVdHmvcLHhd7wAD5y

3N2xqkdTrWSis1QWQnpyeJyL95qjkUyP7Ve:  -0.01400000 Waves

2021.09.12 21:35 [1700204] smart account 3N2xqkdTrWSis1QWQnpyeJyL95qjkUyP7Ve > SELF 0.00000000 Waves

{ "type": 13, "id": "EC9Loa4kuf7ehokcYVux1EwVeCdjVdHmvcLHhd7wAD5y", "fee": 1400000, "feeAssetId": null, "timestamp": 1631471808560, "version": 2, "chainId": 84, "sender": "3N2xqkdTrWSis1QWQnpyeJyL95qjkUyP7Ve", "senderPublicKey": "GixVPmDAUorToWCPYCpBKvBFRBc7qtQSXhL8zWJsfnVN", "proofs": [ "2z8C1YZCqoeeUhAciynK1Nrqnc3u5LfUR51QZW9xtQUTxBbo1sCWHASW35h7K7vVozqZF9sbmFRQdjBhdRc8bXq" ], "script": "base64:AAIEAAAAAAAAAAkIAhIDCgEBEgAAAAACAAAAAApNRENBc3NldElEAQAAACDw+pZ8I6S1gLtz/lhk6hmcqMAiL6CmemymHtjpH9G2wAAAAAALVVNETkFzc2V0SUQBAAAAIFvDtlHjzQ4rRBwVsoNZgb+PxfGh9JbQKOsL87KqrvmdAAAAAgAAAAFpAQAAAAdEZXBvc2l0AAAAAQAAAARkYXlzBAAAAANwbXQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAABHTm8gcGF5bWVudCBhdHRhY2hlZCwgUGxlYXNlIEF0dGFjaCBNREMgVG9rZW4gYXMgcGVyIFRJRVIgaW4gcGF5bWVudFsxXS4EAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAPbWF4aW11bWxvY2tkYXlzAAAAAAAAAABaBAAAAApsb2Nrc3RhdHVzAgAAAAZMT0NLRUQEAAAABF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AAEkRlcG9zaXRfaGVpZ2h0X09mXwUAAAAKY3VycmVudEtleQAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAABJEZXBvc2l0X0Ftb3VudF9PZl8FAAAACmN1cnJlbnRLZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAVVG90YWxfTG9ja19CbG9ja3NfT2ZfBQAAAApjdXJyZW50S2V5AAAAAAAAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAPTG9ja19TdGF0dXNfT2ZfBQAAAApjdXJyZW50S2V5AgAAAAZVTkxPQ0sFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlecDECyU=", "height": 1700204, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ibk9b3ife4XHv3WrWbDR412Zrwr1ytyMFNn9XruWsab Next: FwzRWFxo5Z4amM8hBjUs2J61e2UJxcDxbht1dYUqbp2 Diff:
OldNewDifferences
1717 let j = 999999999999
1818 let k = 1000000000000
1919 let l = 1440
20- let m = (height + (l * d))
21- let n = 695
22- let o = fraction(fraction(n, e.amount, pow(10, 0, 5, 0, 0, UP)), m, pow(10, 0, 6, 0, 0, UP))
20+ let m = (l * d)
21+ let n = (height + m)
22+ let o = 695
23+ let p = fraction(fraction(o, e.amount, pow(10, 0, 5, 0, 0, UP)), m, pow(10, 0, 6, 0, 0, UP))
2324 if ((e.assetId != a))
2425 then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " only."))
2526 else if ((6 >= d))
3132 else if ((getStringValue(this, ("Lock_Status_Of_" + f)) == h))
3233 then throw((("Your Address Already Have the Tokens Under Lock. Locked Qty = " + toString(getIntegerValue(this, ("Deposit_Amount_Of_" + f)))) + " MDC. Consider last 5 digits as value after Decimals"))
3334 else if ((i >= e.amount))
34- then [StringEntry(("Tier_Of_" + f), "SILVER"), IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), m), StringEntry(("Lock_Status_Of_" + f), h), IntegerEntry("Rewards_Of_", o)]
35+ then [StringEntry(("Tier_Of_" + f), "SILVER"), IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), n), StringEntry(("Lock_Status_Of_" + f), h), IntegerEntry(("Rewards_Of_" + f), p)]
3536 else if ((j >= e.amount))
3637 then [{
37- let p = 20
38+ let q = 20
3839 StringEntry(("Tier_Of_" + f), "GOLD")
39- }, IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), m), StringEntry(("Lock_Status_Of_" + f), h)]
40+ }, IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), n), StringEntry(("Lock_Status_Of_" + f), h)]
4041 else if ((e.amount >= k))
4142 then [{
42- let q = 20
43+ let r = 20
4344 StringEntry(("Tier_Of_" + f), "DIAMOND")
44- }, IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), m), StringEntry(("Lock_Status_Of_" + f), h)]
45+ }, IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), n), StringEntry(("Lock_Status_Of_" + f), h)]
4546 else [{
46- let r = 20
47+ let s = 20
4748 IntegerEntry(("Deposit_height_Of_" + f), height)
48- }, IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), m), StringEntry(("Lock_Status_Of_" + f), h)]
49+ }, IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), n), StringEntry(("Lock_Status_Of_" + f), h)]
4950 }
5051
5152
5354 @Callable(c)
5455 func Withdraw () = {
5556 let f = toBase58String(c.caller.bytes)
56- let s = getIntegerValue(this, ("Deposit_Amount_Of_" + f))
57+ let t = getIntegerValue(this, ("Deposit_Amount_Of_" + f))
5758 if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + f)) > height))
5859 then throw(((("Your " + toString(getIntegerValue(this, ("Deposit_Amount_Of_" + f)))) + " MDC are Under Lock. Consider last 5 digits as value after Decimals. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + f)) - height))))
59- else if ((s == 0))
60+ else if ((t == 0))
6061 then throw("You Have Already Withdraw your Amount.")
6162 else [ScriptTransfer(c.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + f)), a), IntegerEntry(("Deposit_height_Of_" + f), 0), IntegerEntry(("Deposit_Amount_Of_" + f), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + f), 0), StringEntry(("Lock_Status_Of_" + f), "UNLOCK")]
6263 }
6364
6465
65-@Verifier(t)
66-func u () = {
67- let v = t
68- sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey)
66+@Verifier(u)
67+func v () = {
68+ let w = u
69+ sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey)
6970 }
7071
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'HDgUBQhx8vJY2uUmQPtqzEu6C32Ktx4jAD37aprLKV9Z'
55
66 let b = base58'7BDByxoPpx8gjNfkuBi8h1zBTtg9PrxLvYv3q613CES8'
77
88 @Callable(c)
99 func Deposit (d) = {
1010 let e = if ((size(c.payments) == 1))
1111 then c.payments[0]
1212 else throw("No payment attached, Please Attach MDC Token as per TIER in payment[1].")
1313 let f = toBase58String(c.caller.bytes)
1414 let g = 90
1515 let h = "LOCKED"
1616 let i = 499999999999
1717 let j = 999999999999
1818 let k = 1000000000000
1919 let l = 1440
20- let m = (height + (l * d))
21- let n = 695
22- let o = fraction(fraction(n, e.amount, pow(10, 0, 5, 0, 0, UP)), m, pow(10, 0, 6, 0, 0, UP))
20+ let m = (l * d)
21+ let n = (height + m)
22+ let o = 695
23+ let p = fraction(fraction(o, e.amount, pow(10, 0, 5, 0, 0, UP)), m, pow(10, 0, 6, 0, 0, UP))
2324 if ((e.assetId != a))
2425 then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " only."))
2526 else if ((6 >= d))
2627 then throw("Choose Locking days in between 7 to 90.")
2728 else if ((d > g))
2829 then throw("You Entered days greater than 90 please Enter no. of days in between 7 to 90.")
2930 else if ((1000000000 > e.amount))
3031 then throw("Please Attach minimum 10,000 MDC To Achieve SILVER TIER.")
3132 else if ((getStringValue(this, ("Lock_Status_Of_" + f)) == h))
3233 then throw((("Your Address Already Have the Tokens Under Lock. Locked Qty = " + toString(getIntegerValue(this, ("Deposit_Amount_Of_" + f)))) + " MDC. Consider last 5 digits as value after Decimals"))
3334 else if ((i >= e.amount))
34- then [StringEntry(("Tier_Of_" + f), "SILVER"), IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), m), StringEntry(("Lock_Status_Of_" + f), h), IntegerEntry("Rewards_Of_", o)]
35+ then [StringEntry(("Tier_Of_" + f), "SILVER"), IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), n), StringEntry(("Lock_Status_Of_" + f), h), IntegerEntry(("Rewards_Of_" + f), p)]
3536 else if ((j >= e.amount))
3637 then [{
37- let p = 20
38+ let q = 20
3839 StringEntry(("Tier_Of_" + f), "GOLD")
39- }, IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), m), StringEntry(("Lock_Status_Of_" + f), h)]
40+ }, IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), n), StringEntry(("Lock_Status_Of_" + f), h)]
4041 else if ((e.amount >= k))
4142 then [{
42- let q = 20
43+ let r = 20
4344 StringEntry(("Tier_Of_" + f), "DIAMOND")
44- }, IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), m), StringEntry(("Lock_Status_Of_" + f), h)]
45+ }, IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), n), StringEntry(("Lock_Status_Of_" + f), h)]
4546 else [{
46- let r = 20
47+ let s = 20
4748 IntegerEntry(("Deposit_height_Of_" + f), height)
48- }, IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), m), StringEntry(("Lock_Status_Of_" + f), h)]
49+ }, IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), n), StringEntry(("Lock_Status_Of_" + f), h)]
4950 }
5051
5152
5253
5354 @Callable(c)
5455 func Withdraw () = {
5556 let f = toBase58String(c.caller.bytes)
56- let s = getIntegerValue(this, ("Deposit_Amount_Of_" + f))
57+ let t = getIntegerValue(this, ("Deposit_Amount_Of_" + f))
5758 if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + f)) > height))
5859 then throw(((("Your " + toString(getIntegerValue(this, ("Deposit_Amount_Of_" + f)))) + " MDC are Under Lock. Consider last 5 digits as value after Decimals. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + f)) - height))))
59- else if ((s == 0))
60+ else if ((t == 0))
6061 then throw("You Have Already Withdraw your Amount.")
6162 else [ScriptTransfer(c.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + f)), a), IntegerEntry(("Deposit_height_Of_" + f), 0), IntegerEntry(("Deposit_Amount_Of_" + f), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + f), 0), StringEntry(("Lock_Status_Of_" + f), "UNLOCK")]
6263 }
6364
6465
65-@Verifier(t)
66-func u () = {
67- let v = t
68- sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey)
66+@Verifier(u)
67+func v () = {
68+ let w = u
69+ sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey)
6970 }
7071

github/deemru/w8io/026f985 
32.58 ms