Skip to content

Commit

Permalink
Ds/fix compilation bug (#8)
Browse files Browse the repository at this point in the history
* add exponential weighting on txn price limits

* fix rebase issue
  • Loading branch information
dshiell authored Nov 8, 2024
1 parent c852ef6 commit ebce771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ app.get('/address', async (_, reply) => {
* @returns New gas limit
* @brief Assumes that all inputs are non-negative
*/
function computeLimitEMA(price, limit: bigint, alpha: bigint) {
function computeLimitEMA(price: bigint, limit: bigint, alpha: bigint) {
return (price - limit) * alpha / BigInt(100) + limit;
}

Expand Down

0 comments on commit ebce771

Please sign in to comment.