{"id":26055032,"url":"https://github.com/morpho-org/morpho-utils","last_synced_at":"2025-04-11T02:51:22.119Z","repository":{"id":50336344,"uuid":"512700417","full_name":"morpho-org/morpho-utils","owner":"morpho-org","description":"Repository gathering useful libraries and contracts.","archived":false,"fork":false,"pushed_at":"2023-08-13T07:04:24.000Z","size":572,"stargazers_count":64,"open_issues_count":8,"forks_count":1,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-03-25T00:40:43.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morpho-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-11T09:50:54.000Z","updated_at":"2024-09-03T10:16:00.000Z","dependencies_parsed_at":"2025-03-08T10:00:49.178Z","dependency_job_id":"fd970822-681e-41aa-aea3-a68c3d20c404","html_url":"https://github.com/morpho-org/morpho-utils","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morpho-org","download_url":"https://codeload.github.com/morpho-org/morpho-utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248333110,"owners_count":21086193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-08T10:00:38.825Z","updated_at":"2025-04-11T02:51:22.099Z","avatar_url":"https://github.com/morpho-org.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Morpho Utils\n\n[![Foundry Tests](https://github.com/morpho-dao/morpho-utils/actions/workflows/foundry-gas-diff.yml/badge.svg)](https://github.com/morpho-dao/morpho-utils/actions/workflows/foundry-gas-diff.yml)\n[![Certora Tests](https://github.com/morpho-dao/morpho-utils/actions/workflows/certora.yml/badge.svg)](https://github.com/morpho-dao/morpho-utils/actions/workflows/certora.yml)\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://i.imgur.com/uLq5V14.png\"\u003e\n  \u003cimg alt=\"\" src=\"https://i.imgur.com/ZiL1Lr2.png\"\u003e\n\u003c/picture\u003e\n\nRepository gathering useful libraries and contracts.\n\n## Getting started\n\nInstall this repository as a forge dependency:\n\n```bash\nforge install morpho-dao/morpho-utils\n```\n\nThen add a remapping to your `remappings.txt`:\n\n```txt\n@morpho-utils/=lib/morpho-utils/src/\n```\n\nYou're good to go! Just import libraries with `@morpho-utils/math/Math.sol` for example.\n\n---\n\n## Known Issues\n\nPlease be aware that some [known issues](./ISSUES.md) are inherent to the way some libraries work in this repository.\n\n---\n\n## Development\n\nAfter cloning this repository, run:\n\n```bash\ngit submodule update --init --recursive\n```\n\nConfigure your VSCode to automatically format a file on save, using `forge fmt`:\n\n- Install [emeraldwalk.runonsave](https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave)\n- Update your `settings.json`:\n\n```json\n{\n  \"[solidity]\": {\n    \"editor.formatOnSave\": false\n  },\n  \"emeraldwalk.runonsave\": {\n    \"commands\": [\n      {\n        \"match\": \".sol\",\n        \"isAsync\": true,\n        \"cmd\": \"forge fmt ${file}\"\n      }\n    ]\n  }\n}\n```\n\n---\n\n## Testing\n\nFor testing, run:\n\n```bash\nforge test\n```\n\n---\n\n## Formal verification\n\nTo run the Certora prover, run (with a CERTORAKEY in your environment):\n\n```bash\n./certora/scripts/verifyAll.sh\n```\n\n---\n\n## External contributors\n\nWe thank the MEP team for their help on code optimization:\n\n- [@AtomicAzzaz](https://github.com/AtomicAzzaz)\n- [@ewile](https://github.com/wile)\n- [@makcandrov](https://github.com/makcandrov)\n\n---\n\n## Acknowledgements\n\nThis repository is inspired by several sources:\n\n- [OpenZeppelin](https://github.com/OpenZeppelin/openzeppelin-contracts)\n- [Compound](https://github.com/compound-finance/compound-protocol)\n- [Aave V2](https://github.com/aave/protocol-v2)\n- [Aave V3](https://github.com/aave/aave-v3-core)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpho-org%2Fmorpho-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorpho-org%2Fmorpho-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpho-org%2Fmorpho-utils/lists"}