Withdrawing Contract Fees
The withdrawContractFees function allows the owner of the contract to withdraw the accumulated fees. This function simply transfers the fees to the specified recipient.
Function Breakdown
The function first saves the current balance of the contract in a local variable and then sets the contract balance to 0.
The
transfer
function of the PBetsToken contract is then called, which transfers the saved balance from the contract to the recipient.
Last updated