tx · FVpz14Ng6RHz1uoaoe8xomDYGgCPUSANaoWrnijKiv7L

3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo:  -0.01400000 Waves

2021.10.14 08:40 [1745531] smart account 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo > SELF 0.00000000 Waves

{ "type": 13, "id": "FVpz14Ng6RHz1uoaoe8xomDYGgCPUSANaoWrnijKiv7L", "fee": 1400000, "feeAssetId": null, "timestamp": 1634190147996, "version": 2, "chainId": 84, "sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo", "senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x", "proofs": [ "2A5iu3xFHJAciazAZQjTLuXnQASnaYno2k7MbR471LzPU1sqPA5jFq3i94aynDw2uxZoAAqC7XdpzvoXTbr9AyjU" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAACgAAAAALQ09ERUFzc2V0SUQBAAAAINAEYRpFnLQZXHk7APbo5tWij1YQ2cG3R/UN12TTTH73AAAAAAtTdGFydEhlaWdodAAAAAAAABqh+AAAAAAGb25lZGF5AAAAAAAAAAWgAAAAAA9taW5pbXVtbG9ja2RheXMAAAAAAAAAAAYAAAAAD21heGltdW1sb2NrZGF5cwAAAAAAAAAABwAAAAAJYmxvY2tkaWZmCQAAZQAAAAIFAAAABmhlaWdodAUAAAALU3RhcnRIZWlnaHQAAAAAC0luZmxhdGlvbk5vCQAAZAAAAAIJAABrAAAAAwAAAAACVAvkAAAAAAAAAAAAAQUAAAAJYmxvY2tkaWZmAAAAAAAAABdwAAAAAAtTdGFraW5nRGFwcAEAAAAgo7WknlFYQG5NE/mpBZyxqA4fl+GkedKP+NopRLlOBBYAAAAACkZlZUFkZHJlc3MBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAApkZXZBZGRyZXNzAQAAACBxPzntQa7CXqUpHrNREofekMqtlOVQyxdZBdjFyNZ4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W1BbW91bnQFAAAAC0NPREVBc3NldElEBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tledB1lys=", "height": 1745531, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Gw99fbTjAWAi6XRChedWTpgfC1epdEuwSHc1MDjgxn7k Next: D4z7dwdLVriabLQwytQUEGdzXRvjQNGdoPSA5Feb4ka Diff:
OldNewDifferences
4747 else if ((d >= l))
4848 then throw(((("Choose Locking days in between " + toString((d + 1))) + " to ") + toString(e)))
4949 else if ((l > e))
50- then throw(((("You Entered days greater than 200 please Enter no. of days in between " + toString((d + 1))) + " to ") + toString(e)))
50+ then throw(((((("You Entered days to " + toString(l)) + ", Please Enter no. of days in between ") + toString((d + 1))) + " to ") + toString(e)))
5151 else if ((100000 > m.amount))
5252 then throw("Please Attach minimum 0.001 CODE To Issue CODE Asset.")
5353 else if ((m.amount > p))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'F11g74azdw3SZN83raygbu9useimfTwSQ7HmTLggAq26'
55
66 let b = 1745400
77
88 let c = 1440
99
1010 let d = 6
1111
1212 let e = 7
1313
1414 let f = (height - b)
1515
1616 let g = (fraction(10000000000, 1, f) + 6000)
1717
1818 let h = base58'C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV'
1919
2020 let i = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
2121
2222 let j = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
2323
2424 @Callable(k)
2525 func Deposit (l) = {
2626 let m = if ((size(k.payments) == 1))
2727 then k.payments[0]
2828 else throw("No Payments Attached Please Attach CODE Asset Only.")
2929 let n = toBase58String(k.caller.bytes)
3030 let o = ((((g * m.amount) * l) / 365) / 1000)
3131 let p = (f * 100000)
3232 let q = (c * l)
3333 let r = (height + q)
3434 let s = getIntegerValue(this, "Total_Issued_CODE:")
3535 let t = (s + o)
3636 let u = getIntegerValue(this, "Total_Burned_CODE:")
3737 let v = (u + m.amount)
3838 let w = getIntegerValue(this, "Total_Txns:")
3939 let x = (w + 1)
4040 let y = valueOrErrorMessage(getInteger(addressFromPublicKey(h), ("Deposit_height_Of_" + n)), "Your Address not Found on Staking DApp")
4141 let z = valueOrErrorMessage(getInteger(addressFromPublicKey(h), ("Total_Lock_Blocks_Of_" + n)), "Your Address not Found on Staking DApp")
4242 let A = (z - y)
4343 if ((b > height))
4444 then throw((("DApp is Not Started Yet please Wait until " + toString((b - height))) + " blocks"))
4545 else if ((m.assetId != a))
4646 then throw(("Incorrect asset attached, please attach " + toBase58String(a)))
4747 else if ((d >= l))
4848 then throw(((("Choose Locking days in between " + toString((d + 1))) + " to ") + toString(e)))
4949 else if ((l > e))
50- then throw(((("You Entered days greater than 200 please Enter no. of days in between " + toString((d + 1))) + " to ") + toString(e)))
50+ then throw(((((("You Entered days to " + toString(l)) + ", Please Enter no. of days in between ") + toString((d + 1))) + " to ") + toString(e)))
5151 else if ((100000 > m.amount))
5252 then throw("Please Attach minimum 0.001 CODE To Issue CODE Asset.")
5353 else if ((m.amount > p))
5454 then throw((("You can attach maximum " + toString(p)) + "/10^8 CODE."))
5555 else if ((A != 129600))
5656 then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.")
5757 else [Burn(a, m.amount), IntegerEntry("Total_Issued_CODE:", t), IntegerEntry("Total_Burned_CODE:", v), IntegerEntry("Total_Txns:", x), IntegerEntry("Inflation", g), IntegerEntry(("Deposit_height_Of_" + n), height), IntegerEntry(("Total_Lock_Blocks_Of_" + n), r), IntegerEntry(("Claim_Amount_" + n), o), StringEntry("message", "<h1>CODE Issued Successfully!</h1><br>"), ScriptTransfer(k.caller, o, a)]
5858 }
5959
6060
6161 @Verifier(B)
6262 func C () = sigVerify(B.bodyBytes, B.proofs[0], B.senderPublicKey)
6363

github/deemru/w8io/169f3d6 
95.17 ms