Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
HiroyukiNaito authored Nov 29, 2023
1 parent 71deb4e commit 508c315
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,19 @@ Decodes Uniswap Universal execute function in accordance with [the Uniswap tehch

---

### [Address Constants](https://github.com/Uniswap/universal-router/blob/7d763cb28c88bb3bce5a30ad2356722f10c4d484/test/integration-tests/shared/constants.ts#L14)
### [Address Constants](https://etherscan.io/address/0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD#code#F26#L17)

NOTE: Uniswap Universal Router uses address constants internally, for example

```Javascript
export const MSG_SENDER: string = '0x0000000000000000000000000000000000000001'
export const ADDRESS_THIS: string = '0x0000000000000000000000000000000000000002'
```solidity
/// @dev Used as a flag for identifying the transfer of ETH instead of a token
address internal constant ETH = address(0);
/// @dev Used as a flag for identifying that msg.sender should be used, saves gas by sending more 0 bytes
address internal constant MSG_SENDER = address(1);
/// @dev Used as a flag for identifying address(this) should be used, saves gas by sending more 0 bytes
address internal constant ADDRESS_THIS = address(2);
```
- '0x0000000000000000000000000000000000000001' represents msg.sender (EOA) address itself
- '0x0000000000000000000000000000000000000002' represents Universal Router Contract address itself
Expand Down

1 comment on commit 508c315

@YoungDeveloper78
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HiroyukiNaito hi ,i reached out to you via email, but i'm not sure if you saw my message...
I'm looking for someone with your stack to work on our platform as a freelancer or full time . some projects start soon and others begin in 6 months ,so if you're busy now ,we can discuss it in advance . are you up ? contact me on telegram @shalavaleks or via email at [email protected]

Please sign in to comment.