Protocol Fees

The protocol supports the definition of a fee to be applied over the rental's amount. It works as follows:

  • The RentingV3.vy contract stores the protocol_fee and protocol_wallet values, which are used as parameters when a new rental is created (RentingV3.start_rental).

  • For each rental, the protocol_fee and protocol_wallet initially defined are not changed, meaning the conditions defined during rental creation are valid for the full life of the rental.

  • The admin role can change both the protocol_fee and protocol_wallet, which become valid for every new rental thereafter.

  • At deployment time, a max_protocol_fee is set, which limits the max possible protocol_fee value that the admin can set. This value can't be changed.

  • Protocol fees follow a similar process to rental rewards, meaning that they can be accumulated and transfered on specific actions: RentingV3.withdraw, RentingV3.claim, RentingV3.close_rental, and RentingV3.extend_rental.

  • In case of early rental cancelation (RentingV3.close_rental) the fees are applied over the pro-rata rental amount, similarly to the rewards.

Last updated