tx · 73dNQYWr4FdDufzhReFYEAM7fvJqkoLMhXjLXT4Laavk

3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx:  -0.01000000 Waves

2023.05.25 09:56 [2593171] smart account 3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx > SELF 0.00000000 Waves

{ "type": 13, "id": "73dNQYWr4FdDufzhReFYEAM7fvJqkoLMhXjLXT4Laavk", "fee": 1000000, "feeAssetId": null, "timestamp": 1684997945152, "version": 2, "chainId": 84, "sender": "3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx", "senderPublicKey": "DyeDJ3fgwVVux2WRkxpLU9BbVjTM96AyV58b7bRFzCBx", "proofs": [ "5mzGrZ1pRekA6n8WHxgRjGFqeYQeLGFffA2Lc6BioaRe7UaGtmZt2xhDAE44CMqZg32FVHJY49ZZQ97mm81323pC" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIBAQAAAAAAAAABAAAAAWkBAAAAE3dpdGhkcmF3UGxhdGZvcm1GZWUAAAACAAAAC3BsYXRmb3JtRmVlAAAABmFtb3VudAQAAAAFdGVhbXMBAAAAIfcoSQ31oz6b+rRY1kQ9QCcgUMGrrCX9mXccy5/OlJJ56gQAAAAPY29udHJhY3RBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABAQAAACDAztgYo4k12hVEY1IOrRi9ViMCFs7wn+/B34bitBbfTwQAAAAHYmFsYW5jZQkAA+8AAAABBQAAAAR0aGlzAwMJAABnAAAAAgUAAAALcGxhdGZvcm1GZWUAAAAAAAAAAAAJAABnAAAAAgUAAAALcGxhdGZvcm1GZWUFAAAABmFtb3VudAcJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAZhbW91bnQFAAAABXRlYW1zBQAAAANuaWwFAAAAA25pbAAAAAARcPcF", "height": 2593171, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5eZn7cBWSyBjtPyUJXgSCTCuu1BmbRJLkL8hyuWwuBKz Next: GhHVBPp7PEjYy4U2fyaepbkd2NRRvqUqtER6U4bCZ1HW Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq'
54
6-let WAVES = base58''
75
86 @Callable(i)
9-func waveTransfer (recepientAddr) = {
10- let caller = i.caller.bytes
11- let reciver = fromBase58String(recepientAddr)
12- let amount = i.payments[0].amount
13- let senderBalance = assetBalance(i.caller, base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq')
14- if ((i.payments[0].assetId == unit))
15- then [ScriptTransfer(Address(reciver), amount, unit), IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr)]
7+func withdrawPlatformFee (platformFee,amount) = {
8+ let teams = base58'2GRRVTq1EzVDGMC1XQ5zfa73TVVfDtuEXQs9z1Fek9QjkD'
9+ let contractAddress = addressFromPublicKey(base58'DyeDJ3fgwVVux2WRkxpLU9BbVjTM96AyV58b7bRFzCBx')
10+ let balance = wavesBalance(this)
11+ if (if ((platformFee >= 0))
12+ then (platformFee >= amount)
13+ else false)
14+ then [ScriptTransfer(Address(i.caller.bytes), amount, teams)]
1615 else nil
1716 }
1817
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq'
54
6-let WAVES = base58''
75
86 @Callable(i)
9-func waveTransfer (recepientAddr) = {
10- let caller = i.caller.bytes
11- let reciver = fromBase58String(recepientAddr)
12- let amount = i.payments[0].amount
13- let senderBalance = assetBalance(i.caller, base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq')
14- if ((i.payments[0].assetId == unit))
15- then [ScriptTransfer(Address(reciver), amount, unit), IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr)]
7+func withdrawPlatformFee (platformFee,amount) = {
8+ let teams = base58'2GRRVTq1EzVDGMC1XQ5zfa73TVVfDtuEXQs9z1Fek9QjkD'
9+ let contractAddress = addressFromPublicKey(base58'DyeDJ3fgwVVux2WRkxpLU9BbVjTM96AyV58b7bRFzCBx')
10+ let balance = wavesBalance(this)
11+ if (if ((platformFee >= 0))
12+ then (platformFee >= amount)
13+ else false)
14+ then [ScriptTransfer(Address(i.caller.bytes), amount, teams)]
1615 else nil
1716 }
1817
1918

github/deemru/w8io/169f3d6 
24.13 ms