...45a49878eefdc1001796b10638c1e7584/src/V3Vault.sol#L702-L703)` , wrong tick and potential arbitrage opportunities.
- Impact & Recommendation: When tick deltas are negative, the protocol should rectify the rounding issue by adding `if (tickCumulatives[0] - tickCumulatives[1] < 0 && (tickCumulatives...
...me (401ms)
✔ Should set the right owner
✔ Should receive and store the funds to lock
✔ Should fail if the unlockTime is not in the future
Withdrawals
Validations
✔ Should revert with the right error if called too soon
✔ Should revert with ...
...ion)]
/// This is a simple `PSP-22` which will be used as a stable coin and a collateral token in our lending contract
#[brush::contract]
pub mod weth9 {
use brush::contracts::psp22::extensions::metadata::*;
use ink_prelude::string::String;
// use lending_project::traits::stable_...
...orter: a breakthrough in L2 scaling** \\
\\
**Ending the debate between ZK and optimistic rollups**\\
\\
blog.matter-labs.io](https://blog.matter-labs.io/zkporter-a-breakthrough-in-l2-scaling-ed5e48842fbf?source=post_page-----227340f1dbd6---------------------------------------)
zkSync 的 zkPorter ...
.../ item in a cons list contains two elements: the value of the current item and
// the next item. The last item is a value called `Nil`.
#[derive(PartialEq, Debug)]
pub enum List {
Cons(i32, Box),
Nil,
}
fn main() {
println!("This is an empty cons list: {:?}", create_empty_lis...
...类型声明如下
```move
/// Capability allowing the bearer to mint and burn
/// coins of type `T`. Transferable
struct TreasuryCap has key, store {
id: UID,
total_supply: Supply
}
/// A Supply of T. Used for minting and burning.
/// Wrapped into a `TreasuryCap` in the `...