Calculate the required "collateral" the a transaction must put up if it is running smart contracts.
This is to prevent DDOS attacks with failing scripts, and must be some percentage above the total fee of the script.
Parameters
fee: bigint
The full transaction fee
collateralPercentage: number
The protocol parameter defining the buffer above the fee that is required
Calculate the required "collateral" the a transaction must put up if it is running smart contracts. This is to prevent DDOS attacks with failing scripts, and must be some percentage above the total fee of the script.