Catalog npm
Back to packageRELEASE DETAILS

0.0.0-20250214175028

npm

@0xsend/send-earn-contracts

The contracts and artifacts for Send Earn.

Published14 Feb 2025
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

Send Earn

Send Earn is a permissionless, non-custodial way for users to deposit their USDC into a vault and earn yield on their USDC. Send Earn is a vault-on-a-vault solution powered by Morpho and Moonwell. Users deposit their USDC into a Send Earn USDC (seUSDC) vault. In turn, the vault deposits the vault's assets into a Moonwell USDC (mwUSDC) vault. Users can also withdraw their USDC from the vault at any time.

Send Earn's pioneering approach is to reward users for referring others to use Send Earn.

See docs/send-earn-about.md for more information.

Quick Start

git clone https://github.com/0xsend/send-earn-contracts.git
cd send-earn-contracts
forge install
bun install --yarn
bun run build

Deploy

Jump to Localnet Deployment if needing to deploy to a local network for testing.

export OWNER=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
export VAULT=0xc1256Ae5FF1cf2719D4937adb3bbCCab2E00A2Ca
export PLATFORM=0x65049C4B8e970F5bcCDAE8E141AA06346833CeC4
export FEE=$(cast to-wei 0.08 ether)
export SPLIT=$(cast to-wei 0.80 ether)
export SALT=$(echo SEND IT | cast keccak)
export ASSET=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
export INITIAL_BURN=10000
export INITIAL_BURN_PREFUND=5000000
forge script ./script/DeploySendEarn.s.sol:DeploySendEarnScript \
  -vvvv \
  --rpc-url http://localhost:8546 \
  --sender 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 \
  --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
  --broadcast

Localnet Deployment

Need to transfer some USDC to the owner account so we can set initial burn amount.

export OWNER=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
export USDC_HOLDER=0x27a16dc786820B16E5c9028b75B99F6f604b5d26
export ASSET=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
cast rpc anvil_impersonateAccount $USDC_HOLDER --rpc-url http://localhost:8546
cast send $ASSET \
  --from $USDC_HOLDER \
  --rpc-url http://localhost:8546 \
  "transfer(address,uint256)(bool)" \
  $OWNER \
  10000000 \
  --unlocked
# blockHash               0xbf31c45f6935a0714bb4f709b5e3850ab0cc2f8bffe895fefb653d154e0aa062
# blockNumber             15052891
# ...

Contributing

Lint the code:

bun run lint:fix

Ensure your tests are passing before submitting a PR.

bun run test

Update the snapshots and test coverage:

bun run test:update

Make a release:

bunx changeset

Create a new version of the package:

bunx changeset version

Commit and push the changes:

git add .
git commit -m "chore: Version bump"
git push

Create a new release on GitHub and npm. The release will be automatically published to npm.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@changesets/cli
Environment
{
  "local_name": "@changesets/cli",
  "alias": false,
  "peer_metadata": null
}
^2.27.12development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "fabaf36aeafec0c130a170cfd530d5d7fd7d9bae",
  "tarball": "https://registry.npmjs.org/@0xsend/send-earn-contracts/-/send-earn-contracts-0.0.0-20250214175028.tgz",
  "fileCount": 156,
  "integrity": "sha512-T3w3vXFkdR6JxmpXqlVunXOkuIYGmPwI/aBlF9mLG0IbWfMyL90V56RURwV1zXc04DmBu0lC/JFYjz7ijqD5PQ==",
  "signatures": [
    {
      "sig": "MEYCIQDTYy6RvLLIO9Ke8ZrXu9vHDMRa89HKDTDN1XcDTbLDhQIhANjspAiNA/KGgEhSQ0U2rzrYlaRWHZxNx3KGSeQwToYb",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 6746511
}

Repository

NOT_FOUND
0xsend/send-earn-contracts

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:45 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:640c7e5e4367482094df68a598b2603a52131827e264e9a5810dfd2b416ee7a5

Other collected versions

0.1.014 Apr0.0.1513 Apr0.0.1411 Apr0.0.136 Apr0.0.1212 Mar0.0.1112 MarView all collected versions →