Skip to content

Commit

Permalink
change createPool validation for new contract #29
Browse files Browse the repository at this point in the history
  • Loading branch information
nadyasav committed Oct 21, 2023
1 parent 21d2dac commit cc17064
Show file tree
Hide file tree
Showing 7 changed files with 562 additions and 50 deletions.
2 changes: 2 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import '@rainbow-me/rainbowkit/styles.css';
import CreatePool from './components/createPool/CreatePool';
import { ROUTES } from './constants/constants';
import { Header } from './components';
import PoolDetail from './components/poolDetail/PoolDetail';

function App() {
const versionGitTag = import.meta.env.VITE_REACT_APP_GIT_TAG;
Expand All @@ -20,6 +21,7 @@ function App() {
<Routes>
<Route path='/' element={<PoolsPage poolsType={'All Pools'} />} />
<Route path={ROUTES.assetManagement} element={<CreatePool />} />
<Route path={`${ROUTES.assetManagement}/:poolAddress`} element={<PoolDetail />} />
</Routes>
</BrowserRouter>
</div>
Expand Down
11 changes: 10 additions & 1 deletion frontend/src/abi/abiCreatePool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const abiCreatePool = [
inputs: [
{ indexed: true, internalType: 'contract IProfitPalsVault', name: 'vault', type: 'address' },
{ indexed: true, internalType: 'contract IERC20', name: 'anchorCurrency', type: 'address' },
{ indexed: false, internalType: 'contract IERC20[]', name: 'tokens', type: 'address[]' },
{ indexed: false, internalType: 'uint256', name: 'operatorFee', type: 'uint256' },
{ indexed: false, internalType: 'string', name: 'name', type: 'string' },
{ indexed: false, internalType: 'string', name: 'symbol', type: 'string' },
Expand All @@ -33,6 +32,16 @@ export const abiCreatePool = [
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'bytes', name: '_data', type: 'bytes' },
{ internalType: 'bytes', name: '_signature', type: 'bytes' },
],
name: 'isValidSignature',
outputs: [{ internalType: 'bytes4', name: '', type: 'bytes4' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'safeLogicSingleton',
Expand Down
Loading

0 comments on commit cc17064

Please sign in to comment.