mirror of
https://github.com/mempool/mempool.git
synced 2024-12-26 16:24:26 +01:00
Merge pull request #1738 from mempool/nymkappa/feature/additional-fee-tiers
Add `economyFee` field in /api/fees/recommended API
This commit is contained in:
commit
cee15020fd
@ -1,4 +1,3 @@
|
|||||||
import config from '../config';
|
|
||||||
import { MempoolBlock } from '../mempool.interfaces';
|
import { MempoolBlock } from '../mempool.interfaces';
|
||||||
import { Common } from './common';
|
import { Common } from './common';
|
||||||
import mempool from './mempool';
|
import mempool from './mempool';
|
||||||
@ -19,6 +18,7 @@ class FeeApi {
|
|||||||
'fastestFee': this.defaultFee,
|
'fastestFee': this.defaultFee,
|
||||||
'halfHourFee': this.defaultFee,
|
'halfHourFee': this.defaultFee,
|
||||||
'hourFee': this.defaultFee,
|
'hourFee': this.defaultFee,
|
||||||
|
'economyFee': minimumFee,
|
||||||
'minimumFee': minimumFee,
|
'minimumFee': minimumFee,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -31,6 +31,7 @@ class FeeApi {
|
|||||||
'fastestFee': firstMedianFee,
|
'fastestFee': firstMedianFee,
|
||||||
'halfHourFee': secondMedianFee,
|
'halfHourFee': secondMedianFee,
|
||||||
'hourFee': thirdMedianFee,
|
'hourFee': thirdMedianFee,
|
||||||
|
'economyFee': Math.min(2 * minimumFee, thirdMedianFee),
|
||||||
'minimumFee': minimumFee,
|
'minimumFee': minimumFee,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -4470,6 +4470,7 @@ export const restApiDocsData = [
|
|||||||
fastestFee: 1,
|
fastestFee: 1,
|
||||||
halfHourFee: 1,
|
halfHourFee: 1,
|
||||||
hourFee: 1,
|
hourFee: 1,
|
||||||
|
economyFee: 1,
|
||||||
minimumFee: 1
|
minimumFee: 1
|
||||||
}`
|
}`
|
||||||
},
|
},
|
||||||
@ -4481,6 +4482,7 @@ export const restApiDocsData = [
|
|||||||
fastestFee: 1,
|
fastestFee: 1,
|
||||||
halfHourFee: 1,
|
halfHourFee: 1,
|
||||||
hourFee: 1,
|
hourFee: 1,
|
||||||
|
economyFee: 1,
|
||||||
minimumFee: 1
|
minimumFee: 1
|
||||||
}`
|
}`
|
||||||
},
|
},
|
||||||
@ -4492,6 +4494,7 @@ export const restApiDocsData = [
|
|||||||
fastestFee: 1,
|
fastestFee: 1,
|
||||||
halfHourFee: 1,
|
halfHourFee: 1,
|
||||||
hourFee: 1,
|
hourFee: 1,
|
||||||
|
economyFee: 1,
|
||||||
minimumFee: 1
|
minimumFee: 1
|
||||||
}`
|
}`
|
||||||
},
|
},
|
||||||
@ -4503,7 +4506,8 @@ export const restApiDocsData = [
|
|||||||
fastestFee: 0.1,
|
fastestFee: 0.1,
|
||||||
halfHourFee: 0.1,
|
halfHourFee: 0.1,
|
||||||
hourFee: 0.1,
|
hourFee: 0.1,
|
||||||
minimumFee: 1
|
economyFee: 0.1,
|
||||||
|
minimumFee: 0.1
|
||||||
}`
|
}`
|
||||||
},
|
},
|
||||||
codeSampleLiquidTestnet: {
|
codeSampleLiquidTestnet: {
|
||||||
@ -4514,7 +4518,8 @@ export const restApiDocsData = [
|
|||||||
fastestFee: 0.1,
|
fastestFee: 0.1,
|
||||||
halfHourFee: 0.1,
|
halfHourFee: 0.1,
|
||||||
hourFee: 0.1,
|
hourFee: 0.1,
|
||||||
minimumFee: 1
|
economyFee: 0.1,
|
||||||
|
minimumFee: 0.1
|
||||||
}`
|
}`
|
||||||
},
|
},
|
||||||
codeSampleBisq: emptyCodeSample,
|
codeSampleBisq: emptyCodeSample,
|
||||||
|
Loading…
Reference in New Issue
Block a user