TransactionSEALED
@&▪◆**▓?▫!$*░□╱╲▫◆?#▒■▒▫@#╲●╱!@*╱◆◆#╱○●◆○&■╲#●~*$●█╳■*■█╱#!□▫●■%
Transaction ID
Execution Error
[Error Code: 1118] error caused by: 1 error occurred: * [Error Code: 1118] payer d566590bf98ecab2 has insufficient balance to attempt transaction execution (required balance: 0.00100000)
Transaction Summary
Contract CallCalled FixesHeartbeat, FRC20FTShared, FRC20AccountsPool +1 more
Script Arguments
Cadence Script
1// Fixes imports
2import FixesHeartbeat from 0xd2abb5dbf5e08666
3import FRC20FTShared from 0xd2abb5dbf5e08666
4import FRC20AccountsPool from 0xd2abb5dbf5e08666
5import FRC20StakingManager from 0xd2abb5dbf5e08666
6
7transaction() {
8 let heartbeat: &FixesHeartbeat.Heartbeat
9
10 prepare(acct: auth(Storage, Capabilities) &Account) {
11 /** ------------- Start -- Fixes Heartbeat Initialization ------------ */
12 // ensure resource
13 if acct.storage.borrow<&AnyResource>(from: FixesHeartbeat.storagePath) == nil {
14 acct.storage.save(<- FixesHeartbeat.createHeartbeat(), to: FixesHeartbeat.storagePath)
15 }
16 /** ------------- End ---------------------------------------------------------- */
17
18 self.heartbeat = acct.storage.borrow<&FixesHeartbeat.Heartbeat>(from: FixesHeartbeat.storagePath)
19 ?? panic("Could not borrow a reference to the heartbeat")
20 }
21
22 execute {
23 let acctsPool = FRC20AccountsPool.borrowAccountsPool()
24 // Tick for staking
25 let platformTickerName = FRC20FTShared.getPlatformStakingTickerName()
26 if acctsPool.getFRC20StakingAddress(tick: platformTickerName) != nil {
27 self.heartbeat.tick(scope: "Staking:".concat(platformTickerName))
28 }
29 // Tick for lottery
30 self.heartbeat.tick(scope: "FGameLottery")
31 // Tick for Votes
32 self.heartbeat.tick(scope: "FRC20Votes")
33 // Tick for TradablePool
34 self.heartbeat.tick(scope: "TradablePool")
35 }
36}