aladdindao / aladdin-contracts Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
测试结果:
(1)Desposit,当 存款数量 > 钱包余额,合约返回的错误:An error occurred: Internal JSON-RPC error. { "code": -32603, "message": "Error: VM Exception while processing transaction: reverted with reason string 'SafeERC20: low-level call failed'" }
(2)Withdraw,当 取款数量 > 存款余额,合约返回的错误:An error occurred: Internal JSON-RPC error. { "code": -32603, "message": "Error: VM Exception while processing transaction: reverted with reason string 'Vault: not enough share'" }
(3)【待评估】取款数量=0,前端直接提交至合约,合约可以成功,没有任何报错
预期结果:
(1)和(2)看能不能优化一下提示语,对用户更加友好
(3)【待评估】这种取款数量为0的,合约是不是应该直接拒绝
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.