Add case for TDT owner at-term dredemption
at-term redemption should not cost a full TBTC if the caller is also the TDT owner
@@ -70,6 +70,12 @@ library DepositRedemption {
}
return 0;
}
+ if(_d.depositOwner() == msg.sender){
+ if(_d.feeRebateTokenHolder() != msg.sender) {
+ return _d.signerFee();
+ }
+ return 0;
+ }
return TBTCConstants.getLotSize().mul(TBTCConstants.getSatoshiMultiplier());
}
