Back to work / Philcoin

Case 04 · Solidity · Token conversion & claims

PHL → GIVE Swap

Solidity contracts for PHL swaps and locked token claims.

PHL holders swap on Polygon and claim destination tokens after a lock. I built the Solidity swap and receipt contracts, per-position locks, Merkle claims with duplicate-claim protection and wallet interface. The public BSC demo pays TGIVE after ten minutes.

Result

Deployed the public interface, Polygon swap and receipt contracts, and a funded BSC demo claim contract. Demo parameters: a ten-minute lock and TGIVE destination token.

01

Solidity swap & receipt contracts

Built positions with their own amount, destination and unlock time. New swaps preserve older positions’ locks.

02

Merkle claim contracts

Built proof verification, unlock checks and claimed-leaf tracking. The position index allows identical positions to be claimed once each.

03

Wallet integration & deployment

Built wallet pairing, on-chain agreements and position views; deployed Polygon contracts and funded the BSC demo claim contract.

How it worksSimplified walkthrough. No live transactions.

One swap, one position, one claim

Wallet + agreement registry

The wallet signs the acknowledgement and records the document hash before the swap. Personal information is not written as plain text on-chain.

Document hash + wallet signatureThe acknowledgement is tied to the wallet and document version.
Example state, not live data
Position
Not created
Unlock
Not started
Proof
Not published

Per-position accounting

A new swap must not reset the lock for an older position. Amount, destination and unlock time are recorded together.

Explicit trust boundary

The administrator publishes the snapshot root. This is a snapshot-based conversion system, not a trustless bridge.

Live demonstrationOpen the GIVE Swap demo

Public demo interface. Inspect without connecting a wallet or making a transaction.

On-chain artifactPolygon swap contract

The deployed v3 swap contract referenced by the demo.

On-chain artifactBSC claim contract

Destination claim contract for the v3 demonstration.

Actual GIVE Swap public entry screen, showing the PHL to GIVE conversion product.
Actual public demonstration interface, captured 30 September 2026. No wallet connected.

Based on contract source, deployment handoff and the publicly accessible demo. Contract and product links identify the implementation artifacts.

Built with

Demonstration configuration: ten-minute lock and TGIVE demo token on BSC. This is not represented as the final production rollout.

Email meNext case: YouthChain