New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network fees infomation #317
Conversation
Hi @AnthonyLaw, you might want to wait a bit until this is merged to just call one endpoint: symbol/catapult-rest#251 |
src/infrastructure/getStatistics.js
Outdated
|
||
const getAverageNetworkFees = async () => { | ||
const maxDifficultyBlocks = await sdkBlock.getBlocksFromHeightWithLimit(Constants.NetworkConfig.MAX_DIFFICULTY_BLOCKS) | ||
const maxDifficultyBlocksFeeMultipliers = maxDifficultyBlocks.map(({ feeMultiplier }) => parseFloat(feeMultiplier) > 0 ? parseFloat(feeMultiplier) : Constants.NetworkConfig.DEFAULT_DYNAMIC_FEE_MULTIPLIER / Math.pow(10, Constants.NetworkConfig.NATIVE_MOSAIC_DIVISIBILITY)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Constants.NetworkConfig.DEFAULT_DYNAMIC_FEE_MULTIPLIER only applies to rental fees, not to transaction fees recommendation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, thanks for clearify
@dgarcia360 Glad to know that, Thanks. |
refer #388 |
Resolved: #267
Added
Recommended Network fees
myself define the network rate for
Fast : 3
andSlow : 0.5
taking the
rate * averageNetworkFees
=Recommended Network fees
Effective Rental Fees
I refer the calculation here
namespaceRentalEffectiveFee = rootNamespaceRentalFeePerBlock * medianNetworkMultiplier
medianNetworkMultiplier = 0.000282
rootNamespaceRentalFeePerBlock = 0.000001
The fees i will get
0.000000000282
with fix 6 decimal0.000000
which is something wrong.need input from you guys.
@dgarcia360 @evias