Skip to content

Commit

Permalink
chore: update address book & align transformation (bgd-labs#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra authored Oct 28, 2024
1 parent 608b346 commit 44d9157
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generator/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function getAssets(pool: PoolIdentifier): string[] {
export function getEModes(pool: PoolIdentifierV3): {value: string; id: number}[] {
return Object.keys(addressBook[pool].E_MODES).map((key) => ({
// map the complex type to a string as used in the sol libs
value: addressBook[pool].E_MODES[key].label.toUpperCase().replace('-', '_').replace(' ', '_'),
value: addressBook[pool].E_MODES[key].label.toUpperCase().replace(/[^A-Z0-9]+/gi, '_'),
id: key as unknown as number,
}));
}
Expand Down
2 changes: 1 addition & 1 deletion lib/aave-helpers

0 comments on commit 44d9157

Please # to comment.