Remove Minting call from DepositFunding
@@ -87,23 +87,6 @@ library DepositFunding {
}
}
- /// @notice Mints TBTC tokens.
- /// @dev Minted value is based on a configured lot size. The lot size,
- /// which is specified in satoshi is multiplied to match TBTC token unit.
- /// Minted tokens are split between the beneficiary (99,5%) and the deposit
- /// contract (0,5%).
- function mintTBTC(DepositUtils.Deposit storage _d) internal {
- TBTCToken _tbtcToken = TBTCToken(_d.TBTCToken);
-
- uint256 _multiplier = TBTCConstants.getSatoshiMultiplier();
- uint256 _signerFee = DepositUtils.signerFee();
-
- uint256 _totalValue = TBTCConstants.getLotSize().mul(_multiplier);
-
- _tbtcToken.mint(_d.depositBeneficiary(), _totalValue.sub(_signerFee));
- _tbtcToken.mint(address(this), _signerFee);
- }
-
/// @notice slashes the signers partially for committing fraud before funding occurs
/// @dev called only by notifyFraudFundingTimeout
function partiallySlashForFraudInFunding(DepositUtils.Deposit storage _d) public {
@@ -304,7 +287,7 @@ library DepositFunding {
bytes memory _merkleProof,
uint256 _txIndexInBlock,
bytes memory _bitcoinHeaders
- ) public returns (bool) {
+ ) public returns (bool) { //TODO Implement ACL for Vending Machine
require(_d.inAwaitingBTCFundingProof(), "Not awaiting funding");
@@ -339,8 +322,6 @@ library DepositFunding {
returnFunderBond(_d);
- mintTBTC(_d);
-
return true;
}
}
