charli3_dendrite 1.6.10.dev0__tar.gz → 1.6.11.dev0__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.10.dev0 → charli3_dendrite-1.6.11.dev0}/PKG-INFO +1 -1
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/pyproject.toml +2 -2
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/backend/blockfrost/__init__.py +4 -3
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/backend/dbsync/__init__.py +13 -3
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/dano.py +124 -14
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/LICENSE +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/README.md +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/backend/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/backend/backend_base.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/backend/blockfrost/models.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/backend/dbsync/models.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/backend/ogmios_kupo/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/backend/ogmios_kupo/models.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/backend/utils.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dataclasses/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dataclasses/datums.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dataclasses/models.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/amm_base.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/amm_types.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/cswap.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/minswap.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/muesli.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/multi_asset.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/spectrum.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/splash.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/sundae.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/sundae_v4.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/sundae_v4_banded_cl_math.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/sundae_v4_deployments.json +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/sundae_v4_stableswap_math.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/vyfi.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/wingriders.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/core/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/core/base.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/core/errors.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/ob/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/ob/axo.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/ob/cardanoswaps.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/ob/cardanoswaps_two_way.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/ob/chadswap.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/ob/djed.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/ob/geniusyield.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/ob/ob_base.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/ob/saturnswap.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/base.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/builtins.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/constants.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/datums.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/loader.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/market.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/math.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/oracles/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/oracles/aggregator.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/oracles/aggregator_datums.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/oracles/deployments.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/oracles/forward.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/oracles/leaves.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/oracles/locator.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/oracles/lp_pricing.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/oracles/recipes.json +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/oracles/redeemer.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/oracles/reproduce.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/oracles/structured_datums.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/state.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/_common.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/build.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/builder.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/context.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/create_loan.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/datum_synth.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/increase_loan.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/loan_ids.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/modify_collateral.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/oracle_redeemer.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/oracle_synth.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/redeemers.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/repay.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/topup_withdraw.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/danogo/transactions/verify.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fetch.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/constants.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/datums.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/loader.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/market.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/math.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/oracles/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/oracles/feeds.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/oracles/fluid_api.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/oracles/witness.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/state.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/_common.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/borrow.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/borrow_terms.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/builder.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/change_collateral.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/context.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/datum_synth.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/lend.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/pool.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/recast.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/redeemers.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/repay.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/request.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/resolve.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens/transactions/utxos.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/constants.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/datums.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/indexing.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/loader.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/market.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/rates.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/state.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/borrow.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/builder.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/change_collateral.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/claim.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/common.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/lender_bond.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/loan_action.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/loan_terms.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/oracle.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/pool_action.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/pool_cancel.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/pool_create.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/pool_edit.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/pool_terms.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/recast.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/redeemers.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/repay.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fluidtokens_v4/transactions/resolve.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/datums.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/deployment.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/indexing.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/lifecycle.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/loader.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/market.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/math.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/oracles.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/rates.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/registry_v6.json +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/transactions/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/transactions/_flow.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/transactions/borrow.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/transactions/borrow_more.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/transactions/builder.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/transactions/capture.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/transactions/collateral.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/transactions/combos.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/transactions/errors.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/transactions/legs.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/transactions/repay.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/transactions/resolve.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/transactions/supply.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/liqwid/transactions/terms.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/markets.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/math.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/normalized.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/oracles/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/oracles/charli3.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/oracles/dex_pooled.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/oracles/fluid.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/oracles/models.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/oracles/orcfax.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/oracles/qtoken.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/plutus.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/rates.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/registry.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/transactions/__init__.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/transactions/base.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/transactions/common.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/transactions/errors.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/transactions/infra.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/transactions/resolve.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/transactions/snapshot.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/transactions/utxos.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/transactions/validity.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/units.py +0 -0
- {charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/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.11-dev0"
|
|
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.11-dev0"
|
|
54
54
|
parse = """(?x)
|
|
55
55
|
(?P<major>\\d+)\\.
|
|
56
56
|
(?P<minor>\\d+)\\.
|
|
@@ -264,10 +264,11 @@ class BlockFrostBackend(AbstractBackend):
|
|
|
264
264
|
Returns:
|
|
265
265
|
Optional[ScriptReference]: The datum associated with the address, if any.
|
|
266
266
|
"""
|
|
267
|
-
|
|
267
|
+
if asset:
|
|
268
|
+
utxos = self.api.address_utxos_asset(address, asset, gather_pages=True)
|
|
269
|
+
else:
|
|
270
|
+
utxos = self.api.address_utxos(address, gather_pages=True)
|
|
268
271
|
for utxo in utxos:
|
|
269
|
-
if asset and asset not in utxo.amount:
|
|
270
|
-
continue
|
|
271
272
|
if utxo.data_hash:
|
|
272
273
|
return ScriptReference(
|
|
273
274
|
tx_hash=utxo.tx_hash,
|
|
@@ -527,8 +527,6 @@ SELECT (
|
|
|
527
527
|
query += """
|
|
528
528
|
FROM tx_out
|
|
529
529
|
LEFT JOIN address ON tx_out.address_id = address.id
|
|
530
|
-
LEFT JOIN ma_tx_out mtxo ON mtxo.tx_out_id = tx_out.id
|
|
531
|
-
LEFT JOIN multi_asset ma ON ma.id = mtxo.ident
|
|
532
530
|
LEFT JOIN tx ON tx.id = tx_out.tx_id
|
|
533
531
|
LEFT JOIN datum ON tx_out.inline_datum_id = datum.id
|
|
534
532
|
LEFT JOIN block on block.id = tx.block_id
|
|
@@ -536,8 +534,16 @@ LEFT JOIN script s ON s.id = tx_out.reference_script_id
|
|
|
536
534
|
WHERE address.payment_cred = %(address)b AND tx_out.consumed_by_tx_id IS NULL"""
|
|
537
535
|
|
|
538
536
|
if asset is not None:
|
|
537
|
+
# Start from the asset: multi_asset is unique on (policy, name) and
|
|
538
|
+
# ma_tx_out is indexed on ident, so only the outputs that ever held
|
|
539
|
+
# the asset are visited, not every output at the address.
|
|
539
540
|
query += """
|
|
540
|
-
AND
|
|
541
|
+
AND tx_out.id IN (
|
|
542
|
+
SELECT mto.tx_out_id
|
|
543
|
+
FROM ma_tx_out mto
|
|
544
|
+
JOIN multi_asset ma ON ma.id = mto.ident
|
|
545
|
+
WHERE ma.policy = %(policy)b AND ma.name = %(name)b
|
|
546
|
+
)
|
|
541
547
|
"""
|
|
542
548
|
|
|
543
549
|
query += """
|
|
@@ -557,6 +563,8 @@ LIMIT 1
|
|
|
557
563
|
query, kwargs = self._get_datum_from_address(address=address, asset=asset)
|
|
558
564
|
|
|
559
565
|
r = self.db_query(query, kwargs)
|
|
566
|
+
if not r:
|
|
567
|
+
return None
|
|
560
568
|
|
|
561
569
|
if r[0]["assets"] is not None and r[0]["assets"][0]["lovelace"] is None:
|
|
562
570
|
r[0]["assets"] = None
|
|
@@ -572,6 +580,8 @@ LIMIT 1
|
|
|
572
580
|
query, kwargs = self._get_datum_from_address(address=address, asset=asset)
|
|
573
581
|
|
|
574
582
|
r = await self.db_query_async(query, kwargs)
|
|
583
|
+
if not r:
|
|
584
|
+
return None
|
|
575
585
|
|
|
576
586
|
if r[0]["assets"] is not None and r[0]["assets"][0]["lovelace"] is None:
|
|
577
587
|
r[0]["assets"] = None
|
{charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/dano.py
RENAMED
|
@@ -15,6 +15,7 @@ follows the direct-spend pattern established by `splash.py`:
|
|
|
15
15
|
reads `platform_fee_rate` and `swap_fee` from its datum.
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
|
+
import logging
|
|
18
19
|
import time
|
|
19
20
|
from dataclasses import dataclass
|
|
20
21
|
from dataclasses import replace
|
|
@@ -24,6 +25,7 @@ from typing import Any
|
|
|
24
25
|
from typing import ClassVar
|
|
25
26
|
|
|
26
27
|
from pycardano import Address
|
|
28
|
+
from pycardano import AssetName
|
|
27
29
|
from pycardano import IndefiniteList
|
|
28
30
|
from pycardano import PlutusData
|
|
29
31
|
from pycardano import PlutusV3Script
|
|
@@ -51,6 +53,8 @@ from charli3_dendrite.dexs.amm.amm_types import AbstractConstantLiquidityPoolSta
|
|
|
51
53
|
from charli3_dendrite.dexs.core.errors import InvalidPoolError
|
|
52
54
|
from charli3_dendrite.utility import asset_to_value
|
|
53
55
|
|
|
56
|
+
_logger = logging.getLogger(__name__)
|
|
57
|
+
|
|
54
58
|
# Mainnet — see clmm-sdk-init-sdk/src/constants.ts
|
|
55
59
|
DANO_POOL_SCRIPT_HASH_MAINNET = (
|
|
56
60
|
"d8b69fc53637bcfadbc4469083f706bc293f4d9d2296646c5ca167bb"
|
|
@@ -86,10 +90,50 @@ POOL_SCRIPT_OUT_REF_MAINNET = (
|
|
|
86
90
|
"64d111b957e7d7848ffdde5149aa77fa4090a7fa1ad0ac108067900614848501",
|
|
87
91
|
0,
|
|
88
92
|
)
|
|
93
|
+
# The protocol config UTxO is identified by the NFT it holds, which moves with
|
|
94
|
+
# it; its datum is ``[platform_fee_rate, swap_fee]``.
|
|
95
|
+
PROTOCOL_CONFIG_NFT_POLICY_MAINNET = (
|
|
96
|
+
"bc2d3b7cf1009c788b1daf2208a38026ab20d7f8209d896ad1a09c14"
|
|
97
|
+
)
|
|
98
|
+
PROTOCOL_CONFIG_NFT_NAME_MAINNET = (
|
|
99
|
+
"72f9dae79bb2dfa39bd8fadf089ea0c8377b5eaa3caef0549396668aef1f9187"
|
|
100
|
+
)
|
|
101
|
+
PROTOCOL_CONFIG_NFT_UNIT_MAINNET = (
|
|
102
|
+
PROTOCOL_CONFIG_NFT_POLICY_MAINNET + PROTOCOL_CONFIG_NFT_NAME_MAINNET
|
|
103
|
+
)
|
|
104
|
+
PROTOCOL_CONFIG_ADDRESS_MAINNET = (
|
|
105
|
+
"addr1z8afjx7zl8zzqmnj6ufmcdy85uh8jqg90j4m35myh6lwlrectd0zw3ydwgtk9hpse3mgyez"
|
|
106
|
+
"edms0y054fa47vfkt08qsdxsvyq"
|
|
107
|
+
)
|
|
108
|
+
# Last known location and datum of the protocol config. Used until a backend
|
|
109
|
+
# lookup answers; the swap builder locates the config by its NFT instead.
|
|
89
110
|
PROTOCOL_CONFIG_OUT_REF_MAINNET = (
|
|
90
|
-
"
|
|
111
|
+
"67380365f2c95ebeb2feaef321c29462550e54b9bd888ae453170e679a8914a0",
|
|
91
112
|
0,
|
|
92
113
|
)
|
|
114
|
+
PROTOCOL_CONFIG_PLATFORM_FEE_RATE_MAINNET = 1000
|
|
115
|
+
PROTOCOL_CONFIG_SWAP_FEE_MAINNET = 500_000
|
|
116
|
+
# How long a protocol config read from the backend is reused.
|
|
117
|
+
PROTOCOL_CONFIG_CACHE_TTL_SECONDS = 300.0
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
@dataclass(frozen=True)
|
|
121
|
+
class DanoProtocolConfig:
|
|
122
|
+
"""The protocol config UTxO's out-ref and its parsed datum."""
|
|
123
|
+
|
|
124
|
+
out_ref: tuple[str, int]
|
|
125
|
+
platform_fee_rate: int
|
|
126
|
+
swap_fee: int
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
PINNED_PROTOCOL_CONFIG = DanoProtocolConfig(
|
|
130
|
+
out_ref=PROTOCOL_CONFIG_OUT_REF_MAINNET,
|
|
131
|
+
platform_fee_rate=PROTOCOL_CONFIG_PLATFORM_FEE_RATE_MAINNET,
|
|
132
|
+
swap_fee=PROTOCOL_CONFIG_SWAP_FEE_MAINNET,
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
# Monotonic clock for the protocol-config cache.
|
|
136
|
+
_clock = time.monotonic
|
|
93
137
|
|
|
94
138
|
# Cardano epoch derivation (spec § Common Temporary Variables > curEpoch)
|
|
95
139
|
EPOCH_BOUNDARY_MS_MAINNET = 1_647_899_091_000
|
|
@@ -123,14 +167,13 @@ def _current_slot_mainnet(now_ms: int | None = None) -> int:
|
|
|
123
167
|
|
|
124
168
|
|
|
125
169
|
def _find_protocol_config(tx_builder: TransactionBuilder) -> UTxO | None:
|
|
126
|
-
"""
|
|
127
|
-
|
|
128
|
-
|
|
170
|
+
"""Return the reference input holding the protocol-config NFT, if any."""
|
|
171
|
+
policy = ScriptHash(bytes.fromhex(PROTOCOL_CONFIG_NFT_POLICY_MAINNET))
|
|
172
|
+
name = AssetName(bytes.fromhex(PROTOCOL_CONFIG_NFT_NAME_MAINNET))
|
|
129
173
|
for utxo in tx_builder.reference_inputs:
|
|
130
|
-
if (
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
):
|
|
174
|
+
if not isinstance(utxo, UTxO):
|
|
175
|
+
continue
|
|
176
|
+
if utxo.output.amount.multi_asset.get(policy, {}).get(name, 0) > 0:
|
|
134
177
|
return utxo
|
|
135
178
|
return None
|
|
136
179
|
|
|
@@ -434,11 +477,18 @@ class DanoCLMMState(AbstractConstantLiquidityPoolState):
|
|
|
434
477
|
|
|
435
478
|
fee: int = 0 # populated from datum.lp_fee_rate in post_init
|
|
436
479
|
|
|
437
|
-
# Dano pools have no batcher and no user-paid deposit:
|
|
438
|
-
#
|
|
439
|
-
|
|
480
|
+
# Dano pools have no batcher and no user-paid deposit: the swap redeemer
|
|
481
|
+
# mutates the pool UTxO directly. Every swap still pays the protocol
|
|
482
|
+
# config's ``swap_fee`` into the pool, which ``batcher_fee`` reports;
|
|
483
|
+
# ``_batcher`` holds the last known value of that fee.
|
|
484
|
+
_batcher: ClassVar[Assets] = Assets(lovelace=PROTOCOL_CONFIG_SWAP_FEE_MAINNET)
|
|
440
485
|
_deposit: ClassVar[Assets] = Assets(lovelace=0)
|
|
441
486
|
|
|
487
|
+
# Protocol config read through the backend, and the ``_clock`` time of the
|
|
488
|
+
# last read (``None``: never read).
|
|
489
|
+
_protocol_config: ClassVar[DanoProtocolConfig] = PINNED_PROTOCOL_CONFIG
|
|
490
|
+
_protocol_config_checked_at: ClassVar[float | None] = None
|
|
491
|
+
|
|
442
492
|
# Platform fee rate lives in a SEPARATE protocol-config UTxO
|
|
443
493
|
# (constants.ts: PROTOCOL_CONFIG_OUT_REF_*). It is required for
|
|
444
494
|
# accurate swap math but is NOT in the pool datum. Inject it before
|
|
@@ -456,6 +506,65 @@ class DanoCLMMState(AbstractConstantLiquidityPoolState):
|
|
|
456
506
|
"""Return the name of the DEX."""
|
|
457
507
|
return "Dano"
|
|
458
508
|
|
|
509
|
+
@classmethod
|
|
510
|
+
def protocol_config(cls) -> DanoProtocolConfig:
|
|
511
|
+
"""The current protocol config, located through the backend by its NFT.
|
|
512
|
+
|
|
513
|
+
A read, successful or not, is not repeated for
|
|
514
|
+
``PROTOCOL_CONFIG_CACHE_TTL_SECONDS``. Without a backend, or when the
|
|
515
|
+
backend has no answer, the last known config is kept (initially
|
|
516
|
+
:data:`PINNED_PROTOCOL_CONFIG`).
|
|
517
|
+
"""
|
|
518
|
+
checked_at = cls._protocol_config_checked_at
|
|
519
|
+
now = _clock()
|
|
520
|
+
if (
|
|
521
|
+
checked_at is not None
|
|
522
|
+
and now - checked_at < PROTOCOL_CONFIG_CACHE_TTL_SECONDS
|
|
523
|
+
):
|
|
524
|
+
return cls._protocol_config
|
|
525
|
+
try:
|
|
526
|
+
backend = get_backend()
|
|
527
|
+
except ValueError:
|
|
528
|
+
return cls._protocol_config
|
|
529
|
+
cls._protocol_config_checked_at = now
|
|
530
|
+
try:
|
|
531
|
+
ref = backend.get_datum_from_address(
|
|
532
|
+
address=Address.decode(PROTOCOL_CONFIG_ADDRESS_MAINNET),
|
|
533
|
+
asset=PROTOCOL_CONFIG_NFT_UNIT_MAINNET,
|
|
534
|
+
)
|
|
535
|
+
if (
|
|
536
|
+
ref is None
|
|
537
|
+
or ref.datum_cbor is None
|
|
538
|
+
or ref.tx_hash is None
|
|
539
|
+
or ref.tx_index is None
|
|
540
|
+
):
|
|
541
|
+
return cls._protocol_config
|
|
542
|
+
platform_fee_rate, swap_fee = _parse_protocol_config_datum(ref.datum_cbor)
|
|
543
|
+
except Exception: # noqa: BLE001 - a failed read keeps the last known config
|
|
544
|
+
_logger.warning("Dano protocol config lookup failed", exc_info=True)
|
|
545
|
+
return cls._protocol_config
|
|
546
|
+
cls._protocol_config = DanoProtocolConfig(
|
|
547
|
+
out_ref=(ref.tx_hash, ref.tx_index),
|
|
548
|
+
platform_fee_rate=platform_fee_rate,
|
|
549
|
+
swap_fee=swap_fee,
|
|
550
|
+
)
|
|
551
|
+
return cls._protocol_config
|
|
552
|
+
|
|
553
|
+
def batcher_fee(
|
|
554
|
+
self,
|
|
555
|
+
in_assets: Assets | None = None,
|
|
556
|
+
out_assets: Assets | None = None,
|
|
557
|
+
extra_assets: Assets | None = None,
|
|
558
|
+
) -> Assets:
|
|
559
|
+
"""The protocol config's per-swap fee, paid into the pool on every swap.
|
|
560
|
+
|
|
561
|
+
Args:
|
|
562
|
+
in_assets: The input assets for the swap (unused).
|
|
563
|
+
out_assets: The output assets for the swap (unused).
|
|
564
|
+
extra_assets: Extra assets included in the transaction (unused).
|
|
565
|
+
"""
|
|
566
|
+
return Assets(lovelace=self.protocol_config().swap_fee)
|
|
567
|
+
|
|
459
568
|
@classmethod
|
|
460
569
|
def order_selector(cls) -> list[str]:
|
|
461
570
|
"""Return the order selector addresses."""
|
|
@@ -840,7 +949,8 @@ class DanoCLMMState(AbstractConstantLiquidityPoolState):
|
|
|
840
949
|
* Add the protocol-config UTxO to
|
|
841
950
|
``tx_builder.reference_inputs`` FIRST — it's used as a
|
|
842
951
|
reference input AND its datum is parsed here to derive
|
|
843
|
-
``platform_fee_rate`` / ``swap_fee``.
|
|
952
|
+
``platform_fee_rate`` / ``swap_fee``. It is recognised by the
|
|
953
|
+
NFT it holds; :meth:`protocol_config` gives its current out-ref.
|
|
844
954
|
* Call this method; add the returned output to the builder.
|
|
845
955
|
* Add the user's receive output + collateral, then build/sign.
|
|
846
956
|
|
|
@@ -862,8 +972,8 @@ class DanoCLMMState(AbstractConstantLiquidityPoolState):
|
|
|
862
972
|
if pc_utxo is None:
|
|
863
973
|
raise ValueError(
|
|
864
974
|
"Protocol-config UTxO must be added to tx_builder.reference_inputs "
|
|
865
|
-
"before calling swap_utxo (
|
|
866
|
-
f"{
|
|
975
|
+
"before calling swap_utxo (the UTxO holding the NFT "
|
|
976
|
+
f"{PROTOCOL_CONFIG_NFT_UNIT_MAINNET})",
|
|
867
977
|
)
|
|
868
978
|
pc_datum = pc_utxo.output.datum if pc_utxo.output.datum is not None else None
|
|
869
979
|
if pc_datum is None:
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/__init__.py
RENAMED
|
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.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/backend/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/cswap.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
|
{charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/amm/vyfi.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/core/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/ob/axo.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/dexs/ob/djed.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/base.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
|
{charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/fetch.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
|
|
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.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/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
|
{charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/plutus.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/rates.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
|
{charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/lending/units.py
RENAMED
|
File without changes
|
{charli3_dendrite-1.6.10.dev0 → charli3_dendrite-1.6.11.dev0}/src/charli3_dendrite/utility.py
RENAMED
|
File without changes
|