Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion contracts/FlowTransactionScheduler.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,10 @@ access(all) contract FlowTransactionScheduler {
// Calculate the FLOW required to pay for storage of the transaction data
let storageFee = FlowStorageFees.storageCapacityToFlow(dataSizeMB)

return scaledExecutionFee + storageFee
// Add inclusion Flow fee for scheduled transactions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this be better to just include in the FlowFees.computeFees call in calculateFees(). We can just use a higher inclusion effort there

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah but that wouldn't really be a base fee since it would depend on the priority. This felt to me more natural to think, like X is always minimum what you have to pay (no matter priority). But I'm open to change if you feel strongly against. How do you feel about the amount btw?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I just don't understand the purpose of this. Because the minimum execution effort is 100, there is always a minimum fee, so this feel unnecessary

let inclusionFee = 0.00001

return scaledExecutionFee + storageFee + inclusionFee
}

/// getNextIDAndIncrement returns the next ID and increments the ID counter
Expand Down
Loading