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 theprotocol_fee
andprotocol_wallet
values, which are used as parameters when a new rental is created (RentingV3.start_rental
).For each rental, the
protocol_fee
andprotocol_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 theprotocol_fee
andprotocol_wallet
, which become valid for every new rental thereafter.At deployment time, a
max_protocol_fee
is set, which limits the max possibleprotocol_fee
value that theadmin
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
, andRentingV3.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