@0x:contracts-staking
Updated payProtocolFee trivially to fix the build.
This is not a real to update to `payProtocolFee`. Rather, the interface was updated to it's finished state. This will be addressed in my next PR.
This commit is contained in:
@@ -189,7 +189,9 @@ export class Simulation {
|
||||
const maker = this._makers[i];
|
||||
const makerAddress = maker.getOwner();
|
||||
const feeAmount = p.protocolFeesByMaker[i];
|
||||
await this._stakingWrapper.payProtocolFeeAsync(makerAddress, feeAmount, p.exchangeAddress);
|
||||
// TODO(jalextowle): I'll need to fix this once I make my PR on protocol fees. The arguments
|
||||
// I'm adding are just placeholders for now.
|
||||
await this._stakingWrapper.payProtocolFeeAsync(makerAddress, makerAddress, feeAmount, feeAmount, p.exchangeAddress);
|
||||
}
|
||||
// validate fees per pool
|
||||
let expectedTotalFeesThisEpoch = new BigNumber(0);
|
||||
|
@@ -499,10 +499,16 @@ export class StakingWrapper {
|
||||
///// PROTOCOL FEES /////
|
||||
public async payProtocolFeeAsync(
|
||||
makerAddress: string,
|
||||
payerAddress: string,
|
||||
protocolFeePaid: BigNumber,
|
||||
amount: BigNumber,
|
||||
exchangeAddress: string,
|
||||
): Promise<TransactionReceiptWithDecodedLogs> {
|
||||
const calldata = this.getStakingContract().payProtocolFee.getABIEncodedTransactionData(makerAddress);
|
||||
const calldata = this.getStakingContract().payProtocolFee.getABIEncodedTransactionData(
|
||||
makerAddress,
|
||||
payerAddress,
|
||||
protocolFeePaid,
|
||||
);
|
||||
const txReceipt = await this._executeTransactionAsync(calldata, exchangeAddress, amount);
|
||||
return txReceipt;
|
||||
}
|
||||
|
Reference in New Issue
Block a user