tx · 3RV13FPM6UbuMjVZ4n9ojgz4mwPJyFv1EaKrLwXwBKj2

3MpB5fPHEK9ZgW6EjiDi4nyntnRUD3d9zf6:  -0.01000000 Waves

2022.01.16 17:55 [1881646] smart account 3MpB5fPHEK9ZgW6EjiDi4nyntnRUD3d9zf6 > SELF 0.00000000 Waves

{ "type": 13, "id": "3RV13FPM6UbuMjVZ4n9ojgz4mwPJyFv1EaKrLwXwBKj2", "fee": 1000000, "feeAssetId": null, "timestamp": 1642344969324, "version": 2, "chainId": 84, "sender": "3MpB5fPHEK9ZgW6EjiDi4nyntnRUD3d9zf6", "senderPublicKey": "Fz8BCeavpVwDSotUvdUamhzyN9aAjfL3kq97YYU7fvU3", "proofs": [ "Ax9azmhmY2CFse5kiQ4sNx2XcxECRjHu6UTxQvSEd7NS6oxjGyHuJr58MH5vtZ8FhjPnLktxAKaUNGL7gvnuuki" ], "script": "base64:AAIFAAAAAAAAAAkIAhIFCgMICAgAAAAAAAAAAQAAAAFpAQAAAAVzdGFydAAAAAMAAAAGYWN0aW9uAAAABHR5cGUAAAALdmFsdWVBY3Rpb24EAAAADXRyYW5zYWN0aW9uSWQJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAASY3VycmVudFdhbGxldEJ5dGVzCAUAAAABaQAAAAZjYWxsZXIEAAAACXBheUFtb3VudAkBAAAABXZhbHVlAAAAAQgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAA1jdXJyZW50V2FsbGV0CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAB25hbWVOZnQJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAEbmZ0XwUAAAAEdHlwZQIAAAABXwkAAS8AAAACBQAAAA10cmFuc2FjdGlvbklkAAAAAAAAAAAKAgAAAAFfBQAAAA1jdXJy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AAAAAAAAEJAAJZAAAAAQUAAAALdmFsdWVBY3Rpb24FAAAAA25pbAMDAwkAAAAAAAACBQAAAAZhY3Rpb24CAAAAB1JlcXVlc3QJAABmAAAAAgUAAAAPY2FsY1RvdGFsUmV3YXJkAAAAAAAAAAAABwkAAAAAAAACBQAAAAlwYXlBbW91bnQAAAAAAAAPQkAHCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAADWJhbGFuY2VfZXhhbl8FAAAADWN1cnJlbnRXYWxsZXQFAAAACm5ld0JhbGFuY2UJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAARcmV3YXJkX3RpbWVzdGFtcF8FAAAADWN1cnJlbnRXYWxsZXQFAAAADG5vd1RpbWVzdGFtcAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAAxzYXZlX3Jld2FyZF8FAAAADWN1cnJlbnRXYWxsZXQAAAAAAAAAAAAFAAAAA25pbAMDCQAAAAAAAAIFAAAABmFjdGlvbgIAAAAIV2l0aGRyYXcJAAAAAAAAAgUAAAAJcGF5QW1vdW50AAAAAAAAHoSABwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAABJjdXJyZW50V2FsbGV0Qnl0ZXMFAAAAB2JhbGFuY2UBAAAAIMTAths9dYiMML3RSwL10nRgsR//0+WQOSWb8TmzM1n5CQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgIAAAANYmFsYW5jZV9leGFuXwUAAAANY3VycmVudFdhbGxldAUAAAADbmlsCQAAAgAAAAECAAAAOEl0IGlzIG5vdCBwb3NzaWJsZSB0byBmdWxmaWxsIHlvdXIgcmVxdWVzdCBhdCB0aGlzIHRpbWUhAAAAAD5oZR4=", "height": 1881646, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AjHdJ3NtDgBjKgHS5QzKAYunje2PhCC4dkCLu7ECHy1A Next: EaYsvjBjaei5BxMbMi3W8UdkCCKNKoDybKQaPt4EV9kW Diff:
OldNewDifferences
8686 then (payAmount == 2000000)
8787 else false)
8888 then [ScriptTransfer(currentWalletBytes, balance, base58'EF3Lw4y6NTfUUBhp3aSbfKuYEvqxR5EiTYBpvDgDFTa8'), DeleteEntry(("balance_exan_" + currentWallet))]
89- else throw("It is not possible to fulfill your request at this time! Make sure you have enough balance for the transaction or wait to try again!")
89+ else throw("It is not possible to fulfill your request at this time!")
9090 }
9191
9292
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func start (action,type,valueAction) = {
88 let transactionId = toBase58String(i.transactionId)
99 let currentWalletBytes = i.caller
1010 let payAmount = value(i.payments[0].amount)
1111 let currentWallet = toBase58String(i.caller.bytes)
1212 let nameNft = ((((((("nft_" + type) + "_") + take(transactionId, 10)) + "_") + currentWallet) + "_") + transactionId)
1313 let timestamp = take(toString(lastBlock.timestamp), 10)
1414 let balance = match getInteger(this, ("balance_exan_" + currentWallet)) {
1515 case t: Int =>
1616 t
1717 case _ =>
1818 0
1919 }
2020 let historicId = match getInteger(this, "historicId") {
2121 case t: Int =>
2222 t
2323 case _ =>
2424 0
2525 }
2626 let initialPowerNft = match getInteger(this, ("List_NFT_" + type)) {
2727 case t: Int =>
2828 t
2929 case _ =>
3030 0
3131 }
3232 let power = match getInteger(this, ("power_" + currentWallet)) {
3333 case t: Int =>
3434 t
3535 case _ =>
3636 0
3737 }
3838 let nftPower = match getInteger(this, valueAction) {
3939 case t: Int =>
4040 t
4141 case _ =>
4242 0
4343 }
4444 let rewardTimestamp = match getInteger(this, ("reward_timestamp_" + currentWallet)) {
4545 case t: Int =>
4646 t
4747 case _ =>
4848 0
4949 }
5050 let saveReward = match getInteger(this, ("save_reward_" + currentWallet)) {
5151 case t: Int =>
5252 t
5353 case _ =>
5454 0
5555 }
5656 let newPower = (power + initialPowerNft)
5757 let nowTimestamp = parseIntValue(timestamp)
5858 let calcRequestTimestamp = (nowTimestamp - rewardTimestamp)
5959 let calcReward24hours = if ((power > 0))
6060 then (86400 / (power / 100))
6161 else 0
6262 let calcTotalReward = if ((calcReward24hours > 0))
6363 then ((calcRequestTimestamp * 100000000) / calcReward24hours)
6464 else 0
6565 let newBalance = ((balance + calcTotalReward) + saveReward)
6666 let newSaveReward = if ((power == 0))
6767 then 0
6868 else (saveReward + calcTotalReward)
6969 if (if ((action == "Buy NFT"))
7070 then ((payAmount / 100000) == initialPowerNft)
7171 else false)
7272 then [Issue(((take(type, 6) + "_") + take(transactionId, 9)), "", 1, 0, false), IntegerEntry(nameNft, initialPowerNft), IntegerEntry(("power_" + currentWallet), newPower), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), newSaveReward)]
7373 else if (if (if ((action == "Send NFT"))
7474 then (currentWallet == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
7575 else false)
7676 then (payAmount == 1000000)
7777 else false)
7878 then [ScriptTransfer(Address(fromBase58String(type)), 1, fromBase58String(valueAction))]
7979 else if (if (if ((action == "Request"))
8080 then (calcTotalReward > 0)
8181 else false)
8282 then (payAmount == 1000000)
8383 else false)
8484 then [IntegerEntry(("balance_exan_" + currentWallet), newBalance), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), 0)]
8585 else if (if ((action == "Withdraw"))
8686 then (payAmount == 2000000)
8787 else false)
8888 then [ScriptTransfer(currentWalletBytes, balance, base58'EF3Lw4y6NTfUUBhp3aSbfKuYEvqxR5EiTYBpvDgDFTa8'), DeleteEntry(("balance_exan_" + currentWallet))]
89- else throw("It is not possible to fulfill your request at this time! Make sure you have enough balance for the transaction or wait to try again!")
89+ else throw("It is not possible to fulfill your request at this time!")
9090 }
9191
9292

github/deemru/w8io/169f3d6 
31.86 ms