CorpShift
CorpShift keeps DeFi safe when stock tokens change. It normalizes and attests corporate actions, verifies onchain multipliers, and gives protocols policy gates and economic-unit accounting.
Videos




Tech Stack
Description
CorpShift is a corporate-action runtime for onchain finance built around Robinhood Chain Stock Tokens. Stock splits and other actions change the economic meaning of a token balance. A lending protocol that combines raw balanceOf() units with a price quoted per economic share can undervalue collateral and liquidate a healthy borrower.
CorpShift normalizes corporate-action records into a canonical schema, attests actions with EIP-712, records them in an onchain registry, and tracks each asset through a state machine. Its adapter checks the token's live uiMultiplier() against the attested factor. Consumer protocols use policy gates to block risky operations while an action is pending and use normalized economic units for valuation.
Our six-step Protocol Lab shows two identical vault positions. After an illustrative 4:1 split, the naive vault values the collateral at $250 and liquidates; the CorpShift-aware vault retains the economically correct $1,000 collateral value and health factor 2.00. Accepted writes have local Anvil transaction receipts; rejected operations are checked simulations. The lab uses mock stock and mUSDG tokens, while a separate indexer replays captured Robinhood corporate-action records. This demonstrates the integration failure, not a real production liquidation.
The public demo is available at https://corpshift.tangvu.dev and the source at https://github.com/tang-vu/corpshift. A Robinhood Chain testnet deployment of the registry, policy engine, adapters, settlement vault, and mock-token demonstration contracts is documented in the repository. The full six-step scenario has been validated locally; the testnet evidence covers deployment receipts and initial configuration, not a completed testnet scenario.
Progress During Hackathon
1. Built the canonical action schema and Robinhood corporate-action normalizer.
2. Implemented EIP-712 attestation, the onchain action registry, asset state machine, policy engine, and economic-unit adapters.
3. Built a six-step Protocol Lab with paired vault outcomes, API evidence export, automated tests, and a public demo.
4. Deployed ten reference contracts to Robinhood Chain testnet and recorded receipt and bytecode evidence.