I have a question about energy rental automation using smart contracts.
The way I want to do this is to call a smart contract to automatically rent and return energy.
I checked the two smart contracts and also looked at the energy rental related documents and APIs below, but I didn’t see a way to use a smart contract.
When renting 1,000,000 units of energy per day, I want to predict the rental fee and deposit.
The reason is that I want to automate energy rentals when energy is insufficient by directly calling a smart contract.
Also, if there’s a way to estimate the deposit and rental fee, please let me know.
The official energy rental formula doesn’t actually work. Even if I calculate the value of _rentRate() according to the documentation, the actual fee is significantly different.
Liquidate(index_topic_1addressliquidator,index_topic_2addressrenter,index_topic_3addressreceiver,uint256amount,uint256resourceType,uint256usageRental,uint256liquidateFee,uint256sendBack)
fd8527a1 rentResource(address receiver,uint256 amount,uint256 resourceType)
ResourceRented(index_topic_1addressresourceRenter,index_topic_2addressresourceReceiver,index_topic_3uint256resourceType,uint256resourceAmount)