codex-contracts-eth/test/price.js

10 lines
208 B
JavaScript
Raw Permalink 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 }