Skip to content

Commit

Permalink
Merge pull request #2730 from decentdao/eng-288-correct-airdrop-address
Browse files Browse the repository at this point in the history
`[ENG-288]` correct airdrop target address
  • Loading branch information
Da-Colon authored Feb 11, 2025
2 parents 5d3ec43 + f658db2 commit 2e4fc35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ui/modals/AirdropModal/DnDFileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const parseRecipients = (csvText: string, decimals: number) => {
address,
amount: {
value: amount,
bigintValue: BigInt(parseFloat(amount)) * BigInt(10 ** decimals),
bigintValue: BigInt(parseFloat(amount) * 10 ** decimals),
},
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export function SafeProposalTemplatesPage() {
if (!safeAddress) return;

const totalAmount = data.recipients.reduce((acc, recipient) => acc + recipient.amount, 0n);

addAction({
actionType: ProposalActionType.AIRDROP,
content: <></>,
Expand All @@ -65,7 +66,7 @@ export function SafeProposalTemplatesPage() {
],
},
{
targetAddress: data.asset.tokenAddress,
targetAddress: disperse,
ethValue: {
bigintValue: 0n,
value: '0',
Expand Down

0 comments on commit 2e4fc35

Please sign in to comment.