charli3_dendrite 1.6.2.dev0__tar.gz → 1.6.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/PKG-INFO +1 -1
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/pyproject.toml +2 -2
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/cswap.py +172 -64
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/LICENSE +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/README.md +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/backend/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/backend/backend_base.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/backend/blockfrost/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/backend/blockfrost/models.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/backend/dbsync/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/backend/dbsync/models.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/backend/ogmios_kupo/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/backend/ogmios_kupo/models.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/backend/utils.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dataclasses/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dataclasses/datums.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dataclasses/models.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/amm_base.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/amm_types.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/dano.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/minswap.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/muesli.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/multi_asset.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/spectrum.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/splash.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/sundae.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/sundae_v4.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/sundae_v4_deployments.json +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/sundae_v4_stableswap_math.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/vyfi.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/wingriders.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/core/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/core/base.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/core/errors.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/ob/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/ob/axo.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/ob/cardanoswaps.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/ob/chadswap.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/ob/djed.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/ob/geniusyield.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/ob/ob_base.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/ob/saturnswap.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/base.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/constants.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/datums.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/loader.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/market.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/math.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/oracles/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/oracles/aggregator.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/oracles/aggregator_datums.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/oracles/deployments.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/oracles/forward.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/oracles/leaves.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/oracles/locator.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/oracles/lp_pricing.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/oracles/recipes.json +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/oracles/redeemer.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/oracles/reproduce.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/oracles/structured_datums.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/state.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/_common.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/build.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/builder.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/context.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/create_loan.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/datum_synth.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/increase_loan.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/loan_ids.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/modify_collateral.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/oracle_redeemer.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/oracle_synth.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/redeemers.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/repay.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/topup_withdraw.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/transactions/verify.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/constants.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/datums.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/loader.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/market.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/math.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/oracles/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/oracles/feeds.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/oracles/fluid_api.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/oracles/witness.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/state.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/_common.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/borrow.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/borrow_terms.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/builder.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/change_collateral.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/context.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/datum_synth.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/lend.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/pool.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/recast.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/redeemers.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/repay.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/request.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/resolve.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens/transactions/utxos.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/constants.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/datums.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/indexing.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/loader.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/market.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/rates.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/state.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/borrow.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/builder.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/change_collateral.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/claim.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/common.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/lender_bond.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/loan_action.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/loan_terms.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/oracle.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/pool_action.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/pool_cancel.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/pool_create.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/pool_edit.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/pool_terms.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/recast.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/redeemers.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/repay.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/resolve.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/markets.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/math.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/normalized.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/oracles/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/oracles/charli3.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/oracles/dex_pooled.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/oracles/fluid.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/oracles/models.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/oracles/orcfax.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/oracles/qtoken.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/plutus.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/rates.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/registry.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/transactions/__init__.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/transactions/base.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/transactions/infra.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/transactions/snapshot.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/units.py +0 -0
- {charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/utility.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "charli3_dendrite"
|
|
3
|
-
version = "1.6.
|
|
3
|
+
version = "1.6.3"
|
|
4
4
|
description = ""
|
|
5
5
|
authors = ["Elder Millenial <eldermillenial@protonmail.com>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -50,7 +50,7 @@ module = ["pycardano", "pycardano.*", "dotenv", "nox", "uplc", "uplc.*"]
|
|
|
50
50
|
ignore_missing_imports = true
|
|
51
51
|
|
|
52
52
|
[tool.bumpversion]
|
|
53
|
-
current_version = "1.6.
|
|
53
|
+
current_version = "1.6.3"
|
|
54
54
|
parse = """(?x)
|
|
55
55
|
(?P<major>\\d+)\\.
|
|
56
56
|
(?P<minor>\\d+)\\.
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/cswap.py
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""CSwap DEX Module."""
|
|
2
2
|
|
|
3
3
|
from dataclasses import dataclass
|
|
4
|
-
from dataclasses import field
|
|
5
4
|
from typing import Any
|
|
6
5
|
from typing import ClassVar
|
|
7
6
|
from typing import List
|
|
@@ -20,9 +19,37 @@ from charli3_dendrite.dataclasses.datums import PoolDatum
|
|
|
20
19
|
from charli3_dendrite.dataclasses.models import Assets
|
|
21
20
|
from charli3_dendrite.dataclasses.models import OrderType
|
|
22
21
|
from charli3_dendrite.dataclasses.models import PoolSelector
|
|
22
|
+
from charli3_dendrite.dexs.amm.amm_types import N_COINS
|
|
23
23
|
from charli3_dendrite.dexs.amm.amm_types import AbstractConstantProductPoolState
|
|
24
24
|
from charli3_dendrite.dexs.core.errors import NotAPoolError
|
|
25
25
|
|
|
26
|
+
# Protocol fee on the ADA leg of every swap, in basis points. It is charged by the
|
|
27
|
+
# batcher on top of the pool's own LP fee and does not stay in the pool.
|
|
28
|
+
CSWAP_PLATFORM_FEE = 15
|
|
29
|
+
|
|
30
|
+
POLICY_ID_LENGTH = 56
|
|
31
|
+
MIN_ADA_TARGET = 2_000_000 # minimum ADA an order's target carries
|
|
32
|
+
POOL_MAINTENANCE_ADA = 2_000_000 # lovelace a pool holds outside its reserves
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def _platform_fee_amount(amount: int, fee_bps: int, fee_basis: int) -> int:
|
|
36
|
+
"""The platform fee charged on ``amount``: ``fee_bps`` of it, rounded up."""
|
|
37
|
+
if amount <= 0 or fee_bps == 0:
|
|
38
|
+
return 0
|
|
39
|
+
return -(-amount * fee_bps // fee_basis)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _gross_for_net(net: int, fee_bps: int, fee_basis: int) -> int:
|
|
43
|
+
"""The smallest ``amount`` whose net of the platform fee is at least ``net``.
|
|
44
|
+
|
|
45
|
+
``amount - ceil(amount * fee_bps / fee_basis)`` equals
|
|
46
|
+
``amount * (fee_basis - fee_bps) // fee_basis``, so its smallest pre-image is
|
|
47
|
+
``ceil(net * fee_basis / (fee_basis - fee_bps))``.
|
|
48
|
+
"""
|
|
49
|
+
if net <= 0:
|
|
50
|
+
return 0
|
|
51
|
+
return -(-net * fee_basis // (fee_basis - fee_bps))
|
|
52
|
+
|
|
26
53
|
|
|
27
54
|
@dataclass
|
|
28
55
|
class CSwapOrderSwapType(PlutusData):
|
|
@@ -56,7 +83,7 @@ class CSwapOrderDatum(OrderDatum):
|
|
|
56
83
|
input_assets: List[List[Union[bytes, int]]]
|
|
57
84
|
otype: Union[CSwapOrderSwapType | CSwapOrderZapInType | CSwapOrderZapOutType]
|
|
58
85
|
slippage: int = 50
|
|
59
|
-
platform_fee: int =
|
|
86
|
+
platform_fee: int = CSWAP_PLATFORM_FEE
|
|
60
87
|
|
|
61
88
|
@classmethod
|
|
62
89
|
def create_datum(
|
|
@@ -64,10 +91,10 @@ class CSwapOrderDatum(OrderDatum):
|
|
|
64
91
|
address_source: Address,
|
|
65
92
|
in_assets: Assets,
|
|
66
93
|
out_assets: Assets,
|
|
67
|
-
batcher_fee: Assets,
|
|
68
|
-
deposit: Assets,
|
|
69
|
-
address_target: Address | None = None,
|
|
70
|
-
datum_target: PlutusData | None = None,
|
|
94
|
+
batcher_fee: Assets, # noqa: ARG003
|
|
95
|
+
deposit: Assets, # noqa: ARG003
|
|
96
|
+
address_target: Address | None = None, # noqa: ARG003
|
|
97
|
+
datum_target: PlutusData | None = None, # noqa: ARG003
|
|
71
98
|
) -> "CSwapOrderDatum":
|
|
72
99
|
"""Create a CSwap order datum."""
|
|
73
100
|
# Validate ADA-only restriction
|
|
@@ -78,27 +105,27 @@ class CSwapOrderDatum(OrderDatum):
|
|
|
78
105
|
full_address = PlutusFullAddress.from_address(address_source)
|
|
79
106
|
|
|
80
107
|
# Create target assets list (what we want to receive)
|
|
81
|
-
target_assets = []
|
|
108
|
+
target_assets: list[list[bytes | int]] = []
|
|
82
109
|
for unit in out_assets:
|
|
83
110
|
if unit == "lovelace":
|
|
84
111
|
target_assets.append([b"", b"", out_assets[unit]])
|
|
85
112
|
else:
|
|
86
|
-
policy = bytes.fromhex(unit[:
|
|
87
|
-
name = bytes.fromhex(unit[
|
|
113
|
+
policy = bytes.fromhex(unit[:POLICY_ID_LENGTH])
|
|
114
|
+
name = bytes.fromhex(unit[POLICY_ID_LENGTH:])
|
|
88
115
|
target_assets.append([policy, name, out_assets[unit]])
|
|
89
116
|
|
|
90
117
|
# Add minimum ADA requirement (2 ADA minimum)
|
|
91
118
|
if "lovelace" not in out_assets:
|
|
92
|
-
target_assets.append([b"", b"",
|
|
119
|
+
target_assets.append([b"", b"", MIN_ADA_TARGET])
|
|
93
120
|
|
|
94
121
|
# Create input assets list (always zero quantity for input)
|
|
95
|
-
input_assets = []
|
|
122
|
+
input_assets: list[list[bytes | int]] = []
|
|
96
123
|
for unit in in_assets:
|
|
97
124
|
if unit == "lovelace":
|
|
98
125
|
input_assets.append([b"", b"", 0])
|
|
99
126
|
else:
|
|
100
|
-
policy = bytes.fromhex(unit[:
|
|
101
|
-
name = bytes.fromhex(unit[
|
|
127
|
+
policy = bytes.fromhex(unit[:POLICY_ID_LENGTH])
|
|
128
|
+
name = bytes.fromhex(unit[POLICY_ID_LENGTH:])
|
|
102
129
|
input_assets.append([policy, name, 0])
|
|
103
130
|
|
|
104
131
|
return cls(
|
|
@@ -107,7 +134,7 @@ class CSwapOrderDatum(OrderDatum):
|
|
|
107
134
|
input_assets=input_assets,
|
|
108
135
|
otype=CSwapOrderSwapType(),
|
|
109
136
|
slippage=50, # 0.5% default slippage
|
|
110
|
-
platform_fee=
|
|
137
|
+
platform_fee=CSWAP_PLATFORM_FEE,
|
|
111
138
|
)
|
|
112
139
|
|
|
113
140
|
def address_source(self) -> Address:
|
|
@@ -118,11 +145,15 @@ class CSwapOrderDatum(OrderDatum):
|
|
|
118
145
|
"""Get the requested amount."""
|
|
119
146
|
requested = {}
|
|
120
147
|
for target in self.target_assets:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
148
|
+
raw_policy, raw_name, quantity = target[0], target[1], target[2]
|
|
149
|
+
if not (
|
|
150
|
+
isinstance(raw_policy, bytes)
|
|
151
|
+
and isinstance(raw_name, bytes)
|
|
152
|
+
and isinstance(quantity, int)
|
|
153
|
+
):
|
|
154
|
+
raise ValueError("CSWAP target asset must be [policy, name, amount]")
|
|
155
|
+
unit = (raw_policy + raw_name).hex() or "lovelace"
|
|
156
|
+
if unit != "lovelace" or quantity > MIN_ADA_TARGET: # Skip minimum ADA
|
|
126
157
|
requested[unit] = quantity
|
|
127
158
|
return Assets(requested)
|
|
128
159
|
|
|
@@ -157,13 +188,21 @@ class CSwapPoolDatum(PoolDatum):
|
|
|
157
188
|
|
|
158
189
|
|
|
159
190
|
class CSwapCPPState(AbstractConstantProductPoolState):
|
|
160
|
-
"""CSwap CPP state with beacon token validation.
|
|
191
|
+
"""CSwap CPP state with beacon token validation.
|
|
161
192
|
|
|
162
|
-
fee
|
|
193
|
+
A swap pays two fees. ``fee`` is the pool's LP fee (the datum ``pool_fee``),
|
|
194
|
+
applied inside the constant-product curve. ``platform_fee`` is a protocol fee
|
|
195
|
+
on the ADA leg, rounded up, that leaves the pool: on ADA in it is taken from
|
|
196
|
+
the input before the curve, on ADA out from the curve's output before it is
|
|
197
|
+
delivered.
|
|
198
|
+
"""
|
|
199
|
+
|
|
200
|
+
fee: int = 85 # LP fee per 10K (0.85%), the datum pool_fee
|
|
201
|
+
platform_fee: int = CSWAP_PLATFORM_FEE # ADA-leg protocol fee per 10K
|
|
163
202
|
_batcher = Assets(lovelace=690000) # 0.69 ADA batcher fee
|
|
164
203
|
_deposit = Assets(lovelace=2000000) # 2 ADA deposit
|
|
165
204
|
_stake_address: ClassVar[Address] = Address.decode(
|
|
166
|
-
"addr1z8d9k3aw6w24eyfjacy809h68dv2rwnpw0arrfau98jk6nhv88awp8sgxk65d6kry0mar3rd0dlkfljz7dv64eu39vfs38yd9p"
|
|
205
|
+
"addr1z8d9k3aw6w24eyfjacy809h68dv2rwnpw0arrfau98jk6nhv88awp8sgxk65d6kry0mar3rd0dlkfljz7dv64eu39vfs38yd9p",
|
|
167
206
|
)
|
|
168
207
|
|
|
169
208
|
@classmethod
|
|
@@ -181,8 +220,8 @@ class CSwapCPPState(AbstractConstantProductPoolState):
|
|
|
181
220
|
"""Get the pool selector."""
|
|
182
221
|
return PoolSelector(
|
|
183
222
|
addresses=[
|
|
184
|
-
"addr1z8ke0c9p89rjfwmuh98jpt8ky74uy5mffjft3zlcld9h7ml3lmln3mwk0y3zsh3gs3dzqlwa9rjzrxawkwm4udw9axhs6fuu6e"
|
|
185
|
-
]
|
|
223
|
+
"addr1z8ke0c9p89rjfwmuh98jpt8ky74uy5mffjft3zlcld9h7ml3lmln3mwk0y3zsh3gs3dzqlwa9rjzrxawkwm4udw9axhs6fuu6e",
|
|
224
|
+
],
|
|
186
225
|
)
|
|
187
226
|
|
|
188
227
|
@property
|
|
@@ -235,7 +274,7 @@ class CSwapCPPState(AbstractConstantProductPoolState):
|
|
|
235
274
|
|
|
236
275
|
# Check if token name is "c" (hex: 63)
|
|
237
276
|
unit = pool_nft.unit()
|
|
238
|
-
if len(unit) <
|
|
277
|
+
if len(unit) < POLICY_ID_LENGTH or unit[POLICY_ID_LENGTH:] != "63":
|
|
239
278
|
raise NotAPoolError("CSWAP pool NFT must have name 'c'")
|
|
240
279
|
|
|
241
280
|
return pool_nft
|
|
@@ -248,7 +287,10 @@ class CSwapCPPState(AbstractConstantProductPoolState):
|
|
|
248
287
|
continue
|
|
249
288
|
|
|
250
289
|
# Check if token name is "c" (hex: 63)
|
|
251
|
-
if
|
|
290
|
+
if (
|
|
291
|
+
len(asset_unit) >= POLICY_ID_LENGTH
|
|
292
|
+
and asset_unit[POLICY_ID_LENGTH:] == "63"
|
|
293
|
+
):
|
|
252
294
|
quantity = assets[asset_unit]
|
|
253
295
|
if quantity == 1:
|
|
254
296
|
pool_nft = Assets(root={asset_unit: assets.root.pop(asset_unit)})
|
|
@@ -256,22 +298,14 @@ class CSwapCPPState(AbstractConstantProductPoolState):
|
|
|
256
298
|
|
|
257
299
|
if pool_nft is None:
|
|
258
300
|
raise NotAPoolError(
|
|
259
|
-
"CSWAP pool must contain exactly one pool NFT with name 'c'"
|
|
301
|
+
"CSWAP pool must contain exactly one pool NFT with name 'c'",
|
|
260
302
|
)
|
|
261
303
|
|
|
262
304
|
values["pool_nft"] = pool_nft
|
|
263
305
|
return pool_nft
|
|
264
306
|
|
|
265
|
-
def
|
|
266
|
-
|
|
267
|
-
asset: Assets,
|
|
268
|
-
precise: bool = True,
|
|
269
|
-
) -> tuple[Assets, float]:
|
|
270
|
-
"""Get the output asset amount given an input asset amount.
|
|
271
|
-
|
|
272
|
-
Validates ADA-only restriction before processing.
|
|
273
|
-
"""
|
|
274
|
-
# Validate ADA-only restriction
|
|
307
|
+
def _check_pair(self, asset: Assets) -> None:
|
|
308
|
+
"""Validate that ``asset`` is a single token of this ADA-paired pool."""
|
|
275
309
|
if "lovelace" not in [self.unit_a, self.unit_b]:
|
|
276
310
|
raise ValueError("CSWAP only supports ADA pairs - one token must be ADA")
|
|
277
311
|
|
|
@@ -281,38 +315,112 @@ class CSwapCPPState(AbstractConstantProductPoolState):
|
|
|
281
315
|
if len(asset) != 1:
|
|
282
316
|
raise ValueError("Only one asset can be provided for swap calculation")
|
|
283
317
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
if not
|
|
287
|
-
raise
|
|
318
|
+
def _fee_modifier(self) -> int:
|
|
319
|
+
"""``fee_basis`` less the LP fee, the curve's input multiplier numerator."""
|
|
320
|
+
if not isinstance(self.fee, int):
|
|
321
|
+
raise TypeError("CSWAP pool fee must be an integer number of bp")
|
|
322
|
+
return self.fee_basis - self.fee
|
|
323
|
+
|
|
324
|
+
def platform_fee_bps(self, unit_in: str) -> tuple[int, int]:
|
|
325
|
+
"""The platform fee in bp on the (input, output) leg of a swap.
|
|
326
|
+
|
|
327
|
+
The fee is charged on the ADA leg only: on the input when ``unit_in`` is
|
|
328
|
+
lovelace, otherwise on the output.
|
|
329
|
+
"""
|
|
330
|
+
if unit_in == "lovelace":
|
|
331
|
+
return self.platform_fee, 0
|
|
332
|
+
return 0, self.platform_fee
|
|
333
|
+
|
|
334
|
+
def swap_amounts(self, unit_in: str, amount_in: int) -> tuple[int, int, int]:
|
|
335
|
+
"""The integer legs of swapping ``amount_in`` of ``unit_in``.
|
|
336
|
+
|
|
337
|
+
Returns:
|
|
338
|
+
``(pool_in, pool_out, amount_out)``: the amount credited to the pool's
|
|
339
|
+
input reserve, the amount debited from its output reserve, and the
|
|
340
|
+
amount delivered to the swapper.
|
|
341
|
+
"""
|
|
342
|
+
if unit_in == self.unit_a:
|
|
343
|
+
reserve_in, reserve_out = self.reserve_a, self.reserve_b
|
|
344
|
+
else:
|
|
345
|
+
reserve_in, reserve_out = self.reserve_b, self.reserve_a
|
|
346
|
+
fee_in, fee_out = self.platform_fee_bps(unit_in)
|
|
347
|
+
|
|
348
|
+
pool_in = amount_in - _platform_fee_amount(amount_in, fee_in, self.fee_basis)
|
|
349
|
+
pool_out = 0
|
|
350
|
+
if pool_in > 0:
|
|
351
|
+
fee_modifier = self._fee_modifier()
|
|
352
|
+
pool_out = (pool_in * fee_modifier * reserve_out) // (
|
|
353
|
+
pool_in * fee_modifier + reserve_in * self.fee_basis
|
|
354
|
+
)
|
|
355
|
+
amount_out = pool_out - _platform_fee_amount(pool_out, fee_out, self.fee_basis)
|
|
356
|
+
return pool_in, pool_out, amount_out
|
|
357
|
+
|
|
358
|
+
def get_amount_out(
|
|
359
|
+
self,
|
|
360
|
+
asset: Assets,
|
|
361
|
+
precise: bool = True,
|
|
362
|
+
) -> tuple[Assets, float]:
|
|
363
|
+
"""Get the output asset amount given an input asset amount.
|
|
364
|
+
|
|
365
|
+
The LP fee is applied in the curve and the platform fee on the ADA leg
|
|
366
|
+
(see ``swap_amounts``). The price impact is the curve's.
|
|
367
|
+
"""
|
|
368
|
+
self._check_pair(asset)
|
|
369
|
+
unit_in = asset.unit()
|
|
370
|
+
unit_out = self.unit_b if unit_in == self.unit_a else self.unit_a
|
|
288
371
|
|
|
289
|
-
|
|
372
|
+
pool_in, _, amount_out = self.swap_amounts(unit_in, asset.quantity())
|
|
373
|
+
if amount_out <= 0:
|
|
374
|
+
return Assets(**{unit_out: 0}), 0
|
|
375
|
+
|
|
376
|
+
_, price_impact = super().get_amount_out(Assets(**{unit_in: pool_in}), precise)
|
|
377
|
+
return Assets(**{unit_out: amount_out}), price_impact
|
|
290
378
|
|
|
291
379
|
def get_amount_in(
|
|
292
380
|
self,
|
|
293
381
|
asset: Assets,
|
|
294
382
|
precise: bool = True,
|
|
295
383
|
) -> tuple[Assets, float]:
|
|
296
|
-
"""Get the input
|
|
384
|
+
"""Get the smallest input whose ``get_amount_out`` reaches ``asset``.
|
|
297
385
|
|
|
298
|
-
|
|
386
|
+
The curve output needed to deliver the request is grossed up for an
|
|
387
|
+
ADA-out platform fee, the curve input for it is rounded up, and that is
|
|
388
|
+
grossed up for an ADA-in platform fee. The price impact is the curve's.
|
|
299
389
|
"""
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
390
|
+
self._check_pair(asset)
|
|
391
|
+
unit_out = asset.unit()
|
|
392
|
+
if unit_out == self.unit_a:
|
|
393
|
+
unit_in, reserve_in, reserve_out = (
|
|
394
|
+
self.unit_b,
|
|
395
|
+
self.reserve_b,
|
|
396
|
+
self.reserve_a,
|
|
397
|
+
)
|
|
398
|
+
else:
|
|
399
|
+
unit_in, reserve_in, reserve_out = (
|
|
400
|
+
self.unit_a,
|
|
401
|
+
self.reserve_a,
|
|
402
|
+
self.reserve_b,
|
|
403
|
+
)
|
|
404
|
+
fee_in, fee_out = self.platform_fee_bps(unit_in)
|
|
303
405
|
|
|
304
|
-
if asset.
|
|
305
|
-
|
|
406
|
+
if asset.quantity() <= 0:
|
|
407
|
+
return Assets(**{unit_in: 0}), 0
|
|
306
408
|
|
|
307
|
-
|
|
308
|
-
|
|
409
|
+
pool_out = _gross_for_net(asset.quantity(), fee_out, self.fee_basis)
|
|
410
|
+
if pool_out >= reserve_out:
|
|
411
|
+
return super().get_amount_in(Assets(**{unit_out: pool_out}), precise)
|
|
309
412
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
413
|
+
pool_in = -(
|
|
414
|
+
-(pool_out * self.fee_basis * reserve_in)
|
|
415
|
+
// ((reserve_out - pool_out) * self._fee_modifier())
|
|
416
|
+
)
|
|
417
|
+
amount_in = _gross_for_net(pool_in, fee_in, self.fee_basis)
|
|
314
418
|
|
|
315
|
-
|
|
419
|
+
_, price_impact = super().get_amount_in(
|
|
420
|
+
Assets(**{unit_out: pool_out}),
|
|
421
|
+
precise,
|
|
422
|
+
)
|
|
423
|
+
return Assets(**{unit_in: amount_in}), price_impact
|
|
316
424
|
|
|
317
425
|
@classmethod
|
|
318
426
|
def skip_init(cls, values: dict[str, Any]) -> bool:
|
|
@@ -330,8 +438,7 @@ class CSwapCPPState(AbstractConstantProductPoolState):
|
|
|
330
438
|
values["assets"] = Assets.model_validate(values["assets"])
|
|
331
439
|
|
|
332
440
|
return True
|
|
333
|
-
|
|
334
|
-
return False
|
|
441
|
+
return False
|
|
335
442
|
|
|
336
443
|
@classmethod
|
|
337
444
|
def post_init(cls, values: dict[str, Any]) -> dict[str, Any]:
|
|
@@ -347,17 +454,18 @@ class CSwapCPPState(AbstractConstantProductPoolState):
|
|
|
347
454
|
|
|
348
455
|
# Subtract 2 ADA pool maintenance from lovelace reserves
|
|
349
456
|
# CSwap pools require 2 ADA minimum to maintain the pool
|
|
350
|
-
if len(assets) ==
|
|
351
|
-
assets.root["lovelace"] -=
|
|
457
|
+
if len(assets) == N_COINS:
|
|
458
|
+
assets.root["lovelace"] -= POOL_MAINTENANCE_ADA
|
|
352
459
|
|
|
353
|
-
#
|
|
460
|
+
# The datum carries the LP fee only; the platform fee is a protocol
|
|
461
|
+
# constant charged separately on the ADA leg (see ``platform_fee``).
|
|
354
462
|
if "datum_cbor" in values:
|
|
355
463
|
try:
|
|
356
464
|
datum = CSwapPoolDatum.from_cbor(values["datum_cbor"])
|
|
357
|
-
values["fee"] = datum.pool_fee
|
|
358
|
-
except Exception:
|
|
465
|
+
values["fee"] = datum.pool_fee
|
|
466
|
+
except Exception: # noqa: BLE001
|
|
359
467
|
# If datum parsing fails, use default fee
|
|
360
|
-
values["fee"] = 85
|
|
468
|
+
values["fee"] = 85
|
|
361
469
|
|
|
362
470
|
return values
|
|
363
471
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/backend/__init__.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/backend/backend_base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/backend/dbsync/models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/backend/utils.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dataclasses/__init__.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dataclasses/datums.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dataclasses/models.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/__init__.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/__init__.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/amm_base.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/amm_types.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/dano.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/minswap.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/muesli.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/multi_asset.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/spectrum.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/splash.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/sundae.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/sundae_v4.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/vyfi.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/amm/wingriders.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/core/__init__.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/core/base.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/core/errors.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/ob/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/ob/cardanoswaps.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/ob/chadswap.py
RENAMED
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/ob/geniusyield.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/ob/ob_base.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/dexs/ob/saturnswap.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/datums.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/loader.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/market.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/math.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/danogo/state.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/markets.py
RENAMED
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/normalized.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/oracles/fluid.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/plutus.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/rates.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/registry.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.2.dev0 → charli3_dendrite-1.6.3}/src/charli3_dendrite/lending/units.py
RENAMED
|
File without changes
|
|
File without changes
|