EVM contracts for the Omron network.
This project consists of one contract, listed below.
OmronDeposit.sol
: A contract allowing deposits of both native and LST ERC-20 tokens for accrual of points.
- NodeJS (18)
pnpm install
pnpm dev
pnpm test
This is for advanced SC debugging. It will get very loud very quick, be prepared for an onslaught of logs. This uses hardhat-tracer
to fully trace SC calls.
pnpm test:debug
pnpm deploy
The owner of the contract is the deployer of the contract. The owner has the following privileges:
- Pause the contract
- Unpause the contract
- Change the owner
- Renounce ownership
- Allow withdrawals of ERC20s and ETH
- Disable withdrawals of ERC20s and ETH
The user of the contract is the depositor of the contract. The user has the following privileges:
- Deposit ERC20s when not paused
- Deposit ETH when not paused
- Withdraw ERC20s when not paused, withdrawals enabled
- Withdraw ETH when not paused, withdrawals enabled
- Access read methods
In the event of any emergency situation within the contract, defined as:
- A security incident occurs
- A critical issue is found
The contract owner shall immediately:
- Pause the contract
- Investigate the issue
- Fix the issue or take necessary steps to mitigate the issue
- Unpause the contract