Skip to content
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

Implement custom Fusion modes #18

Open
sneurlax opened this issue Oct 24, 2023 · 2 comments
Open

Implement custom Fusion modes #18

sneurlax opened this issue Oct 24, 2023 · 2 comments
Labels
wontfix This will not be worked on

Comments

@sneurlax
Copy link
Member

See

// TODO implement custom modes.
/*
if (mode == 'custom') {
String selectType = walletConf.selector[0];
double selectAmount = walletConf.selector[1];
if (selectType == 'size' && sumValue.toInt() != 0) {
fraction = COIN_FRACTION_FUDGE_FACTOR * selectAmount / sumValue;
} else if (selectType == 'count' && selectAmount.toInt() != 0) {
fraction = COIN_FRACTION_FUDGE_FACTOR / selectAmount;
} else if (selectType == 'fraction') {
fraction = selectAmount;
}
// Note: fraction at this point could be <0 or >1 but doesn't matter.
} else */

@sneurlax
Copy link
Member Author

This isn't in the design, so I'm assuming it's not needed insofar as Stack might need it. Maybe we should compromise and implement it as an optional parameter?

@sneurlax sneurlax added the wontfix This will not be worked on label Oct 24, 2023
@sneurlax
Copy link
Member Author

sneurlax commented Oct 26, 2023

The fusiondart scaffolding required in order to use default modes has been added. Custom modes have not been implemented. See afe3e34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant