mirror of
https://github.com/status-im/dagger-contracts.git
synced 2025-01-16 09:35:28 +00:00
7e6187d4b1
Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com> Co-authored-by: r4bbit <445106+0x-r4bbit@users.noreply.github.com>
10 lines
249 B
JavaScript
10 lines
249 B
JavaScript
function maxPrice(request) {
|
|
return request.ask.slots * request.ask.duration * request.ask.reward
|
|
}
|
|
|
|
function payoutForDuration(request, start, end) {
|
|
return (end - start) * request.ask.reward
|
|
}
|
|
|
|
module.exports = { maxPrice, payoutForDuration }
|