Closed alnoki closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
emojicoin-dot-fun | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 13, 2024 7:36pm |
emojicoin-dot-fun-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 13, 2024 7:36pm |
Source code changes
API updates
min_output_amount
argument toswap
for slippage control.min_lp_coins_out
argument toprovide_liquidity
for rounding attack mitigation.min_quote_out
argument toremove_liquidity
for rounding attack mitigation.balance_as_fraction_of_circulating_supply_before_q64
andbalance_as_fraction_of_circulating_supply_after_q64
fields toSwap
event, which require adding type arguments andensure_coin_types_initialized
check tosimulate_swap_inner
function.Revised economic dynamics
Error case handling
cpamm_simple_swap_output_amount
to abort if output amount is 0.simulate_remove_liquidity_inner
to abort if base/quote output amount is 0 (no new associated test, due to difficulty of setting up such an edge case).simulate_swap
.Docs
--override-size-check
command now required to publish package.cumulative sell pressure
instead ofbuy pressure
.Testing
Test code updates
Swap
fields.Running tests
From in
src/move/emojicoin-dot-fun
:Package publishability verified on devnet per Move package README.
Previously the package was tested to 100% coverage, but the coverage tool breaks for inline functions (https://github.com/aptos-labs/aptos-core/issues/9154) so re-demonstrating a 100% coverage run requires manually taking out
inline
keywords as per 6d65d23 and c13dbe2.As per #181 this PR instead manually adds test cases to hit coverage on new functionality.
Checklist