Ammalgam introduces a new primitive in decentralized finance: the Decentralized Lending Exchange (DLEX). By combining trading and lending into a single protocol, DLEX unlocks a level of capital efficiency that traditional platforms can't match, offering up to a 60% increase in yield for liquidity providers.
Scope
Severity
Minimum (USDC)
Maximum (USDC)
Critical
$1,000
$25,000
High
$500
$5,000
v1.1.0
11 assets
Contract upgrades after the first round of bug bounty feedback with added features around the schedule of interest rates based on utilization.
A version of AmmalgamPair with borrowing of liquidity and underlying asset functionality disabled to be available to upgrade to in the case of an emergency.
The following are considered known issues and are not eligible for rewards. For generic exclusions, see the .
Any issue that does not result in an on-chain loss of funds
Informational findings and design choices related to the protocol
Issues that are ultimately user errors and can easily be caught in the frontend (for example, transfers to address(0))
Rounding errors and off-by-one behavior in the ERC-4626 helper interfaces that do not result in a loss of funds
Relatively high gas consumption
Findings involving borrowLiquidity() on contracts deployed in July of 2026.
Loss of funds resulting from violent market price movements, specifically any price increase greater than 33% or price decrease greater than 25% within a single block or 8-second period, or a repeated movement of price over multiple blocks.
Use of for loop to pass time and sync() without any validation of economic viability of liquidations at each iteration.
Behavior on any L2 or alternative L1 that we are not deployed on.
Submissions that depend on price change and passing of time with no checks for potential interventions at each block or 8 second period of time. If you POC relies on a large price change in one block, or multiple blocks followed by a passing of time to update the TWAP, it will be auto rejected. Below is an example of a function used within a submitted POC that will be automatically rejected with no deposit refund.
function _moveAndSettle(uint256 yIn, uint256 xOut) private {
// A separate market actor moves spot down by about 24.9%, within the bounty bound.
vm.startPrank(MARKET);
y.transfer(address(pair), yIn);
pair.swap(xOut, 0, MARKET, "");
vm.stopPrank();
// Hold the new market price long enough for the configured TWAP state to
// converge without any additional same-block price movement.
for (uint256 i; i < 60; ++i) {
vm.warp(block.timestamp + 8);
pair.sync();
}
}
Default Out of Scope
Standard out-of-scope items per the .
Policy and instructions
Identity verification is required by the submission fee because researchers must fund their Clarion balance before submitting.
Protocol and security documentation is available in the .
Severity Definitions
Only vulnerabilities that result in an on-chain loss of funds are eligible for a reward. Severity classification is secondary to this requirement: a finding must be reproducible in a proof-of-concept that demonstrates a loss of funds to the protocol's liquidity providers, using reasonably likely scenarios that are achievable without a malicious token or other conditions that would not be expected to occur on-chain.
POC requirements: All POCs must demonstrate the issue using public or external functions only. Findings that rely on calling library, internal, or private functions directly will be automatically rejected.
Critical
Direct theft of user funds, whether at-rest or in-motion, other than unclaimed yield
Permanent freezing of funds
Protocol insolvency that cannot be recovered from through the protocol's bad debt handling logic
High
A loss of funds that requires a specific precondition or a lower-likelihood scenario, but that can still occur under certain conditions
Bypass of authorized-user (trusted address) functionality, for example an untrusted address invoking logic restricted to trusted addresses, resulting in a loss of funds
Theft of unclaimed yield
Permanent freezing of unclaimed yield
Temporary freezing of funds for more than one week
Issues that do not result in a loss of funds are not eligible for a reward (see the Out of Scope group for examples).
In addition to the above definitions, we will also use the to determine severity.
Prohibited Actions
No live testing on public chains: Live testing on public or mainnet chains is explicitly prohibited to prevent unintended disruptions.
No public disclosure of bugs: Do not publicly disclose any vulnerability before it has been addressed.
Conflict of interest: Avoid any conflict of interest, including attempting to exploit the program itself or testing outside of defined hours or environments.
Deposits Refund Policy
We will only refund deposits for the following reasons,
Submission is a valid finding covered by the bug bounty
Submission is a duplicate of a valid finding.
Please review the entire bounty, what is in and out of scope prior to paying the deposit and submitting a finding.