...Out = numerator / denominator;
}
// given an output amount of an asset and pair reserves, returns a required input amount of the other asset
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
require(amountOut > 0, 'UniswapV2Library: I...
... cannot be compiled due to a combination of a memory-unsafe assembly block and a stack-too-deep error. The compiler can automatically fix the stack-too-deep error, but only in the absence of memory-unsafe assembly.
To successfully compile this contract, please check if this assembly block is memory...
...oks 合约
- `hookData`:Hooks 数据
### 方法定义
#### getPoolAndSwapDirection
根据输入代币和中间代币信息,计算交易池子和交易方向。
```solidity
/// @notice Get the pool and swap direction for a given PathKey
/// @param params the given PathKey
/// @par...
...ication) `solana-create-account` package
note: see more `Cargo.toml` keys and their definitions at *******************************************************
```
### 切换到项目目录
```bash
cd solana-create-account
```
### **列出当前目录内容**
```bash
ls
Cargo.toml src...