Back to work / Philcoin

Case 02 · App-to-chain integration

Phil app · Rewards

A reward claim has to survive a timeout without paying twice.

I own the claim pipeline connecting the Phil mobile app, API, rewards service and Polygon contracts. My work covers contract upgrades, transaction reliability and reconciliation back into the application.

Result

Shipped the RewardsLibrary V2.1 upgrade to Polygon and strengthened the claim pipeline with deduplication and a confirmer that reconciles finalized contract events with application records.

01

Claim pipeline

Owned the integration from the app request through the API and rewards server to the contract.

02

Contract delivery

Implemented and deployed the V2.1 rewards upgrade, including a usable rollback target.

03

Production operations

Fixed gas and retry behavior, hardened duplicate prevention and added event-based claim confirmation.

How it worksSimplified walkthrough. No live transactions.

A claim is complete when the chain confirms it

Phil mobile app + API

A member requests a claim. The application checks the reward and records the request before it reaches the transaction service.

App → API → claim recordThe member action has an application identity.
Example state, not live data
Claim
Requested
Chain evidence
Not submitted
App record
Pending

Reconcile from events

Use finalized chain evidence to close the payment loop instead of relying on the lifetime of an HTTP request.

Prepare a rollback that can execute

The proxy could not re-register its original implementation. I deployed a fresh instance of the previous logic to make rollback operationally possible.

Deployment transactionRewards V2.1 deployment

Recorded mainnet deployment transaction from the May 2026 upgrade.

Upgrade transactionProxy implementation update

Recorded transaction activating the new rewards implementation.

Deployment evidence: May 2026 implementation and proxy-update transactions linked above.

Built with

App users, private service endpoints and confidential incident details are excluded.

Email meNext case: Ambassador Program