Skip to content

Commit

Permalink
a bit more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Jun 19, 2024
1 parent 5e4766c commit ce87491
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions contracts/prototypes/ERC20CustodyNew.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ pragma solidity 0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./Gateway.sol";

// As the current version, ERC20CustodyNew hold the ERC20s deposited on ZetaChain
// This version include a functionality allowing to call a contract
// ERC20Custody doesn't call smart contract directly, it passes through the Gateway contract
contract ERC20CustodyNew {
Gateway public gateway;

Expand Down
2 changes: 2 additions & 0 deletions contracts/prototypes/Gateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ pragma solidity 0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./ERC20CustodyNew.sol";

// The Gateway contract is the endpoint to call smart contracts on external chains
// The contract doesn't hold any funds and should never have active allowances
contract Gateway {
error ExecutionFailed();

Expand Down

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

Loading

0 comments on commit ce87491

Please sign in to comment.