...oks 合约
- `hookData`:Hooks 数据
### 方法定义
#### getPoolAndSwapDirection
根据输入代币和中间代币信息,计算交易池子和交易方向。
```solidity
/// @notice Get the pool and swap direction for a given PathKey
/// @param params the given PathKey
/// @par...
...jmen 和 Joan Daemen 创建)。但第二名是 **Serpent**,它由 Ross Anderson (RIP)、Eli Biham 和 Lars Knudsen 创建 \[ [这里](https://asecuritysite.com/csharp/bc_ciphers_serpent)\]。
而且,很高兴看到经典的 Bruce Schneier 方法 **Twofish** 也出现在其中。Bruce 现在...
...
You're signed out
Videos you watch may be added to the TV's watch history and influence TV recommendations. To avoid this, cancel and sign in to YouTube on your computer.
CancelConfirm
Share
Include playlist
An error occurred while retrieving sharing information. Please try again later.
[Watch on](...
... revert ZeroAmount();
}
// Ensure account exists and is owned by caller
if (userAccounts[msg.sender].owner != msg.sender) {
revert UnauthorizedAccess();
}
// Ensure the correct amount was sent
require(msg.value == amount, "Am...
...eate a folder with your ID like `homework-2/001`
3. complete the homework and create a PR
```
### 第一步:fork 并克隆项目
```bash
git clone git@github.com:qiaopengjun5162/2025-17-solidity-on-polkadot.git
正克隆到 '2025-17-solidity-on-polkadot'...
remote: Enumerating objects: ...