Skip to content

Commit

Permalink
Merge pull request #2556 from BibliothecaDAO/hyper-fix
Browse files Browse the repository at this point in the history
ceiling amount contribute
  • Loading branch information
ponderingdemocritus authored Dec 17, 2024
2 parents c78ae1e + e21b600 commit 3a505c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const HyperstructureResourceChip = ({

let maxContributableAmount = Math.min(progress.costNeeded! - progress.amount, balance);
maxContributableAmount *= progress.costNeeded - progress.amount > balance ? safetyMargin : 1;
maxContributableAmount = Math.floor(maxContributableAmount);
maxContributableAmount = Math.ceil(maxContributableAmount);

useEffect(() => {
let contributionsCopy = Object.assign({}, contributions);
Expand Down

0 comments on commit 3a505c8

Please sign in to comment.