Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solidity v1.1.0 release #716

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Solidity v1.1.0 release #716

merged 1 commit into from
Aug 29, 2024

Conversation

nkuba
Copy link
Member

@nkuba nkuba commented Aug 28, 2024

This PR contains artifacts of contracts deployed on the mainnet in the v1.1.0 release. It also updates the version in package.json.

Important

Please ignore failing integration tests, as these will be fixed in #718

This commit contains artifacts of contracts deployed on mainnet in v1.1.0 release.
It also updates version in package.json.
Copy link

netlify bot commented Aug 28, 2024

Deploy Preview for acre-dapp-testnet canceled.

Name Link
🔨 Latest commit d0ec99b
🔍 Latest deploy log https://app.netlify.com/sites/acre-dapp-testnet/deploys/66cf27b3d29f7b0008abcca6

Copy link

netlify bot commented Aug 28, 2024

Deploy Preview for acre-dapp canceled.

Name Link
🔨 Latest commit d0ec99b
🔍 Latest deploy log https://app.netlify.com/sites/acre-dapp/deploys/66cf27b308be620008e9758b

Copy link
Member

@pdyraga pdyraga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed the addresses against the upgrade transaction. Everything as expected.

@pdyraga pdyraga merged commit c3790ef into main Aug 29, 2024
27 of 28 checks passed
@pdyraga pdyraga deleted the releases/solidity/v1.1.0 branch August 29, 2024 09:11
r-czajkowski added a commit that referenced this pull request Sep 3, 2024
Depends on: #716

In this PR we introduce a couple of improvements to the MezoAllocator
contract related to withdrawals from the Mezo Portal.

### Check if the withdrawal amount exceeds the deposit balance
(1b95419)

Here we improve the withdrawal function to check if the withdrawal
amount exceeds the deposit balance.
If the withdrawal amount exceeds the deposit balance, the function will
revert with a custom error message.
Before these changes, since the Portal contract changed the handling of
partial and full withdrawals the withdrawal function reverted on
`depositBalance -= uint96(amount);` with:
```
panic code 0x11 (Arithmetic operation overflowed outside of an unchecked block)
```

### Include unallocated MezoAllocator balance in `withdraw` and
`releaseDeposit` (1b9ba17,
0440580)

In bb42bce we included the current
balance of the MezoAllocator contract in the `totalAssets` function
result. The balance can come from a rewards transfer or any donation.

We haven't considered this balance in the `withdraw` function, which
could lead to blocking the last user withdrawing the funds, as the
balance of assets owned by them calculated based on `totalAssets`
function, couldn't be fully withdraw due to unallocated balance being
stuck in the `MezoAllocator` contract. In
1b9ba17 we introduce possibility to
withdraw funds from the unallocated contract balance.

For the `releaseDeposit` function we could face a problem when the Mezo
Portal deposit is already released but some tokens were donated to the
MezoAllocator contract, since the `Porta.withdraw` function would be
reverting as there is no deposit, we won't be able to transfer the
unallocated funds in the same call. We fixed it in
0440580.

> [!IMPORTANT]  
> Please ignore failing integration tests, as these will be fixed in
#718
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants