Skip to content

Commit

Permalink
Merge pull request #216 from lc-labs/feature/base-hyusd-zaps
Browse files Browse the repository at this point in the history
Feature/base hyusd zaps
  • Loading branch information
jankjr authored Oct 13, 2023
2 parents 2dca0c3 + 5c34076 commit ef6bbe2
Show file tree
Hide file tree
Showing 12 changed files with 760 additions and 345 deletions.
Binary file added bun.lockb
Binary file not shown.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@popperjs/core": "^2.11.5",
"@rainbow-me/rainbowkit": "1.0.11",
"@react-spring/web": "^9.7.1",
"@reserve-protocol/token-zapper": "2.5.5",
"@reserve-protocol/token-zapper": "2.5.6",
"@uiw/react-md-editor": "^3.20.5",
"@uniswap/permit2-sdk": "^1.2.0",
"@viem/anvil": "^0.0.6",
Expand Down
169 changes: 32 additions & 137 deletions src/abis/Distributor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ export default [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'address',
name: 'dest',
type: 'address',
},
{ indexed: true, internalType: 'address', name: 'dest', type: 'address' },
{
indexed: false,
internalType: 'uint16',
Expand All @@ -59,12 +54,7 @@ export default [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint8',
name: 'version',
type: 'uint8',
},
{ indexed: false, internalType: 'uint8', name: 'version', type: 'uint8' },
],
name: 'Initialized',
type: 'event',
Expand All @@ -85,7 +75,7 @@ export default [
type: 'address',
},
{
indexed: true,
indexed: false,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
Expand All @@ -110,103 +100,58 @@ export default [
{
inputs: [],
name: 'FURNACE',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'MAX_DESTINATIONS_ALLOWED',
outputs: [
{
internalType: 'uint8',
name: '',
type: 'uint8',
},
],
outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'ST_RSR',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'cacheComponents',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'contract IERC20',
name: 'erc20',
type: 'address',
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
{ internalType: 'contract IERC20', name: 'erc20', type: 'address' },
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
],
name: 'distribute',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'distribution',
outputs: [
{
internalType: 'uint16',
name: 'rTokenDist',
type: 'uint16',
},
{
internalType: 'uint16',
name: 'rsrDist',
type: 'uint16',
},
{ internalType: 'uint16', name: 'rTokenDist', type: 'uint16' },
{ internalType: 'uint16', name: 'rsrDist', type: 'uint16' },
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'contract IMain',
name: 'main_',
type: 'address',
},
{ internalType: 'contract IMain', name: 'main_', type: 'address' },
{
components: [
{
internalType: 'uint16',
name: 'rTokenDist',
type: 'uint16',
},
{
internalType: 'uint16',
name: 'rsrDist',
type: 'uint16',
},
{ internalType: 'uint16', name: 'rTokenDist', type: 'uint16' },
{ internalType: 'uint16', name: 'rsrDist', type: 'uint16' },
],
internalType: 'struct RevenueShare',
name: 'dist',
Expand All @@ -221,48 +166,24 @@ export default [
{
inputs: [],
name: 'main',
outputs: [
{
internalType: 'contract IMain',
name: '',
type: 'address',
},
],
outputs: [{ internalType: 'contract IMain', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'proxiableUUID',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'dest',
type: 'address',
},
{ internalType: 'address', name: 'dest', type: 'address' },
{
components: [
{
internalType: 'uint16',
name: 'rTokenDist',
type: 'uint16',
},
{
internalType: 'uint16',
name: 'rsrDist',
type: 'uint16',
},
{ internalType: 'uint16', name: 'rTokenDist', type: 'uint16' },
{ internalType: 'uint16', name: 'rsrDist', type: 'uint16' },
],
internalType: 'struct RevenueShare',
name: 'share',
Expand All @@ -280,16 +201,8 @@ export default [
outputs: [
{
components: [
{
internalType: 'uint24',
name: 'rTokenTotal',
type: 'uint24',
},
{
internalType: 'uint24',
name: 'rsrTotal',
type: 'uint24',
},
{ internalType: 'uint24', name: 'rTokenTotal', type: 'uint24' },
{ internalType: 'uint24', name: 'rsrTotal', type: 'uint24' },
],
internalType: 'struct RevenueTotals',
name: 'revTotals',
Expand All @@ -301,11 +214,7 @@ export default [
},
{
inputs: [
{
internalType: 'address',
name: 'newImplementation',
type: 'address',
},
{ internalType: 'address', name: 'newImplementation', type: 'address' },
],
name: 'upgradeTo',
outputs: [],
Expand All @@ -314,16 +223,8 @@ export default [
},
{
inputs: [
{
internalType: 'address',
name: 'newImplementation',
type: 'address',
},
{
internalType: 'bytes',
name: 'data',
type: 'bytes',
},
{ internalType: 'address', name: 'newImplementation', type: 'address' },
{ internalType: 'bytes', name: 'data', type: 'bytes' },
],
name: 'upgradeToAndCall',
outputs: [],
Expand All @@ -333,13 +234,7 @@ export default [
{
inputs: [],
name: 'version',
outputs: [
{
internalType: 'string',
name: '',
type: 'string',
},
],
outputs: [{ internalType: 'string', name: '', type: 'string' }],
stateMutability: 'pure',
type: 'function',
},
Expand Down
Loading

0 comments on commit ef6bbe2

Please sign in to comment.