tx · 8wo98iiLtnKXs98MzJ8AZxt1R47zcn9h2F3z4naWmY5X 3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj: -0.01400000 Waves 2021.09.21 21:09 [1713149] smart account 3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj > SELF 0.00000000 Waves
{ "type": 13, "id": "8wo98iiLtnKXs98MzJ8AZxt1R47zcn9h2F3z4naWmY5X", "fee": 1400000, "feeAssetId": null, "timestamp": 1632247750435, "version": 2, "chainId": 84, "sender": "3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj", "senderPublicKey": "C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV", "proofs": [ "4oADbrVEMqx2aUBNV5cVrtc9CBgBVssS628YABq13n7Tk51PuhrkuQTq8kdH7bgtsbULQfDj3oY9t99SU4Ypw6yW" ], "script": "base64:AAIEAAAAAAAAAA0IAhIAEgASAwoBARIAAAAAAgAAAAAKQTRBQXNzZXRJRAEAAAAgcmq6+6Wxr2yowtuRELQMbFaAM1flDMDSVcM9IpA14LUAAAAAC1VTRFRBc3NldElEAQAAACBfV2kYyAongSbxW5ftxOxN+cK7WcsSGIuEYKBfpvf88wAAAAQAAAABaQEAAAAISXNzdWVBNEEAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAALUHJpY2VQZXJBNEEJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAABkE0QS9UTgQAAAAMTmV3QTRBVG9Vc2VyCQAAawAAAAMAAAAAAAABhqAIBQAAAANwbXQAAAAGYW1vdW50BQAAAAtQcmljZVBlckE0QQQAAAARUHJldmlvdXNJc3N1ZWRBNEEJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAAB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UmV3YXJkc19PZl8FAAAACmN1cnJlbnRLZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAE1RvdGFsX1VTRFRfQ2xhaW1lZDoFAAAAEnRvdGFscmV3YXJkY2xhaW1lZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmdN7SD", "height": 1713149, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fha7EnXrRgSgeTuSoQH5mGAx4XJcRGanemfzaiHfmNre Next: 2fXwCrwq7fYXRPEUpGR8acVmZMG7xk2KewGrT9zvpygB Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58' | |
4 | + | let a = base58'8hdsVCxPBVEmVUZyyX8Sd98Z9hU7Fny26W96sjKiTw8g' | |
5 | 5 | ||
6 | - | let b = base58' | |
6 | + | let b = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4' | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func IssueA4A () = { | |
57 | 57 | let e = toBase58String(c.caller.bytes) | |
58 | 58 | let s = 90 | |
59 | 59 | let t = "LOCKED" | |
60 | - | let u = 599999999999 | |
61 | - | let v = 1199999999999 | |
62 | - | let w = 1200000000000 | |
63 | - | let x = 1440 | |
64 | - | let y = (x * r) | |
65 | - | let z = (height + y) | |
66 | - | let A = 72000 | |
67 | - | let B = fraction(fraction(A, d.amount, pow(10, 0, 8, 0, 0, UP)), y, pow(10, 0, 6, 0, 0, UP)) | |
68 | - | let C = fraction(fraction((A * 2), d.amount, pow(10, 0, 8, 0, 0, UP)), y, pow(10, 0, 6, 0, 0, UP)) | |
69 | - | let D = fraction(fraction((A * 4), d.amount, pow(10, 0, 8, 0, 0, UP)), y, pow(10, 0, 6, 0, 0, UP)) | |
70 | - | let E = { | |
71 | - | let F = getInteger(this, ("Deposit_Amount_Of_" + e)) | |
72 | - | if ($isInstanceOf(F, "Int")) | |
60 | + | let u = 99999999999 | |
61 | + | let v = 599999999999 | |
62 | + | let w = 1199999999999 | |
63 | + | let x = 1200000000000 | |
64 | + | let y = 1440 | |
65 | + | let z = (y * r) | |
66 | + | let A = (height + z) | |
67 | + | let B = 36000 | |
68 | + | let C = fraction(fraction(B, d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP)) | |
69 | + | let D = fraction(fraction((B * 2), d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP)) | |
70 | + | let E = fraction(fraction((B * 4), d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP)) | |
71 | + | let F = fraction(fraction((B * 8), d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP)) | |
72 | + | let G = { | |
73 | + | let H = getInteger(this, ("Deposit_Amount_Of_" + e)) | |
74 | + | if ($isInstanceOf(H, "Int")) | |
73 | 75 | then { | |
74 | - | let | |
75 | - | | |
76 | + | let I = H | |
77 | + | I | |
76 | 78 | } | |
77 | 79 | else 0 | |
78 | 80 | } | |
79 | - | let | |
81 | + | let J = (G + d.amount) | |
80 | 82 | if ((d.assetId != a)) | |
81 | 83 | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " only.")) | |
82 | 84 | else if ((6 >= r)) | |
83 | 85 | then throw("Choose Locking days in between 7 to 90.") | |
84 | 86 | else if ((r > s)) | |
85 | 87 | then throw("You Entered days greater than 90 please Enter no. of days in between 7 to 90.") | |
86 | - | else if (( | |
87 | - | then throw("Please Attach minimum | |
88 | + | else if ((33300000000 > d.amount)) | |
89 | + | then throw("Please Attach minimum 333 A4A To Achieve BRONZE TIER.") | |
88 | 90 | else if ((u >= d.amount)) | |
89 | - | then [StringEntry(("Tier_Of_" + e), " | |
91 | + | then [StringEntry(("Tier_Of_" + e), "BRONZE"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), J), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), B)] | |
90 | 92 | else if ((v >= d.amount)) | |
91 | - | then [StringEntry(("Tier_Of_" + e), "GOLD"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), H), IntegerEntry(("Total_Lock_Blocks_Of_" + e), z), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), C)] | |
92 | - | else if ((w == d.amount)) | |
93 | - | then [StringEntry(("Tier_Of_" + e), "DIAMOND"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), H), IntegerEntry(("Total_Lock_Blocks_Of_" + e), z), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), D)] | |
94 | - | else throw("Please Choose a Range Between 1000-12000.") | |
93 | + | then [StringEntry(("Tier_Of_" + e), "SILVER"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), J), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), C)] | |
94 | + | else if ((w >= d.amount)) | |
95 | + | then [StringEntry(("Tier_Of_" + e), "GOLD"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), J), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), D)] | |
96 | + | else if ((x == d.amount)) | |
97 | + | then [StringEntry(("Tier_Of_" + e), "DIAMOND"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), J), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), E)] | |
98 | + | else throw("Please Choose a Range Between 333-12000.") | |
95 | 99 | } | |
96 | 100 | ||
97 | 101 | ||
99 | 103 | @Callable(c) | |
100 | 104 | func Withdraw () = { | |
101 | 105 | let e = toBase58String(c.caller.bytes) | |
102 | - | let | |
103 | - | let | |
104 | - | let | |
106 | + | let K = getIntegerValue(this, ("Deposit_Amount_Of_" + e)) | |
107 | + | let L = getIntegerValue(this, "Total_USDT_Claimed:") | |
108 | + | let M = (L + getIntegerValue(this, ("Rewards_Of_" + e))) | |
105 | 109 | if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + e)) > height)) | |
106 | 110 | then throw(((("Your " + toString(getIntegerValue(this, ("Deposit_Amount_Of_" + e)))) + " A4A are Under Lock. Consider last 8 digits as value after Decimals. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + e)) - height)))) | |
107 | - | else if (( | |
111 | + | else if ((K == 0)) | |
108 | 112 | then throw("You Have Already Withdraw your Amount.") | |
109 | - | else [ScriptTransfer(c.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + e)), a), ScriptTransfer(c.caller, getIntegerValue(this, ("Rewards_Of_" + e)), b), IntegerEntry(("Deposit_height_Of_" + e), 0), IntegerEntry(("Deposit_Amount_Of_" + e), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + e), 0), StringEntry(("Lock_Status_Of_" + e), "UNLOCK"), IntegerEntry(("Rewards_Of_" + e), 0), IntegerEntry("Total_USDT_Claimed:", | |
113 | + | else [ScriptTransfer(c.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + e)), a), ScriptTransfer(c.caller, getIntegerValue(this, ("Rewards_Of_" + e)), b), IntegerEntry(("Deposit_height_Of_" + e), 0), IntegerEntry(("Deposit_Amount_Of_" + e), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + e), 0), StringEntry(("Lock_Status_Of_" + e), "UNLOCK"), IntegerEntry(("Rewards_Of_" + e), 0), IntegerEntry("Total_USDT_Claimed:", M)] | |
110 | 114 | } | |
111 | 115 | ||
112 | 116 | ||
113 | - | @Verifier( | |
114 | - | func | |
117 | + | @Verifier(N) | |
118 | + | func O () = sigVerify(N.bodyBytes, N.proofs[0], N.senderPublicKey) | |
115 | 119 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58' | |
4 | + | let a = base58'8hdsVCxPBVEmVUZyyX8Sd98Z9hU7Fny26W96sjKiTw8g' | |
5 | 5 | ||
6 | - | let b = base58' | |
6 | + | let b = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4' | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func IssueA4A () = { | |
10 | 10 | let d = value(c.payments[0]) | |
11 | 11 | let e = toBase58String(c.caller.bytes) | |
12 | 12 | let f = getIntegerValue(this, "A4A/TN") | |
13 | 13 | let g = fraction(100000, d.amount, f) | |
14 | 14 | let h = getIntegerValue(this, "Total_Issued_A4A:") | |
15 | 15 | let i = (h + g) | |
16 | 16 | let j = getIntegerValue(this, "Total_A4A_Reserve_In_TN:") | |
17 | 17 | let k = (j + d.amount) | |
18 | 18 | let l = getIntegerValue(this, "A4A_Backup_Value_In_TN:") | |
19 | 19 | let m = fraction(100000, k, i) | |
20 | 20 | let n = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR' | |
21 | 21 | if (isDefined(d.assetId)) | |
22 | 22 | then throw("Incorrect asset attached, please attach TN.") | |
23 | 23 | else if ((5000000 > d.amount)) | |
24 | 24 | then throw("Please Attach minimum 0.05 TN To Issue A4A Asset.") | |
25 | 25 | else [IntegerEntry("Total_Issued_A4A:", i), IntegerEntry("Total_A4A_Reserve_In_TN:", k), IntegerEntry("A4A_Backup_Value_In_TN:", m), StringEntry("message", "<h1>A4A Issued Successfully!</h1><br>"), Reissue(a, g, true), ScriptTransfer(c.caller, ((g * 99) / 100), a), ScriptTransfer(addressFromPublicKey(n), ((g * 1) / 100), a)] | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | ||
30 | 30 | @Callable(c) | |
31 | 31 | func Liquidate () = { | |
32 | 32 | let e = toBase58String(c.callerPublicKey) | |
33 | 33 | let d = value(c.payments[0]) | |
34 | 34 | let h = getIntegerValue(this, "Total_Issued_A4A:") | |
35 | 35 | let o = getIntegerValue(this, "Total_Burned_A4A:") | |
36 | 36 | let i = (h - d.amount) | |
37 | 37 | let p = (o + d.amount) | |
38 | 38 | let j = getIntegerValue(this, "Total_A4A_Reserve_In_TN:") | |
39 | 39 | let l = getIntegerValue(this, "A4A_Backup_Value_In_TN:") | |
40 | 40 | let q = fraction(l, d.amount, 100000) | |
41 | 41 | let k = (j - q) | |
42 | 42 | let m = fraction(100000, k, i) | |
43 | 43 | if ((d.assetId != a)) | |
44 | 44 | then throw("Kindly Deposit Only 8hdsVCxPBVEmVUZyyX8Sd98Z9hU7Fny26W96sjKiTw8g (A4A).") | |
45 | 45 | else if ((100000 > d.amount)) | |
46 | 46 | then throw("Attach Amount must be greater than 0.001 A4A.") | |
47 | 47 | else [Burn(a, d.amount), IntegerEntry("Total_Issued_A4A:", i), IntegerEntry("Total_Burned_A4A:", p), IntegerEntry("Total_A4A_Reserve_In_TN:", k), IntegerEntry("A4A_Backup_Value_In_TN:", m), StringEntry("message", "<h1>A4A Liquidated Successfully!</h1><br>"), ScriptTransfer(c.caller, q, unit)] | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | ||
52 | 52 | @Callable(c) | |
53 | 53 | func Deposit (r) = { | |
54 | 54 | let d = if ((size(c.payments) == 1)) | |
55 | 55 | then c.payments[0] | |
56 | 56 | else throw("No payment attached, Please Attach A4A Token as per TIER in payment[1].") | |
57 | 57 | let e = toBase58String(c.caller.bytes) | |
58 | 58 | let s = 90 | |
59 | 59 | let t = "LOCKED" | |
60 | - | let u = 599999999999 | |
61 | - | let v = 1199999999999 | |
62 | - | let w = 1200000000000 | |
63 | - | let x = 1440 | |
64 | - | let y = (x * r) | |
65 | - | let z = (height + y) | |
66 | - | let A = 72000 | |
67 | - | let B = fraction(fraction(A, d.amount, pow(10, 0, 8, 0, 0, UP)), y, pow(10, 0, 6, 0, 0, UP)) | |
68 | - | let C = fraction(fraction((A * 2), d.amount, pow(10, 0, 8, 0, 0, UP)), y, pow(10, 0, 6, 0, 0, UP)) | |
69 | - | let D = fraction(fraction((A * 4), d.amount, pow(10, 0, 8, 0, 0, UP)), y, pow(10, 0, 6, 0, 0, UP)) | |
70 | - | let E = { | |
71 | - | let F = getInteger(this, ("Deposit_Amount_Of_" + e)) | |
72 | - | if ($isInstanceOf(F, "Int")) | |
60 | + | let u = 99999999999 | |
61 | + | let v = 599999999999 | |
62 | + | let w = 1199999999999 | |
63 | + | let x = 1200000000000 | |
64 | + | let y = 1440 | |
65 | + | let z = (y * r) | |
66 | + | let A = (height + z) | |
67 | + | let B = 36000 | |
68 | + | let C = fraction(fraction(B, d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP)) | |
69 | + | let D = fraction(fraction((B * 2), d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP)) | |
70 | + | let E = fraction(fraction((B * 4), d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP)) | |
71 | + | let F = fraction(fraction((B * 8), d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP)) | |
72 | + | let G = { | |
73 | + | let H = getInteger(this, ("Deposit_Amount_Of_" + e)) | |
74 | + | if ($isInstanceOf(H, "Int")) | |
73 | 75 | then { | |
74 | - | let | |
75 | - | | |
76 | + | let I = H | |
77 | + | I | |
76 | 78 | } | |
77 | 79 | else 0 | |
78 | 80 | } | |
79 | - | let | |
81 | + | let J = (G + d.amount) | |
80 | 82 | if ((d.assetId != a)) | |
81 | 83 | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " only.")) | |
82 | 84 | else if ((6 >= r)) | |
83 | 85 | then throw("Choose Locking days in between 7 to 90.") | |
84 | 86 | else if ((r > s)) | |
85 | 87 | then throw("You Entered days greater than 90 please Enter no. of days in between 7 to 90.") | |
86 | - | else if (( | |
87 | - | then throw("Please Attach minimum | |
88 | + | else if ((33300000000 > d.amount)) | |
89 | + | then throw("Please Attach minimum 333 A4A To Achieve BRONZE TIER.") | |
88 | 90 | else if ((u >= d.amount)) | |
89 | - | then [StringEntry(("Tier_Of_" + e), " | |
91 | + | then [StringEntry(("Tier_Of_" + e), "BRONZE"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), J), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), B)] | |
90 | 92 | else if ((v >= d.amount)) | |
91 | - | then [StringEntry(("Tier_Of_" + e), "GOLD"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), H), IntegerEntry(("Total_Lock_Blocks_Of_" + e), z), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), C)] | |
92 | - | else if ((w == d.amount)) | |
93 | - | then [StringEntry(("Tier_Of_" + e), "DIAMOND"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), H), IntegerEntry(("Total_Lock_Blocks_Of_" + e), z), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), D)] | |
94 | - | else throw("Please Choose a Range Between 1000-12000.") | |
93 | + | then [StringEntry(("Tier_Of_" + e), "SILVER"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), J), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), C)] | |
94 | + | else if ((w >= d.amount)) | |
95 | + | then [StringEntry(("Tier_Of_" + e), "GOLD"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), J), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), D)] | |
96 | + | else if ((x == d.amount)) | |
97 | + | then [StringEntry(("Tier_Of_" + e), "DIAMOND"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), J), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), E)] | |
98 | + | else throw("Please Choose a Range Between 333-12000.") | |
95 | 99 | } | |
96 | 100 | ||
97 | 101 | ||
98 | 102 | ||
99 | 103 | @Callable(c) | |
100 | 104 | func Withdraw () = { | |
101 | 105 | let e = toBase58String(c.caller.bytes) | |
102 | - | let | |
103 | - | let | |
104 | - | let | |
106 | + | let K = getIntegerValue(this, ("Deposit_Amount_Of_" + e)) | |
107 | + | let L = getIntegerValue(this, "Total_USDT_Claimed:") | |
108 | + | let M = (L + getIntegerValue(this, ("Rewards_Of_" + e))) | |
105 | 109 | if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + e)) > height)) | |
106 | 110 | then throw(((("Your " + toString(getIntegerValue(this, ("Deposit_Amount_Of_" + e)))) + " A4A are Under Lock. Consider last 8 digits as value after Decimals. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + e)) - height)))) | |
107 | - | else if (( | |
111 | + | else if ((K == 0)) | |
108 | 112 | then throw("You Have Already Withdraw your Amount.") | |
109 | - | else [ScriptTransfer(c.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + e)), a), ScriptTransfer(c.caller, getIntegerValue(this, ("Rewards_Of_" + e)), b), IntegerEntry(("Deposit_height_Of_" + e), 0), IntegerEntry(("Deposit_Amount_Of_" + e), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + e), 0), StringEntry(("Lock_Status_Of_" + e), "UNLOCK"), IntegerEntry(("Rewards_Of_" + e), 0), IntegerEntry("Total_USDT_Claimed:", | |
113 | + | else [ScriptTransfer(c.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + e)), a), ScriptTransfer(c.caller, getIntegerValue(this, ("Rewards_Of_" + e)), b), IntegerEntry(("Deposit_height_Of_" + e), 0), IntegerEntry(("Deposit_Amount_Of_" + e), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + e), 0), StringEntry(("Lock_Status_Of_" + e), "UNLOCK"), IntegerEntry(("Rewards_Of_" + e), 0), IntegerEntry("Total_USDT_Claimed:", M)] | |
110 | 114 | } | |
111 | 115 | ||
112 | 116 | ||
113 | - | @Verifier( | |
114 | - | func | |
117 | + | @Verifier(N) | |
118 | + | func O () = sigVerify(N.bodyBytes, N.proofs[0], N.senderPublicKey) | |
115 | 119 |
github/deemru/w8io/169f3d6 38.82 ms ◑