tx · 4TKUWPBoMW8BGMBYAYHawuoGfx2F6aun89AZ34CnmKmP

3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw:  -0.01000000 Waves

2022.06.08 22:09 [2087788] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves

{ "type": 13, "id": "4TKUWPBoMW8BGMBYAYHawuoGfx2F6aun89AZ34CnmKmP", "fee": 1000000, "feeAssetId": null, "timestamp": 1654715383375, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "3czyJggy3cQxfeKJav2TBJiyUy43pPWDRf8xDdrbDdmQgCYsxhSYJ4E3GPQFHwEQa4XAzeU1iVmTBrbaQHieLmGJ" ], "script": "base64:AAIFAAAAAAAAAAsIAhIAEgMKAQgSAAAAAA0AAAAABEhBU0gBAAAAIJklwE3i+u/bc48vf4d/BnVXhMLmuX4eB+81QVXPc36rAAAAAAhLcm9zc0NhcgEAAAAgNewIuJ8fl0L3aDIXfe5KYUI4pQbPPcpdLtTikAZosrsAAAAABlRvd2luZwEAAAAgLzVn9FxXOELHRV9NM7WHnRz83AP0i2FsXYU/kxb44koAAAAACGRBcHBGZWVzAQAAABoBV5prAZfpnthmNq2ZMbws44Htl6ZEmG28iwAAAAAJQWRtaW5kQXBwAQAAABoBV9BDQuIchL6bmoa833jKal/OBiGoZGoQDgAAAAAJTWluQW1vdW50AAAAAAAAAAK8AAAAAA5Lcm9zc0NhclJld2FyZAAAAAAAAAAAAQAAAAAMVG93aW5nUmV3YXJkAAAAAAAAAAABAAAAAApSZWZlcnJlVGlwAAAAAAAAAAABAAAAAAxtaW5Kb2luV2Vla3MAAAAAAAAAAAgAAAAAClRpbWVUb3dpbmcAAAAAAAAAAB4AAAAABFdlZWsAAAAAAAAAAAoAAAAAA0RheQAAAAAAAAAABQAAAAMAAAAB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IFAAAACU1pbkFtb3VudAAAAAAABfXhAAkAAGkAAAACCQAAaAAAAAIFAAAABmFtb3VudAkAAGUAAAACBQAAAAZoZWlnaHQFAAAAEVVzZXJNYXR1cml0eVZhbHVlBQAAAARXZWVrBgkAAGYAAAACCQAAaAAAAAIFAAAADG1pbkpvaW5XZWVrcwUAAAAEV2VlawkAAGUAAAACBQAAAAZoZWlnaHQFAAAAEVVzZXJNYXR1cml0eVZhbHVlBgkAAGYAAAACCQAAaAAAAAIFAAAAClRpbWVUb3dpbmcFAAAAA0RheQUAAAAUTGFzdFRvd2luZ0Jsb2NrVmFsdWUJAAACAAAAAQIAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAAQX0xhc3RUb3dpbmdCbG9jawUAAAAGaGVpZ2h0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAGgAAAACBQAAAAxUb3dpbmdSZXdhcmQAAAAAAAX14QAFAAAABlRvd2luZwUAAAADbmlsAAAAABpTTZE=", "height": 2087788, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8wn6b7KHg9Xxt7x4Frs34WsdRdZg2nSba621tRE6U7TJ Next: FCV8jNouP2vzJST2wBHZK4yJN4xETN5ftGQbMpLLqqrc Diff:
OldNewDifferences
3939 let pmt = if ((size(i.payments) == 1))
4040 then i.payments[0]
4141 else throw("Attached payment is required")
42- if (if (((MinAmount * 100000000) >= pmt.amount))
42+ if (if (((MinAmount * 100000000) > pmt.amount))
4343 then true
4444 else (pmt.assetId != HASH))
4545 then throw("Can only deposit HASH tokens, and minimum amount is 700 HASH")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let HASH = base58'BJpmNoB9MABJ1ytHhbLNxuUaeoYcYVeTM1r7kh39P24i'
55
66 let KrossCar = base58'4dVMkKtzaWuHC21kmxBBUwKQ5LGayLZLV9snpkJxsGeW'
77
88 let Towing = base58'4BHPskP7pBoXLD7U8nk54CstqbsqRvuWr3SDP8uMrz5w'
99
1010 let dAppFees = base58'3PG1NyiC2rdgX46jb8c5zPGuEAzWXhr4L2W'
1111
1212 let AdmindApp = base58'3PLv5rYMqR4gSiP5ZSjrX2FStLhHTRgFPbb'
1313
1414 let MinAmount = 700
1515
1616 let KrossCarReward = 1
1717
1818 let TowingReward = 1
1919
2020 let ReferreTip = 1
2121
2222 let minJoinWeeks = 8
2323
2424 let TimeTowing = 30
2525
2626 let Week = 10
2727
2828 let Day = 5
2929
3030 @Callable(i)
3131 func DepositHASH () = {
3232 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
3333 let amount = match getInteger(this, UserDeposit) {
3434 case a: Int =>
3535 a
3636 case _ =>
3737 0
3838 }
3939 let pmt = if ((size(i.payments) == 1))
4040 then i.payments[0]
4141 else throw("Attached payment is required")
42- if (if (((MinAmount * 100000000) >= pmt.amount))
42+ if (if (((MinAmount * 100000000) > pmt.amount))
4343 then true
4444 else (pmt.assetId != HASH))
4545 then throw("Can only deposit HASH tokens, and minimum amount is 700 HASH")
4646 else {
4747 let UserDepositValue = (amount + pmt.amount)
4848 [IntegerEntry((toBase58String(i.caller.bytes) + "_Deposit"), UserDepositValue), IntegerEntry((toBase58String(i.caller.bytes) + "_DepositBlock"), height), ScriptTransfer(i.caller, (KrossCarReward * 100000000), KrossCar)]
4949 }
5050 }
5151
5252
5353
5454 @Callable(i)
5555 func RewardReferrer (UserWalletAddress) = {
5656 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
5757 let TippedStatus = (toBase58String(i.caller.bytes) + "_TippedStatus")
5858 let amount = match getInteger(this, UserDeposit) {
5959 case a: Int =>
6060 a
6161 case _ =>
6262 0
6363 }
6464 let TippedStatusValue = getStringValue(this, TippedStatus)
6565 if ((TippedStatusValue == "YES"))
6666 then throw("You already tipped a User, you only can tip once a user")
6767 else if (((MinAmount * 100000000) > amount))
6868 then throw((("To tip your referrer you must have at least deposited: " + toString(MinAmount)) + " HASH"))
6969 else [StringEntry((toBase58String(i.caller.bytes) + "_TippedStatus"), "YES"), ScriptTransfer(i.caller, (ReferreTip * 100000000), KrossCar)]
7070 }
7171
7272
7373
7474 @Callable(i)
7575 func RequestTowing () = {
7676 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
7777 let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock")
7878 let LastTowingBlock = (toBase58String(i.caller.bytes) + "_LastTowingBlock")
7979 let amount = match getInteger(this, UserDeposit) {
8080 case a: Int =>
8181 a
8282 case _ =>
8383 0
8484 }
8585 let UserMaturityValue = match getInteger(this, UserMaturity) {
8686 case a: Int =>
8787 a
8888 case _ =>
8989 0
9090 }
9191 let LastTowingBlockValue = match getInteger(this, LastTowingBlock) {
9292 case a: Int =>
9393 a
9494 case _ =>
9595 0
9696 }
9797 if (if (if (((MinAmount * 100000000) > ((amount * (height - UserMaturityValue)) / Week)))
9898 then true
9999 else ((minJoinWeeks * Week) > (height - UserMaturityValue)))
100100 then true
101101 else ((TimeTowing * Day) > LastTowingBlockValue))
102102 then throw("")
103103 else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(i.caller, (TowingReward * 100000000), Towing)]
104104 }
105105
106106

github/deemru/w8io/169f3d6 
24.23 ms