Skip to content

Commit

Permalink
chore: delegation multople
Browse files Browse the repository at this point in the history
  • Loading branch information
foodaka committed Dec 22, 2023
1 parent bfbf216 commit 64cf25a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/helpers/useGovernanceDelegate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ export const useGovernanceDelegate = (
console.log('SIGNATURE', signatures);

const { v: v1, r: r1, s: s1 } = utils.splitSignature(signatures[0]);
// const { v: v2, r: r2, s: s2 } = utils.splitSignature(signatures[1]);
// const { v: v3, r: r3, s: s3 } = utils.splitSignature(signatures[2]);
const { v: v2, r: r2, s: s2 } = utils.splitSignature(signatures[1]);
const { v: v3, r: r3, s: s3 } = utils.splitSignature(signatures[2]);

let txs: EthereumTransactionTypeExtended[] = [];

Expand Down Expand Up @@ -135,7 +135,7 @@ export const useGovernanceDelegate = (
v: utils.splitSignature(signatures[1]).v,
r: utils.splitSignature(signatures[1]).r,
s: utils.splitSignature(signatures[1]).s,
delegationType: DelegationType.BOTH,
delegationType: GovernancePowerTypeApp.All,
},
{
delegator: user,
Expand All @@ -145,7 +145,7 @@ export const useGovernanceDelegate = (
v: utils.splitSignature(signatures[2]).v,
r: utils.splitSignature(signatures[2]).r,
s: utils.splitSignature(signatures[2]).s,
delegationType: DelegationType.BOTH,
delegationType: GovernancePowerTypeApp.All,
},
];

Expand Down Expand Up @@ -465,7 +465,7 @@ export const useGovernanceDelegate = (
deadline,
nonce: String(stkAaveNonce),
delegationType: GovernancePowerTypeApp.All,
governanceTokenName: 'Staked Token',
governanceTokenName: 'Staked Aave',
increaseNonce: false,
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/modules/governance/DelegatedInfoPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const DelegatedPower: React.FC<DelegatedPowerProps> = ({
>
<Box sx={{ display: 'flex', flexDirection: 'column', alignItems: 'flex-end' }}>
<FormattedNumber
value={Number(aavePower) + Number(stkAavePower)}
value={Number(aavePower) + Number(stkAavePower) + Number(aAavePower)}
variant="subheader1"
/>
<Typography variant="helperText" color="text.secondary">
Expand Down

0 comments on commit 64cf25a

Please sign in to comment.