add fee estimate getter
external function returning the fee needed to create a new deposit
@@ -217,6 +217,18 @@ contract TBTCSystem is Ownable, ITBTCSystem, DepositLog {
return IRelay(relay).getPrevEpochDifficulty();
}
+ /// @notice Gets a fee estimate for creating a new Deposit.
+ /// @return Uint256 estimate.
+ function createNewDepositFeeEstimate()
+ external
+ payable
+ returns (uint256)
+ {
+ IBondedECDSAKeepVendor _keepVendor = IBondedECDSAKeepVendor(keepVendor);
+ IBondedECDSAKeepFactory _keepFactory = IBondedECDSAKeepFactory(_keepVendor.selectFactory());
+ return _keepFactory.openKeepFeeEstimate();
+ }
+
/// @notice Request a new keep opening.
/// @param _m Minimum number of honest keep members required to sign.
/// @param _n Number of members in the keep.
