dagger-contracts/test/price.js

10 lines
208 B
JavaScript
Raw Normal View History

function price(request) {
return request.ask.slots * pricePerSlot(request)
}
function pricePerSlot(request) {
return request.ask.duration * request.ask.reward
}
module.exports = { price, pricePerSlot }